/* ==========================================================================
   casamea.online - Sistem de Design Premium Dark Theme
   ========================================================================== */

/* 1. Reset & Definitii Variabile */
:root {
    --bg-main: #0B0F19;
    --bg-card: rgba(17, 24, 39, 0.75);
    --bg-card-hover: rgba(26, 36, 56, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 168, 204, 0.2);
    
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    
    --primary-color: #00ADB5;
    --primary-glow: rgba(0, 173, 181, 0.4);
    --accent-color: #3F72AF;
    
    --success-color: #10B981;
    --warning-color: #FBBF24;
    --danger-color: #EF4444;
    
    --font-sans: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --glass-blur: blur(12px);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(at 0% 0%, rgba(63, 114, 175, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(0, 173, 181, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 8px var(--primary-glow);
}

/* 2. Utilitare Glassmorphism & Carduri */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(0, 173, 181, 0.25);
    box-shadow: 0 12px 40px 0 rgba(0, 173, 181, 0.1);
    transform: translateY(-2px);
}

/* 3. Header & Footer Responsive */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(11, 15, 25, 0.7);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    transition: var(--transition-smooth);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.header-logo {
    height: 38px;
    width: auto;
    display: block;
    transition: var(--transition-smooth);
}

.logo-link:hover .header-logo {
    transform: scale(1.08);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

.btn-header-logout {
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger-color) !important;
    font-weight: 600;
}

.btn-header-logout:hover {
    background: var(--danger-color);
    color: #fff !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    flex-direction: column;
    gap: 6px;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* Footer style */
.main-footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
    color: var(--text-muted);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 4. Butoane & Inputuri */
.btn-primary {
    background-color: var(--primary-color);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background-color: #00c4cc;
    box-shadow: 0 0 15px var(--primary-glow);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-secondary);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 8px var(--primary-glow);
}

/* 5. Autentificare (Login/Register Card Centrat) */
.auth-wrapper {
    min-height: calc(100vh - 160px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 440px;
}

.auth-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Password Toggle Eye Icon */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-secondary);
    background: none;
    border: none;
}

.password-toggle:hover {
    color: var(--text-primary);
}

/* Shake Animation for Alerts */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake-alert {
    animation: shake 0.5s ease-in-out;
}

.admin-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: calc(100vh - 160px);
    max-width: 1400px;
    margin: 2rem auto;
    gap: 2rem;
    padding: 0 2rem;
}

.admin-sidebar {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1rem 0.75rem;
    height: fit-content;
}

.admin-sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--primary-color);
}

.admin-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.admin-menu-link {
    display: flex;
    align-items: center;
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.admin-menu-link:hover, .admin-menu-link.active {
    background: rgba(0, 173, 181, 0.1);
    color: var(--primary-color);
    padding-left: 1rem;
}

.admin-workspace {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-width: 0;
    width: 100%;
}

/* 7. Avizier & Tichete (Tenant) */
.tenant-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.tenant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.notice-card {
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent-color);
}

.notice-card.notice-global {
    border-left-color: var(--primary-color);
}

.notice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.notice-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.notice-content {
    color: var(--text-secondary);
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-global {
    background: rgba(0, 173, 181, 0.15);
    color: var(--primary-color);
}

.badge-personal {
    background: rgba(63, 114, 175, 0.15);
    color: var(--accent-color);
}

.badge-pending {
    background: rgba(251, 191, 36, 0.15);
    color: var(--warning-color);
}

.badge-progress {
    background: rgba(63, 114, 175, 0.15);
    color: var(--accent-color);
}

.badge-resolved {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success-color);
}

/* 8. Tabele Premium cu Coloane Redimensionabile */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

/* Custom styled horizontal scrollbar for the table */
.table-responsive::-webkit-scrollbar {
    height: 8px;
}
.table-responsive::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}
.table-responsive::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.2);
}
.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #00c4cc;
}

.premium-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background: rgba(17, 24, 39, 0.5);
}

.premium-table th, .premium-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    white-space: nowrap;
}

.text-wrap {
    white-space: normal !important;
}

.premium-table th {
    background: rgba(11, 15, 25, 0.8);
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
    user-select: none;
}

.premium-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Handles for resizing */
.resize-handle {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    cursor: col-resize;
    background: transparent;
    transition: background 0.2s;
}

.resize-handle:hover, .resize-handle.resizing {
    background: var(--primary-color);
}

