/* ============================================================
   Digital Boards — Modern Glass
   ============================================================ */

.boards-main {
    padding: 2rem 0;
    min-height: calc(100vh - 80px);
}

.boards-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-sm);
}

.boards-header h2 {
    margin: 0 0 0.25rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.boards-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.boards-actions {
    display: flex;
    gap: 0.75rem;
}

/* Boards Grid */
.boards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Board Card — Glass */
.board-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out);
    cursor: pointer;
}

.board-card:hover {
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(99, 102, 241, 0.1);
    transform: translateY(-3px);
    border-color: rgba(99, 102, 241, 0.15);
}

.board-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.board-card-title {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
}

.board-card-title h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.board-status,
.board-status-toggle {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.board-status-toggle {
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.board-status-toggle:hover {
    transform: scale(1.05);
    filter: brightness(0.92);
}

.board-status.active,
.board-status-toggle.active {
    background: var(--success-light);
    color: #065F46;
}

.board-status.inactive,
.board-status-toggle.inactive {
    background: var(--error-light);
    color: #B91C1C;
}

.board-card-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.board-card-body {
    padding: 1.25rem 1.5rem;
}

.board-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

.board-meta-item {
    display: flex;
    flex-direction: column;
}

.board-meta-label {
    font-size: 0.72rem;
    color: var(--gray-400);
    text-transform: uppercase;
    margin-bottom: 0.2rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.board-meta-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 600;
}

.board-layout-badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    background: var(--primary-glow);
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
}

.board-card-footer {
    padding: 0.75rem 1.25rem;
    background: rgba(248, 250, 252, 0.5);
}

.board-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.board-actions button {
    padding: 0.4rem 0.7rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all var(--duration-fast);
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-secondary);
    font-family: inherit;
    white-space: nowrap;
}

.board-actions button:hover {
    transform: translateY(-1px);
}

.btn-view {
    background: var(--primary-glow) !important;
    color: var(--primary-color) !important;
    border-color: rgba(99, 102, 241, 0.2) !important;
}

.btn-view:hover {
    background: var(--primary-color) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.btn-edit {
    background: rgba(255, 255, 255, 0.7) !important;
    color: var(--text-secondary) !important;
}

.btn-edit:hover {
    background: var(--gray-100) !important;
    color: var(--text-primary) !important;
}

.btn-duplicate {
    background: rgba(16, 185, 129, 0.1) !important;
    color: var(--success) !important;
    border-color: rgba(16, 185, 129, 0.2) !important;
}

.btn-duplicate:hover {
    background: var(--success) !important;
    color: white !important;
}

.btn-delete {
    background: rgba(239, 68, 68, 0.08) !important;
    color: var(--error) !important;
    border-color: rgba(239, 68, 68, 0.15) !important;
}

.btn-delete:hover {
    background: var(--error) !important;
    color: white !important;
}

.board-display-code {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: var(--gray-100);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
}

/* Empty & Loading */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-sm);
}

.empty-state-icon {
    font-size: 3.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.6;
}

.empty-state h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-xl);
    animation: scaleIn var(--duration-normal) var(--ease-spring);
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    background: var(--gray-100);
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: all var(--duration-fast);
    line-height: 1;
}

.modal-close:hover {
    background: var(--gray-200);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.925rem;
    font-family: inherit;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.8);
    transition: all var(--duration-normal) var(--ease-out);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: white;
}

/* Builder Button */
.btn-builder {
    background: linear-gradient(135deg, #10B981, #34D399) !important;
    color: white !important;
    border-color: transparent !important;
}

.btn-builder:hover {
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

/* TV Status */
.board-tv-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tv-linked-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: var(--success-light);
    color: #065F46;
    border-radius: var(--radius-sm);
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-icon-sm {
    padding: 0.2rem 0.5rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: all var(--duration-fast);
}

.btn-icon-sm:hover {
    background: var(--gray-100);
    border-color: var(--gray-300);
}

.btn-link-tv {
    color: var(--primary-color);
    border-color: rgba(99, 102, 241, 0.3);
}

.btn-link-tv:hover {
    background: var(--primary-glow);
}

/* Form help text */
.form-help-text {
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-top: 0.4rem;
}

/* Success message */
.success-message {
    background: var(--success-light);
    color: #065F46;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    border-left: 3px solid var(--success);
    font-size: 0.875rem;
}

/* Template Cards */
.template-cards {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 0;
}

.template-card {
    flex: 0 0 120px;
    cursor: pointer;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out);
    text-align: center;
    background: var(--gray-50);
}

.template-card:hover {
    border-color: var(--gray-300);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.template-card.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color), var(--shadow-md);
}

