/* CLICK QR - Customer & Super Admin Dashboard Styling */

.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Impersonation Banner */
.impersonation-bar {
    background: #DC2626;
    color: #FFFFFF;
    padding: 10px 20px;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1050;
}

.impersonation-bar a {
    color: #FFFFFF;
    background: rgba(0,0,0,0.25);
    padding: 4px 12px;
    border-radius: 6px;
    text-decoration: none;
}

/* Sidebar */
.dashboard-sidebar {
    width: 270px;
    background-color: var(--brand-blue);
    color: #FFFFFF;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    z-index: 1000;
}

.sidebar-brand {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-menu {
    list-style: none;
    padding: 15px 12px;
    margin: 0;
    flex-grow: 1;
    overflow-y: auto;
}

.sidebar-menu-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    padding: 15px 12px 6px;
    letter-spacing: 0.5px;
}

.sidebar-menu-item {
    margin-bottom: 4px;
}

.sidebar-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    color: #CBD5E1;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.sidebar-menu-link i {
    font-size: 1.15rem;
    width: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
}

.sidebar-menu-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

.sidebar-menu-link.active {
    background-color: var(--brand-gold);
    color: var(--brand-blue);
    font-weight: 800;
}

.sidebar-menu-link.active i {
    color: var(--brand-blue);
}

/* Main Content Area */
.dashboard-main {
    flex-grow: 1;
    background-color: var(--brand-bg);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Topbar */
.dashboard-topbar {
    background-color: #FFFFFF;
    border-bottom: 1px solid var(--brand-border);
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.restaurant-badge-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.restaurant-avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    background: #E2E8F0;
}

/* Status Badges */
.badge-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-status-active {
    background-color: #DEF7EC;
    color: #03543F;
}

.badge-status-pending {
    background-color: #FEF08A;
    color: #854D0E;
}

.badge-status-expired, .badge-status-suspended, .badge-status-rejected {
    background-color: #FDE8E8;
    color: #9B1C1C;
}

/* Dashboard Cards */
.stat-card {
    background: #FFFFFF;
    border: 1px solid var(--brand-border);
    border-radius: var(--brand-radius);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--brand-shadow);
}

.stat-card-info h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-blue);
    margin: 4px 0 0;
}

.stat-card-info p {
    color: var(--brand-muted);
    font-size: 0.95rem;
    margin: 0;
    font-weight: 600;
}

.stat-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.stat-icon-blue { background: #EBF5FF; color: #1E429F; }
.stat-icon-gold { background: var(--brand-gold-light); color: var(--brand-gold-hover); }
.stat-icon-green { background: #DEF7EC; color: #046C4E; }
.stat-icon-purple { background: #EDEBFE; color: #5521B5; }

/* Content Container */
.dashboard-content {
    padding: 30px 28px;
    flex-grow: 1;
}

/* Table Card */
.content-card {
    background: #FFFFFF;
    border: 1px solid var(--brand-border);
    border-radius: var(--brand-radius);
    padding: 24px;
    margin-bottom: 24px;
}

.table-custom th {
    background-color: #F8FAFC;
    color: #475569;
    font-weight: 700;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--brand-border);
    padding: 14px 16px;
}

.table-custom td {
    padding: 16px;
    vertical-align: middle;
    color: var(--brand-text);
    border-bottom: 1px solid var(--brand-border);
}

/* Expiration Notice Bar */
.expiration-warning-banner {
    background: linear-gradient(90deg, #F59E0B 0%, #D97706 100%);
    color: #FFFFFF;
    padding: 16px 24px;
    border-radius: var(--brand-radius-sm);
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

@media (max-width: 991px) {
    .dashboard-sidebar {
        position: fixed;
        right: -280px;
        top: 0;
        bottom: 0;
    }
    .dashboard-sidebar.show {
        right: 0;
    }
}