/* 9. Dashboard Statistici & Formulare */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.stat-val {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.stat-lbl {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Modal overlays */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: var(--glass-blur);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    position: relative;
    transform: scale(0.9);
    transition: var(--transition-smooth);
}

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

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

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

/* Flash alerts */
.flash-messages {
    max-width: 1200px;
    margin: 1.5rem auto 0;
    padding: 0 2rem;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger-color);
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success-color);
}

/* 10. Design Adaptiv (Mobile/Tablet breakpoints) */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-main);
        border-bottom: 1px solid var(--border-color);
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hamburger {
        display: flex;
    }
    
    .admin-layout {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        width: 100%;
    }
    
    .tenant-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* 11. Modul Intretinere - Sortare, Erori & Preferinte */
.sortable-header {
    cursor: pointer;
    transition: var(--transition-smooth);
}

.sortable-header:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--primary-color) !important;
}

.sort-indicator {
    margin-left: 6px;
    font-size: 0.75rem;
    opacity: 0.6;
    display: inline-block;
}

.cell-error {
    background-color: rgba(239, 68, 68, 0.25) !important;
    border: 1px solid var(--danger-color) !important;
    color: #ff8a8a !important;
    position: relative;
}

/* Dropdown Coloane Vizibile */
.col-selector-container {
    position: relative;
    display: inline-block;
}

.col-selector-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1050;
    width: 250px;
    background: #111827;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: none;
    max-height: 350px;
    overflow-y: auto;
}

.col-selector-dropdown.active {
    display: block;
}

.col-selector-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    border-radius: 4px;
}

.col-selector-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.col-selector-item input[type="checkbox"] {
    cursor: pointer;
    accent-color: var(--primary-color);
}

/* Browse File Upload Form */
.upload-dropzone {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.01);
    transition: var(--transition-smooth);
    margin-bottom: 1rem;
    cursor: pointer;
}

.upload-dropzone:hover {
    border-color: var(--primary-color);
    background: rgba(0, 173, 181, 0.02);
}

.file-input-hidden {
    display: none;
}

/* Autocomplete Month/Year Option Hover */
.luna-option:hover {
    background: rgba(0, 173, 181, 0.1) !important;
    color: var(--primary-color) !important;
}

/* ==========================================================================
   12. Modul Dashboard Locatar (Accordion & Dynamic Workspace)
   ========================================================================== */

.dashboard-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: calc(100vh - 160px);
    max-width: 1400px;
    margin: 2rem auto;
    gap: 2rem;
    padding: 0 2rem;
}

.dashboard-sidebar {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem 0.75rem;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 900;
}

.dashboard-mobile-bar {
    display: none;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    justify-content: space-between;
    align-items: center;
}

.dashboard-sidebar-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 0 0.5rem 0.5rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
}