.template-card-preview {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 24px;
    background: var(--gray-100);
}

.template-card-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 6px 4px 2px;
}

.template-card-desc {
    font-size: 0.7rem;
    color: var(--text-secondary);
    padding: 0 4px 6px;
}

/* Schedule Button */
.btn-schedule {
    background: linear-gradient(135deg, #8B5CF6, #A78BFA) !important;
    color: white !important;
    border-color: transparent !important;
}

.btn-schedule:hover {
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.35);
}

.btn-qr {
    background: linear-gradient(135deg, #10B981, #34D399) !important;
    color: white !important;
    border-color: transparent !important;
}

.btn-qr:hover {
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}

/* Schedule Modal — Light Theme */
.schedules-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.schedule-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    margin-bottom: 6px;
    background: var(--gray-50);
    transition: all var(--duration-fast);
}

.schedule-row:hover {
    background: white;
    box-shadow: var(--shadow-sm);
}

.schedule-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 0.85rem;
}

.schedule-time {
    color: var(--primary-color);
    font-family: 'SF Mono', Monaco, monospace;
    font-weight: 600;
}

.schedule-days {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.schedule-version {
    color: var(--gray-400);
    font-size: 0.8rem;
}

.days-checkboxes {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.days-checkboxes label {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: color var(--duration-fast);
}

.days-checkboxes label:hover {
    color: var(--text-primary);
}

/* ============================================================
   Device Preview — Phone / Tablet mockup
   ============================================================ */
#devicePreviewModal .device-preview-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1001;
}

.device-preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 900px;
    padding: 1rem 1.5rem;
    gap: 1rem;
}

.device-preview-name {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
}

.device-preview-switcher {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
    flex-shrink: 0;
}

.dp-switch {
    padding: 0.4rem 1rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.dp-switch:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.dp-switch.active {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.device-preview-close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
    line-height: 1;
}

.device-preview-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.device-frame-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem 2rem;
    min-height: 0;
}

/* Device Frame — shared */
.device-frame {
    position: relative;
    background: #1a1a1a;
    box-shadow:
        0 0 0 2px #333,
        0 0 0 4px #111,
        0 20px 60px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Phone */
.device-frame.device-phone {
    width: 390px;
    height: 844px;
    border-radius: 50px;
    padding: 0;
}

/* Tablet */
.device-frame.device-tablet {
    width: 820px;
    height: 1130px;
    border-radius: 30px;
    padding: 0;
}

/* Notch */
.device-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    border-radius: 20px;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.device-phone .device-notch {
    width: 120px;
    height: 28px;
}

.device-tablet .device-notch {
    width: 36px;
    height: 6px;
    top: 14px;
    border-radius: 3px;
}

/* Screen */
.device-screen {
    flex: 1;
    background: #000;
    overflow: hidden;
    position: relative;
    transition: border-radius 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.device-phone .device-screen {
    border-radius: 48px;
}

.device-tablet .device-screen {
    border-radius: 28px;
}

.device-screen iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #0a0a1a;
}

/* Home Indicator */
.device-home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.25);
    border-radius: 100px;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.device-phone .device-home-indicator {
    width: 134px;
    height: 5px;
}

.device-tablet .device-home-indicator {
    width: 160px;
    height: 5px;
}

/* Button styles for device preview in menu group + imenu cards */
.btn-device {
    color: #8B5CF6 !important;
    border-color: rgba(139, 92, 246, 0.25) !important;
    background: rgba(139, 92, 246, 0.06) !important;
}

