/* =========================================
   1. Trigger Button (Unique to Add-on)
   ========================================= */
.wpfub-btn-gh-note {
    background: transparent;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    padding: 5px;
    color: #555;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.wpfub-btn-gh-note:hover {
    background-color: #f0f0f1;
    color: #1F473F; /* Updated to match Main Theme Green */
    border-color: #1F473F;
}

.wpfub-btn-gh-note svg {
    width: 18px;
    height: 18px;
}

/* =========================================
   2. Modal Specific Overrides
   ========================================= */
/* Note: Main modal structure (.wpfub-modal, .wpfub-modal-content, .wpfub-modal-header) 
   is inherited from style.css to ensure design consistency (Green Header, Rounded Corners).
*/

/* Close Button Override - slightly specific to GH close button if class differs */
.wpfub-gh-close {
    color: #fff; /* White to contrast with Green Header */
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
    opacity: 0.8;
}

.wpfub-gh-close:hover,
.wpfub-gh-close:focus {
    color: #fff;
    opacity: 1;
    text-decoration: none;
    cursor: pointer;
}

/* =========================================
   3. Modal Body (Functional Override)
   ========================================= */
/* The Notes modal needs a fixed height and scrolling, unlike the generic modal */
.wpfub-modal-body {
    /* Keep generic padding/bg from style.css, only override height behavior */
    height: 400px !important; 
    overflow-y: auto;
    border-bottom: 1px solid #e5e5e5;
}

/* Scrollbar Styling (Unique to Add-on content) */
.wpfub-modal-body::-webkit-scrollbar {
    width: 8px;
}
.wpfub-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.wpfub-modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}
.wpfub-modal-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Loading State */
#wpfub-gh-loading {
    display: none;
    text-align: center;
    padding: 30px;
    color: #666;
    font-style: italic;
}

/* =========================================
   4. Notes List Styling (Unique to Add-on)
   ========================================= */
.wpfub-gh-note-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.wpfub-gh-note-list li {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 15px;
    margin-bottom: 12px;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: transform 0.1s;
}

.wpfub-gh-note-list li:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wpfub-gh-note-list .note-date {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 8px;
    display: block;
    font-weight: 500;
}

.wpfub-gh-note-list .note-content {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
}

/* =========================================
   5. Footer & Form Elements (Unique to Add-on)
   ========================================= */
.wpfub-modal-footer {
    padding: 15px 20px;
    background-color: #f0f0f1;
    border-top: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Corner radius handled by style.css wrapper */
}

/* TextArea Styling */
#wpfub-gh-new-note-text {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
    min-height: 60px;
    box-sizing: border-box;
    color: #1F473F; /* Inherit Theme Color */
    background-color: #fff;
}

#wpfub-gh-new-note-text:focus {
    border-color: #1F473F;
    box-shadow: 0 0 0 1px #1F473F;
    outline: none;
}

#wpfub-gh-new-note-text::placeholder {
    color: #1F473F;
    opacity: 0.6;
}

/* Submit Button */
#wpfub-gh-submit-note {
    align-self: flex-end;
    background-color: #1F473F; /* Theme Green */
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px; /* Pill shape match */
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
    transition: background 0.2s;
}

#wpfub-gh-submit-note:hover {
    opacity: 0.9;
}

#wpfub-gh-submit-note:disabled {
    background-color: #a7aaad;
    cursor: not-allowed;
}