/* Discussions Page Styles - Premium Trello-like UI */

:root {
    --card-shadow: 0 1px 0 rgba(9, 30, 66, 0.25);
    --card-hover-shadow: 0 4px 8px -2px rgba(9, 30, 66, 0.25), 0 0 0 1px rgba(9, 30, 66, 0.08);
    --column-bg: #f1f2f4;
    --column-width: 272px;
    --card-bg: #ffffff;
    --text-primary: #172b4d;
    --text-secondary: #44546f;
    --text-tertiary: #626f86;
    --transition-speed: 0.2s;
}

[data-theme="dark"] {
    --column-bg: #1d2125;
    --card-bg: #22272b;
    --text-primary: #b6c2cf;
    --text-secondary: #9fadbc;
    --text-tertiary: #8c9bab;
    --card-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

/* Main Layout Wrapper */
.discussions-layout {
    display: flex;
    flex-direction: row;
    /* Explicitly row */
    height: 100%;
    width: 100%;
    overflow: hidden;
    background-color: transparent;
}

/* Board Picker (Header Dropdown) */
.board-picker-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.board-picker-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background 0.2s;
    user-select: none;
}

.board-picker-trigger:hover {
    background: rgba(255, 255, 255, 0.15);
}

.board-picker-trigger h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    /* Slightly larger */
    font-weight: 800;
    /* Bolder */
    margin: 0;
    /* subtle gradient text effect */
    background: linear-gradient(to right, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* softer shadow */
    letter-spacing: -0.5px;
}

.picker-chevron {
    color: var(--text-secondary);
    font-size: 0.8rem;
    transition: transform 0.2s;
}

.board-picker-wrapper.active .picker-chevron {
    transform: rotate(180deg);
}

/* Dropdown Menu */
/* Dropdown Menu */
.board-picker-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    width: 280px;
    background: var(--bg-panel);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;

    /* Animation */
    transform-origin: top left;
    animation: dropdownEnter 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Add bridge to ensure hover isn't lost */
.board-picker-wrapper::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 12px;
    /* Bridge the gap */
}

/* Compensate for bridge with margin on dropdown content if needed, 
   but since dropdown is child, we just push it down with margin-top 
   that sits INSIDE the bridge area? No, dropdown is absolute.
   We set top: calc(100% + 8px); and bridge covers the 8px.
*/
.board-picker-dropdown {
    top: calc(100% + 8px);
    margin-top: 0;
}

/* Show on Hover (or active) */
.board-picker-wrapper:hover .board-picker-dropdown,
.board-picker-wrapper.active .board-picker-dropdown {
    display: flex;
}

/* Rotate Chevron on Hover */
.board-picker-wrapper:hover .picker-chevron,
.board-picker-wrapper.active .picker-chevron {
    transform: rotate(180deg);
}

@keyframes dropdownEnter {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.board-picker-wrapper.active .board-picker-dropdown {
    /* Kept for compatibility, but hover handles it mostly */
}

.dropdown-header {
    padding: 12px 16px 8px;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-light);
}

.dropdown-board-list {
    list-style: none;
    padding: 4px 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-item {
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--text-main);
    font-weight: 500;
    transition: background 0.1s;
    justify-content: space-between;
}

.dropdown-item:hover {
    background: var(--bg-sidebar-hover);
}

.dropdown-item.active {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
}

.dropdown-action-btn {
    width: 100%;
    padding: 10px;
    text-align: left;
    background: transparent;
    border: none;
    border-top: 1px solid var(--border-light);
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.1s;
}

.dropdown-action-btn:hover {
    background: var(--bg-sidebar-hover);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}


/* Main Content Area */
.board-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    /* Crucial for nested flex scrolling */
    position: relative;
    /* Trello Green Fallback and Image */
    /* Default (Light) Gradient */
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    background-size: cover;
    background-position: center;
}

/* Dark Mode Gradient Override */
[data-theme="dark"] .board-main-content {
    background: linear-gradient(135deg, #1a2332 0%, #0d1117 100%);
    background-size: cover;
}


/* Board Header */
.kanban-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    flex-shrink: 0;
    position: relative;
    /* Create stacking context */
    z-index: 50;
    /* Ensure it's above the board content */
}

.kanban-header h2 {
    color: #172b4d;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.add-task-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.add-task-btn:hover {
    filter: brightness(110%);
}



.settings-btn {
    background: var(--bg-panel);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.settings-btn:hover {
    background: rgba(0, 0, 0, 0.4);
}


/* Kanban Board (Columns Container) */
.kanban-board {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    /* Align columns to top */
    gap: 12px;
    padding: 12px 20px;
    overflow-x: auto;
    overflow-y: hidden;
    /* Scroll columns horizontally */
    flex: 1;
}

/* Individual Column */
.kanban-column {
    background: var(--column-bg);
    flex: 0 0 272px;
    /* Rigid width */
    width: 272px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    max-height: 100%;
    /* Height constraint */
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.15);
}

