/* assets/css/components.css */

/* Cards */
.card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: box-shadow var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    opacity: 0.9;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    background-color: var(--bg-body);
    border-color: var(--text-muted);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

/* Inputs */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: var(--space-md);
}

.form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-input,
.form-select {
    padding: 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-card);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

[data-theme="dark"] .form-input,
[data-theme="dark"] .form-select {
    color: var(--text-main);
}

[data-theme="dark"] .form-label {
    color: var(--text-main);
}

/* Tables */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.data-table th,
.data-table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: #f9fafb;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover {
    background-color: #f9fafb;
}

[data-theme="dark"] .data-table th {
    background-color: #0f172a;
}

[data-theme="dark"] .data-table tr:hover {
    background-color: #334155;
}

/* Badges / Status */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success {
    background-color: #10b981;
    color: #ffffff;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-warning {
    background-color: #f59e0b;
    color: #ffffff;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background-color: #3b82f6;
    color: #ffffff;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: var(--text-muted);
    font-weight: 500;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.modal-content {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: var(--space-lg);
    max-height: 80vh;
    overflow-y: auto;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.close-modal:hover {
    color: var(--text-main);
}

/* Legend Styling */
.legend-container {
    display: flex;
    gap: 16px;
    margin-top: 6px;
    background: #f8fafc;
    padding: 6px 14px;
    border-radius: 999px;
    width: fit-content;
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .legend-container {
    background: #1e293b;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.legend-dot.available {
    background-color: var(--success-color);
}

.legend-dot.occupied {
    background-color: #ef4444;
}

.legend-dot.reserved {
    background-color: #7c3aed;
}

/* Seat Grid Container */
.seat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: var(--space-md);
}

/* Seat Grid Improvements */
.seat-item {
    position: relative;
    cursor: pointer;
    transition: transform var(--transition-fast);
    aspect-ratio: 1;
    background-color: #f8fafc;
    /* Neutral background */
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px solid transparent;
}

.seat-item.available {
    background-color: #f0fdf4;
    color: var(--success-color);
    border-color: #dcfce7;
}

.seat-item:hover {
    transform: translateY(-2px);
    z-index: 20;
    box-shadow: var(--shadow-md);
}

.seat-item.occupied {
    background-color: #fef2f2;
    color: var(--danger-color);
    border-color: #fee2e2;
    /* Softer border */
    opacity: 0.9;
}

.seat-item.reserved {
    background-color: #f5f3ff;
    color: #7c3aed;
    border-color: #ede9fe;
    /* Softer border */
    opacity: 0.95;
}

.seat-label {
    font-weight: 700;
    font-size: 0.8rem;
    z-index: 1;
}

.seat-icon {
    font-size: 2rem !important;
    position: absolute;
    bottom: -5px;
    right: -5px;
    opacity: 0.2;
}

/* Tooltip / Quick Card Refined */
.seat-tooltip {
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    color: var(--text-main);
    padding: 0;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 5px 10px rgba(0, 0, 0, 0.05);
    width: 220px;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
    overflow: hidden;
    text-align: left;
}

.seat-item:hover .seat-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.tooltip-header {
    background: var(--primary-light);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.tooltip-avatar {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.tooltip-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tooltip-title strong {
    font-size: 0.9rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}

.tooltip-body {
    padding: 12px;
    background: white;
}

.tooltip-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tooltip-row:last-child {
    margin-bottom: 0;
}

.tooltip-row .material-icons-round {
    font-size: 1rem;
    color: var(--primary-color);
    opacity: 0.8;
}

.tooltip-footer {
    padding: 8px 12px;
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
    font-size: 0.7rem;
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

.tooltip-footer .material-icons-round {
    font-size: 0.9rem;
}

/* Dark mode tooltip overrides */
[data-theme="dark"] .seat-tooltip {
    background: rgba(30, 41, 59, 0.98);
    border-color: #475569;
}

[data-theme="dark"] .tooltip-header {
    background: rgba(51, 65, 85, 0.8);
    border-bottom-color: #475569;
}

[data-theme="dark"] .tooltip-title strong {
    color: #f8fafc;
}

[data-theme="dark"] .tooltip-body {
    background: #1e293b;
}

[data-theme="dark"] .tooltip-row {
    color: #cbd5e1;
}

[data-theme="dark"] .tooltip-footer {
    background: #0f172a;
    border-top-color: #475569;
    color: #818cf8;
}

/* Shift Toggles Premium */
.shift-toggles {
    display: inline-flex;
    background: #f1f5f9;
    padding: 6px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    gap: 4px;
}

.shift-toggle-btn {
    padding: 8px 20px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.shift-toggle-btn:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.5);
}

.shift-toggle-btn.active {
    background: white;
    color: var(--primary-color);
}

/* Quick Stats Enhancements */
.stat-item {
padding: 1rem;
border-radius: var(--radius-md);
background: var(--bg-body);
border: 1px solid var(--border-color);
transition: all var(--transition-fast);
margin-bottom: 0.5rem;
}

.stat-item:hover {
border-color: var(--primary-color);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
transform: translateY(-1px);
}

.stat-item .d-flex {
align-items: center;
}

.stat-item .material-icons-round {
flex-shrink: 0;
}

.progress-bar {
width: 100%;
height: 6px;
background: var(--border-color);
border-radius: 3px;
overflow: hidden;
position: relative;
margin-top: 0.5rem;
}

.progress-fill {
height: 100%;
border-radius: 3px;
transition: width 0.8s ease;
position: relative;
}

.progress-fill::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
animation: shimmer 2s infinite;
}

@keyframes shimmer {
0% { transform: translateX(-100%); }
100% { transform: translateX(100%); }
}

/* Toggle Switches */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--primary-color);
}

.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 1px var(--primary-color);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* Dark mode toggle switches */
[data-theme="dark"] .toggle-slider {
    background-color: #4a5568;
}

[data-theme="dark"] .toggle-slider:before {
    background-color: #e2e8f0;
}

/* Theme transitions */
.theme-transitioning {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Enhanced theme toggle button */
.theme-toggle {
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.theme-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    from {
        transform: scale(0);
        opacity: 1;
    }
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Enhanced dark mode contrast */
[data-theme="dark"] {
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --bg-input: #334155;
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --border-color: #475569;
    --primary-light: #3730a3;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Better contrast for dark mode */
[data-theme="dark"] .card {
    background: var(--bg-card);
    border-color: var(--border-color);
    box-shadow: var(--shadow-md);
}

[data-theme="dark"] .btn {
    background: var(--bg-input);
    color: var(--text-main);
    border-color: var(--border-color);
}

[data-theme="dark"] .btn:hover {
    background: #475569;
    border-color: #64748b;
}

[data-theme="dark"] .form-input,
[data-theme="dark"] .form-select {
    background: var(--bg-input);
    color: var(--text-main);
    border-color: var(--border-color);
}

[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

/* Dark mode table improvements */
[data-theme="dark"] .data-table {
    color: var(--text-main);
}

[data-theme="dark"] .data-table th {
    background: var(--bg-card);
    color: var(--text-main);
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .data-table td {
    border-bottom-color: #334155;
}

[data-theme="dark"] .badge {
    color: var(--text-main);
}

/* Dark mode modal improvements */
[data-theme="dark"] .modal-content {
    background: var(--bg-card);
    color: var(--text-main);
    border-color: var(--border-color);
}

[data-theme="dark"] .modal-header {
    background: var(--bg-input);
    border-bottom-color: var(--border-color);
}

/* Dark mode skeleton improvements */
[data-theme="dark"] .skeleton,
[data-theme="dark"] .skeleton-progress-fill,
[data-theme="dark"] .skeleton-avatar,
[data-theme="dark"] .skeleton-badge {
    background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
    background-size: 200% 100%;
}

/* Dark mode tooltip improvements */
[data-theme="dark"] .seat-tooltip {
    background: rgba(30, 41, 59, 0.98);
    border-color: #475569;
}

[data-theme="dark"] .tooltip-header {
    background: rgba(51, 65, 85, 0.8);
    border-bottom-color: #475569;
}

[data-theme="dark"] .tooltip-body {
    background: #1e293b;
}

[data-theme="dark"] .tooltip-row {
    color: #cbd5e1;
}

[data-theme="dark"] .tooltip-footer {
    background: #0f172a;
    border-top-color: #475569;
    color: #818cf8;
}

/* Dark mode progress bars */
[data-theme="dark"] .progress-bar {
    background: #334155;
}

[data-theme="dark"] .progress-fill {
    background: linear-gradient(90deg, var(--primary-color), #818cf8);
}

/* Dark mode legend */
[data-theme="dark"] .legend-container {
    background: var(--bg-card);
    border-color: var(--border-color);
}

/* Dark mode shift toggles */
[data-theme="dark"] .shift-toggles {
    background: #1e293b;
    border-color: var(--border-color);
}

[data-theme="dark"] .shift-toggle-btn {
    background: transparent;
    color: var(--text-muted);
}

[data-theme="dark"] .shift-toggle-btn:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

[data-theme="dark"] .shift-toggle-btn.active {
    background: var(--bg-card);
    color: var(--primary-color);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Cards */
    .card {
        padding: var(--space-md);
        margin-bottom: var(--space-md);
    }

    /* Buttons */
    .btn {
        padding: 1rem 1.2rem;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
        min-height: 48px; /* Touch-friendly minimum height */
        touch-action: manipulation; /* Improves touch responsiveness */
    }

    .btn-sm {
        padding: 0.8rem 1rem;
        font-size: 0.8rem;
        min-height: 40px; /* Touch-friendly */
    }

    /* Forms */
    .form-group {
        margin-bottom: var(--space-sm);
    }

    .form-input,
    .form-select {
        padding: 1rem;
        font-size: 0.9rem;
        min-height: 48px; /* Touch-friendly */
    }

    /* Tables - Mobile Stack with Enhancements */
    .table-container {
        border: none;
        background: none;
        overflow-x: visible;
        position: relative; /* For sticky header */
    }

    .data-table {
        display: block;
        font-size: 0.85rem;
    }

    .data-table thead {
        display: block;
        position: sticky;
        top: 0;
        z-index: 10;
        background: var(--bg-card);
        border-bottom: 2px solid var(--primary-color);
    }

    .data-table thead th {
        display: block;
        padding: 1rem 0.8rem;
        text-align: left;
        border-bottom: 1px solid var(--border-color);
        font-weight: 600;
        color: var(--text-main);
        background: var(--bg-card);
    }

    .data-table tbody {
        display: block;
    }

    .data-table tr {
        display: block;
        margin-bottom: var(--space-md);
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-lg);
        padding: var(--space-md);
        box-shadow: var(--shadow-sm);
        position: relative; /* For swipe actions */
        overflow: hidden; /* Prevents overflow during swipe */
    }

    .data-table td {
        display: block;
        text-align: left;
        padding: 0;
        border-bottom: none;
        margin-bottom: var(--space-sm);
    }

    .data-table td:last-child {
        margin-bottom: 0;
    }

    .data-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-muted);
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        display: block;
        margin-bottom: 0.25rem;
    }

    /* Mobile Table Actions */
    .data-table .mobile-stack {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0;
        min-height: 60px; /* Touch-friendly */
    }

    .data-table .desktop-actions {
        display: none;
    }

    .data-table .mobile-stack .btn {
        flex: 1;
        min-width: 44px; /* Touch-friendly minimum */
        min-height: 44px; /* Touch-friendly minimum */
        padding: 0.5rem;
        font-size: 0.8rem;
        margin: 0;
        touch-action: manipulation;
    }

    /* Swipe Actions */
    .swipe-actions {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        gap: 0.25rem;
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 5;
    }

    .swipe-actions.active {
        opacity: 1;
    }

    .swipe-action {
        background: var(--primary-color);
        color: white;
        border: none;
        padding: 0.5rem 0.75rem;
        border-radius: var(--radius-md);
        font-size: 0.8rem;
        cursor: pointer;
        touch-action: manipulation;
        min-width: 44px;
        min-height: 44px;
    }

    .swipe-action.edit {
        background: var(--info-color);
    }

    .swipe-action.delete {
        background: var(--danger-color);
    }

    /* Better spacing for mobile */
    .mobile-stack {
        gap: 1rem !important; /* Increased spacing */
        padding: 1rem !important;
    }

    .mobile-stack .btn {
        margin: 0.25rem 0; /* Better button spacing */
    }

    /* Modal */
    .modal-content {
        margin: var(--space-md);
        max-width: calc(100% - 2rem);
        max-height: calc(100vh - 2rem);
    }

    .modal-header,
    .modal-body {
        padding: var(--space-md);
    }

    /* Seat Grid */
    .seat-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: var(--space-sm);
    }

    .seat-label {
        font-size: 0.7rem;
    }

    /* Seat Type Styling */
    .seat-item.premium {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border: 2px solid #5a67d8;
    }

    .seat-item.computer {
        background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        border: 2px solid #e53e3e;
    }

    .seat-item.study {
        background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        border: 2px solid #3182ce;
    }

    .seat-item.room {
        background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
        border: 2px solid #38a169;
    }

    .seat-item.premium.occupied {
        background: linear-gradient(135deg, #5a67d8 0%, #4c51bf 100%);
    }

    .seat-item.computer.occupied {
        background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    }

    .seat-item.study.occupied {
        background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    }

    .seat-item.room.occupied {
        background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    }

    .seat-icon {
        font-size: 1.5rem !important;
    }

    /* Enhanced Recently Added Seats List Styling */
    .enhanced-seats-list {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        background: var(--bg-card);
        padding: 1rem;
        white-space: nowrap !important;
        width: 100%;
    }

    .seats-horizontal-container {
        display: flex !important;
        gap: 1rem !important;
        min-height: 120px !important;
        align-items: center !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }

    .recent-seat-item-enhanced {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 1rem !important;
        min-width: 150px !important;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        background: var(--bg-card);
        transition: all 0.3s ease;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        white-space: normal !important;
        flex-shrink: 0 !important;
        flex: 0 0 auto !important;
    }

    .recent-seat-item-enhanced:hover {
        border-color: var(--primary-color);
        box-shadow: var(--shadow-md);
        transform: translateY(-4px);
        background: linear-gradient(135deg, var(--bg-card) 0%, var(--primary-light) 100%);
    }

    .seat-info-badge {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        text-align: center;
        width: 100%;
    }

    .seat-id {
        font-weight: 700;
        font-size: 1.1rem;
        color: var(--primary-color);
        background: var(--primary-light);
        padding: 0.5rem 1rem;
        border-radius: var(--radius-sm);
        border: 2px solid var(--primary-color);
        text-align: center;
        min-width: 80px;
    }

    .seat-type-badge {
        font-size: 0.75rem;
        font-weight: 600;
        padding: 0.25rem 0.5rem;
        border-radius: var(--radius-sm);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        text-align: center;
    }

    .seat-type-badge.regular {
        background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
        color: #1976d2;
        border: 1px solid #1976d2;
    }

    .seat-type-badge.premium {
        background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
        color: #f57c00;
        border: 1px solid #f57c00;
    }

    .seat-type-badge.computer {
        background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
        color: #7b1fa2;
        border: 1px solid #7b1fa2;
    }

    .seat-type-badge.study {
        background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
        color: #388e3c;
        border: 1px solid #388e3c;
    }

    .seat-type-badge.room {
        background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
        color: #c2185b;
        border: 1px solid #c2185b;
    }

    .seat-actions {
        display: flex;
        justify-content: center;
        margin-top: 0.5rem;
    }

    .btn-danger {
        background: var(--danger-color);
        color: white;
        border: 1px solid var(--danger-color);
        transition: all 0.2s ease;
        padding: 0.25rem 0.5rem;
    }

    .btn-danger:hover {
        background: #c62828;
        border-color: #c62828;
        transform: scale(1.05);
    }

    .empty-state {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 3rem 2rem;
        text-align: center;
        border: 2px dashed var(--border-color);
        border-radius: var(--radius-md);
        background: var(--bg-card);
        width: 100%;
    }

    .empty-state .material-icons-round {
        opacity: 0.5;
    }
    .enhanced-form {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .enhanced-seats-list {
        max-height: 300px;
        overflow-y: auto;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        background: var(--bg-card);
    }

    .enhanced-seats-list .recent-seat-item {
        margin-bottom: 0.75rem;
        padding: 1rem;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        background: var(--bg-card);
        transition: all 0.2s ease;
    }

    .enhanced-seats-list .recent-seat-item:hover {
        border-color: var(--primary-color);
        box-shadow: var(--shadow-sm);
        transform: translateY(-2px);
    }

    .btn-large {
        padding: 1rem 2rem;
        font-size: 1.1rem;
        font-weight: 600;
        border-radius: var(--radius-md);
    }

    .btn-large .material-icons-round {
        font-size: 1.3rem;
    }
    .recent-seat-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        margin-bottom: 0.5rem;
    }

    .recent-seat-number {
        font-weight: 600;
        color: var(--text-main);
        background: var(--primary-color);
        color: white;
        padding: 0.25rem 0.5rem;
        border-radius: var(--radius-sm);
        font-size: 0.8rem;
    }

    .recent-seat-type {
        font-size: 0.8rem;
        color: var(--text-muted);
        text-transform: capitalize;
        flex: 1;
    }

    /* Legend */
    .legend-container {
        flex-wrap: wrap;
        gap: var(--space-sm);
        padding: var(--space-sm);
    }

    /* Shift Toggles */
    .shift-toggles {
        flex-direction: column;
        width: 100%;
    }

    .shift-toggle-btn {
        width: 100%;
        padding: var(--space-sm);
    }

    /* Tooltip - Hide on mobile */
    .seat-tooltip {
        display: none;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile adjustments */
    .page-title {
        font-size: 1.1rem;
    }

    .card {
        padding: var(--space-sm);
    }

    .seat-grid {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    }
}