.btn-device:hover {
    background: rgba(139, 92, 246, 0.15) !important;
    border-color: rgba(139, 92, 246, 0.4) !important;
}

.btn-device-preview {
    background: linear-gradient(135deg, #8B5CF6, #A78BFA) !important;
    color: white !important;
    border-color: transparent !important;
}

.btn-device-preview:hover {
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.35);
}

/* Responsive scaling for device preview */

/* Default: tablet always needs some scale on most screens */
.device-frame.device-tablet {
    transform: scale(0.75);
    transform-origin: top center;
}

@media (max-height: 960px) {
    .device-frame.device-phone {
        transform: scale(0.85);
        transform-origin: top center;
    }
    .device-frame.device-tablet {
        transform: scale(0.62);
    }
}

@media (max-height: 800px) {
    .device-frame.device-phone {
        transform: scale(0.72);
    }
    .device-frame.device-tablet {
        transform: scale(0.50);
    }
}

@media (max-height: 650px) {
    .device-frame.device-phone {
        transform: scale(0.58);
    }
    .device-frame.device-tablet {
        transform: scale(0.40);
    }
}

@media (max-width: 900px) {
    .device-frame.device-tablet {
        transform: scale(0.50);
    }
}

@media (max-width: 500px) {
    .device-frame.device-phone {
        transform: scale(0.62);
    }
    .device-frame.device-tablet {
        transform: scale(0.36);
    }
    .device-preview-toolbar {
        padding: 0.75rem 1rem;
    }
    .device-preview-name {
        font-size: 0.85rem;
    }
}

/* ============================================================
   Menu Group — Visual grouping for boards in interactive menus
   ============================================================ */
.menu-group {
    grid-column: 1 / -1;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-left: 4px solid var(--menu-accent, var(--primary-color));
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
    margin-top: 0.25rem;
}

.menu-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray-100);
}

.menu-group-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menu-group-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.menu-group-title h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.menu-group-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: var(--gray-100);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
}

.menu-group-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menu-group-code {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--gray-100);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
}

.menu-group-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

/* Board page label badge */
.board-card-badges {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.board-menu-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    background: var(--primary-glow);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Responsive — Tablet */
@media (max-width: 1024px) {
    .boards-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1rem;
    }

    .menu-group-cards {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1rem;
    }
}

/* Responsive — Phone */
@media (max-width: 768px) {
    .boards-main {
        padding: 1rem 0;
    }

    .boards-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        padding: 1.25rem;
        margin-bottom: 1rem;
    }

    .boards-header h2 {
        font-size: 1.25rem;
    }

    .boards-header p {
        font-size: 0.85rem;
    }

    .boards-actions {
        width: 100%;
    }

    .boards-actions .btn-primary {
        width: 100%;
        text-align: center;
        padding: 0.75rem;
    }

    .boards-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1rem;
    }

    .menu-group {
        padding: 1rem;
        border-left-width: 3px;
    }

    .menu-group-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .menu-group-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .board-card-header {
        padding: 1.25rem;
    }

    .board-card-title h3 {
        font-size: 1.05rem;
    }

    .board-card-body {
        padding: 1rem 1.25rem;
    }

    .board-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .board-meta-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .board-card-footer {
        padding: 0.75rem 1.25rem;
        flex-direction: column;
        gap: 0.75rem;
    }

    .board-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .board-actions button {
        padding: 0.6rem 0.5rem;
        font-size: 0.8rem;
        text-align: center;
    }

    .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 92vh;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }

    .modal.show {
        align-items: flex-end;
    }

    .modal-header {
        padding: 1rem 1.25rem;
        position: sticky;
        top: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 1;
    }

    .modal-body {
        padding: 1rem 1.25rem;
        flex: 1;
        overflow-y: auto;
    }

    .modal-footer {
        padding: 1rem 1.25rem;
        position: sticky;
        bottom: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 1;
    }

    .empty-state {
        padding: 2rem 1rem;
    }

    .empty-state-icon {
        font-size: 3rem;
    }

    .loading {
        padding: 2rem;
    }
}

@media (max-width: 380px) {
    .board-actions {
        grid-template-columns: 1fr;
    }
}