.column-header {
    padding: 12px 14px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    cursor: grab;
}

.column-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    padding-left: 4px;
}

.task-count {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-secondary);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
}

.delete-column-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s, color 0.2s;
    font-size: 1rem;
    padding: 0 4px;
}

.column-header:hover .delete-column-btn {
    opacity: 1;
}

.delete-column-btn:hover {
    color: #ef4444;
}

[data-theme="dark"] .kanban-header {
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border-light);
}

.inline-add-task-btn {
    width: 100%;
    padding: 8px;
    margin-top: 8px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    transition: background 0.1s;
}

.inline-add-task-btn:hover {
    background: rgba(var(--text-secondary-rgb, 100, 116, 139), 0.1);
    color: var(--text-primary);
}

.add-column-btn {
    flex: 0 0 272px;
    height: 50px;
    border-radius: 12px;
    background: var(--bg-panel);
    /* Solid background match */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 500;
    transition: background 0.2s;
    border: 2px dashed var(--border-color);
    opacity: 0.9;
}

.add-column-btn:hover {
    background: var(--bg-panel);
    opacity: 1;
    color: var(--text-primary);
}

.column-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    scroll-behavior: auto;
    /* Instant scroll */
}

/* Scrollbar Style */
.column-content::-webkit-scrollbar {
    width: 8px;
}

.column-content::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

.column-content::-webkit-scrollbar-track {
    background: transparent;
}


/* Cards */
.kanban-card {
    background: var(--card-bg);
    padding: 8px 10px;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    cursor: pointer;
    position: relative;
    border: 1px solid transparent;
    text-decoration: none;
    z-index: 1;
    min-height: 32px;
    flex-shrink: 0;
    /* Prevent squashing */
    display: flex;
    flex-direction: column;
}

.kanban-card:hover {
    box-shadow: var(--card-hover-shadow);
    background-color: var(--bg-primary);
}

.kanban-card.dragging {
    opacity: 0.6;
    background: var(--bg-tertiary);
    transform: rotate(2deg);
}

.card-description-preview {
    font-size: 0.85em;
    color: var(--text-tertiary);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

/* Card Internals */
.card-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25em;
    /* Scale gap too */
    margin-bottom: 4px;
}

.card-label {
    height: 8px;
    width: 40px;
    border-radius: 4px;
    background-color: var(--task-color, #cbd5e1);
    transition: height 0.2s, opacity 0.2s;
}

.card-label:hover {
    height: 16px;
    opacity: 0.85;
}

.card-title {
    color: var(--text-primary);
    font-size: 1em;
    /* Inherit from card (which uses var) */
    font-weight: 500;
    line-height: 1.4;
    word-wrap: break-word;
    word-break: break-word;
    /* Ensure long words break */
    padding-right: 20px;
    /* Space for delete button */
    margin-bottom: 4px;
}


/* Card Footer Row (Badges + Members) */
.card-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 6px;
    gap: 8px;
}

.card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0;
    /* Handled by footer row */
    color: var(--text-tertiary);
}

.card-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85em;
    /* Scale relative to card */
    padding: 2px 4px;
    border-radius: 4px;
}

.card-badge:hover {
    background-color: rgba(0, 0, 0, 0.06);
    color: var(--text-secondary);
}

.card-members {
    display: flex;
    justify-content: flex-end;
    margin-top: 0;
    /* Handled by footer row */
    flex-shrink: 0;
}

.member-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid var(--card-bg);
}

/* Delete Button */
.delete-task-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 3px;
    padding: 4px;
    opacity: 0;
    transition: opacity 0.2s;
    border: none;
    cursor: pointer;
    font-size: 0.85em;
    /* Scale */
}

.kanban-card:hover .delete-task-btn {
    opacity: 1;
}

.delete-task-btn:hover {
    background: #fee2e2;
    color: #ef4444;
}


/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-primary);
    width: 480px;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transform: scale(0.96);
    transition: transform 0.2s;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

[data-theme="dark"] .modal {
    background: #282e33;
    color: #b6c2cf;
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 16px;
}

.modal-title {
    margin: 0;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Header Color Picker */
.header-color-picker {
    margin-left: 0;
    gap: 6px;
}

.header-status-select {
    width: auto;
    padding: 4px 8px;
    font-size: 0.85rem;
    height: 32px;
    margin-left: auto;
    /* Push everything after title to the right */
    border-color: rgba(255, 255, 255, 0.1);
}

.header-color-picker .color-option {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    box-sizing: border-box;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--card-bg);
}

/* Color Picker */
.color-picker {
    display: flex;
    gap: 8px;
    align-items: center;
}

.color-picker input[type="radio"] {
    display: none;
}