.accordion-category {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.category-header {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 0.75rem 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.category-header:hover {
    color: var(--primary-color);
}

.category-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s;
    opacity: 0.6;
}

.accordion-category.active .category-arrow {
    transform: rotate(90deg);
    color: var(--primary-color);
}

.submenu-list {
    list-style: none;
    padding-left: 0.75rem;
    margin-bottom: 0.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-category.active .submenu-list {
    max-height: 300px; /* Allow expansion */
}

.submenu-link {
    display: block;
    padding: 0.4rem 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 6px;
    border-left: 2px solid transparent;
    transition: var(--transition-smooth);
    margin-bottom: 0.2rem;
}

.submenu-link:hover {
    color: var(--primary-color);
    background: rgba(0, 173, 181, 0.05);
    border-left-color: var(--primary-color);
    padding-left: 0.75rem;
}

.submenu-link.active {
    color: #fff;
    background: rgba(0, 173, 181, 0.15);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

.dashboard-workspace {
    min-width: 0;
    width: 100%;
}

.workspace-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.workspace-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Overview and general elements */
.overview-welcome {
    margin-bottom: 2rem;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.overview-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
    transition: var(--transition-smooth);
}

.overview-card:hover {
    border-color: rgba(0, 173, 181, 0.2);
    box-shadow: 0 10px 20px rgba(0, 173, 181, 0.05);
    transform: translateY(-2px);
}

.overview-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
}

.overview-card-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0 0.5rem;
}

.overview-card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.overview-card-action {
    align-self: flex-start;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
    cursor: pointer;
}

.overview-card-action:hover {
    text-shadow: 0 0 8px var(--primary-glow);
}

/* Custom Consumption Bar Chart */
.chart-container {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.chart-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
}

.chart-bar-group {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.chart-item {
    display: grid;
    grid-template-columns: 100px 1fr 60px;
    align-items: center;
    gap: 1rem;
}

.chart-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.chart-bar-wrapper {
    height: 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 7px;
    overflow: hidden;
    position: relative;
}

.chart-bar {
    height: 100%;
    border-radius: 7px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-bar.user {
    background: linear-gradient(90deg, var(--primary-color), #00e5ff);
    box-shadow: 0 0 10px rgba(0, 173, 181, 0.3);
}

.chart-bar.average {
    background: linear-gradient(90deg, var(--accent-color), #5c93d4);
}

.chart-val {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: right;
    color: var(--text-primary);
}

.chart-legend {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-color.user {
    background: var(--primary-color);
}

.legend-color.average {
    background: var(--accent-color);
}

/* Quick Info cards */
.info-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.info-card-premium {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    transition: var(--transition-smooth);
}

.info-card-premium:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

/* Calendar Scheduler Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.4rem;
    margin-top: 1rem;
}

.calendar-day-header {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.25rem 0;
}

.calendar-day {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.35rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.calendar-day:hover:not(.disabled) {
    background: rgba(0, 173, 181, 0.08);
    border-color: var(--primary-color);
}

.calendar-day.disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.calendar-day.today {
    border-color: var(--accent-color);
    background: rgba(63, 114, 175, 0.05);
}

.calendar-day.booked {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--success-color);
}

.calendar-day-number {
    font-weight: 600;
    font-size: 0.85rem;
}

.calendar-day-status {
    font-size: 0.6rem;
    color: var(--success-color);
    font-weight: 500;
    text-align: right;
}

/* Mobile responsive drawer rules */
@media (max-width: 768px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        margin-top: 1rem;
    }
    
    .dashboard-mobile-bar {
        display: flex;
    }
    
    .dashboard-sidebar {
        position: fixed;
        top: 0;
        left: -300px;
        bottom: 0;
        width: 280px;
        height: 100vh;
        border-radius: 0;
        border: none;
        border-right: 1px solid var(--border-color);
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.6);
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        padding-top: 2rem;
    }
    
    .dashboard-sidebar.active {
        left: 0;
    }
    
    .dashboard-sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        z-index: 850;
    }
    
    .dashboard-sidebar-overlay.active {
        display: block;
    }
}

/* Admin Submenu Styles */
.admin-submenu {
    list-style: none;
    margin: 0.25rem 0 0.5rem 0;
    padding-left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.admin-submenu-link {
    display: flex;
    align-items: center;
    padding: 0.3rem 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-radius: 6px;
    font-weight: 500;
    transition: var(--transition-smooth);
    gap: 0.4rem;
}

.admin-submenu-link:hover, .admin-submenu-link.active {
    background: rgba(0, 173, 181, 0.05);
    color: var(--primary-color);
    padding-left: 0.75rem;
}

/* PWA Install Banner Style */
.pwa-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    width: calc(100% - 40px);
    max-width: 500px;
    background: rgba(11, 15, 25, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 173, 181, 0.15);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.pwa-banner.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.pwa-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pwa-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pwa-banner-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.pwa-banner-text {
    flex-grow: 1;
}

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

.btn-pwa-how {
    transition: opacity 0.2s ease;
}

.btn-pwa-how:hover {
    opacity: 0.8;
}

.btn-pwa-close {
    transition: color 0.2s ease;
}

.btn-pwa-close:hover {
    color: #FFFFFF !important;
}

/* Responsive adjustment for tablets/desktop */
@media (min-width: 768px) {
    .pwa-banner {
        bottom: 30px;
        right: 30px;
        left: auto;
        transform: translateY(100px);
        width: 380px;
    }
    .pwa-banner.show {
        transform: translateY(0);
    }
}

/* Notifications Bell & Dropdown Styles */
.nav-item-notif {
    list-style: none;
    display: inline-flex;
    align-items: center;
}

.nav-notif-bell {
    font-size: 1.25rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.nav-notif-bell:hover {
    transform: scale(1.15) rotate(15deg);
}

.notif-dropdown-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 320px;
    background: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 173, 181, 0.1);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.notif-dropdown-panel.active {
    display: flex;
    animation: slideDownIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.notif-item-link {
    background: transparent;
}

.notif-item-link:hover {
    background: rgba(255, 255, 255, 0.03);
}

.notif-item-link.unread {
    background: rgba(0, 173, 181, 0.04);
    border-left: 3px solid var(--primary-color, #00ADB5);
}

.notif-item-link.unread:hover {
    background: rgba(0, 173, 181, 0.08);
}

@keyframes slideDownIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