.color-option {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    background-color: var(--opt-color, transparent);
    transition: transform 0.2s, box-shadow 0.2s;
}

.color-none {
    border: 2px solid var(--text-secondary);
    background: transparent;
}

.color-picker input:checked+.color-option {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px var(--bg-primary), 0 0 0 4px var(--primary-color);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.modal-footer button {
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
    transition: background 0.2s, filter 0.2s;
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color) !important;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
}


/* Background Gallery */
.bg-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    margin-top: 10px;
    max-height: 150px;
    overflow-y: auto;
    padding: 2px;
    /* For focus outline visibility */
}

.bg-gallery-item {
    aspect-ratio: 16/9;
    border-radius: 4px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.bg-gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.bg-gallery-item.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--bg-panel), 0 0 0 4px var(--primary-color);
}

.bg-gallery-item.deletion-selected {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px var(--bg-panel), 0 0 0 4px #ef4444;
    position: relative;
    opacity: 0.8;
}

.bg-gallery-item.deletion-selected::after {
    content: "✕";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.8);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    backdrop-filter: blur(4px);
    padding: 0;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.settings-btn svg {
    transition: transform 0.5s ease;
}

.settings-btn:hover svg {
    transform: rotate(90deg);
}

/* --- Modern Quick Edit UI (Glassmorphism) --- */
.quick-edit-column {
    --qe-bg: rgba(255, 255, 255, 0.65);
    --qe-border: rgba(255, 255, 255, 0.3);

    flex: 0 0 0;
    /* Collapsed by default */
    width: 0;
    margin-right: 0;
    border-radius: 16px;
    background: var(--qe-bg);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--qe-border);
    box-shadow:
        0 8px 32px 0 rgba(31, 38, 135, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0;
    transform: translateX(-10px) scale(0.98);
    pointer-events: none;
    max-height: calc(100vh - 140px);
    overflow: visible;
    /* changed from hidden to visible */
    position: relative;
}

.quick-edit-column.active {
    flex: 0 0 320px;
    width: 320px;
    margin-right: 12px;
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

/* Dark Mode Glass */
[data-theme="dark"] .quick-edit-column {
    --qe-bg: rgba(30, 35, 45, 0.75);
    --qe-border: rgba(255, 255, 255, 0.08);

    background: var(--qe-bg);
    border: 1px solid var(--qe-border);
    box-shadow:
        0 8px 32px 0 rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Visual Connector */
/* Visual Connector */
.qe-connector {
    position: absolute;
    left: -24px;
    /* Wider reach */
    top: var(--card-y, 50px);
    width: 25px;
    /* Spans gap (12px) + overlap */
    height: 48px;
    /* Taller for smoother curve */
    background: var(--qe-bg);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    /* Smooth "flow" shape pointing left */
    clip-path: path('M25 0 Q0 0 0 24 Q0 48 25 48 L25 0');
    transform: translateY(-50%);
    transition: top 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 100;
    /* Ensure on top of everything */
    pointer-events: none;
    /* Add a subtle shadow via filter since box-shadow is clipped */
    filter: drop-shadow(-2px 0 4px rgba(0, 0, 0, 0.1));
}

/* Border hack for connector? Hard with glass. 
   We will rely on shadow/highlight of main box and just let this be a "bridge".
*/


/* Header */
.quick-edit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .quick-edit-header {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.qe-header-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    font-weight: 700;
}

/* Body */
.quick-edit-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Custom Inputs - Minimalist */
.qe-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.qe-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-left: 2px;
}

.qe-input,
.qe-textarea,
.qe-select {
    width: 100%;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all 0.2s;
}

.qe-textarea {
    resize: none;
    min-height: 100px;
    line-height: 1.5;
}

.qe-input:focus,
.qe-textarea:focus,
.qe-select:focus {
    outline: none;
    background: var(--bg-primary);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

[data-theme="dark"] .qe-input,
[data-theme="dark"] .qe-textarea,
[data-theme="dark"] .qe-select {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .qe-input:focus,
[data-theme="dark"] .qe-textarea:focus,
[data-theme="dark"] .qe-select:focus {
    background: #1e1e1e;
}

/* Checklist Panel */
.qe-checklist-panel {
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    padding: 10px;
}

[data-theme="dark"] .qe-checklist-panel {
    background: rgba(255, 255, 255, 0.02);
}

/* Footer */
.quick-edit-footer {
    padding: 12px 20px 16px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .quick-edit-footer {
    border-top-color: rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.1);
}

.qe-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.qe-btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px rgba(var(--primary-rgb), 0.2);
}

.qe-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(var(--primary-rgb), 0.3);
}

.qe-btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.qe-btn-ghost:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

[data-theme="dark"] .qe-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
}

.qe-close-icon {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    transition: all 0.2s;
}

.qe-close-icon:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}