/* QR Menu SaaS - Admin Panel Styles */
/* Glassmorphism Design with Modern UI */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --dark: #1e293b;
    --light: #f8fafc;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --shadow-hover: 0 12px 48px 0 rgba(31, 38, 135, 0.45);

    /* New Glassmorphism Variables */
    --content-bg: rgba(255, 255, 255, 0.1);
    --content-bg-solid: rgba(255, 255, 255, 0.95);
    --content-border: 1px solid rgba(255, 255, 255, 0.2);
    --content-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    /* Base body text color should be white for a dark background */
    color: white;
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.login-box {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 50px 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        /* FIX: Added 'to' selector */
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.login-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
}

/* Form Elements (Fixed: Merged form-control and form-select styles) */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: white;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-control,
.form-select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: white;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

.form-select option {
    background: var(--dark);
    color: white;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-control:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Buttons */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.login-box .btn {
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.6);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Alerts */
.alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    backdrop-filter: blur(10px);
    border: 1px solid;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
    color: #d1fae5;
}

.alert-error {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fecaca;
}

.alert-info {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    color: #dbeafe;
}

/* Dashboard Layout */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    padding: 0;
    position: fixed;
    height: 100vh;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    padding: 30px 30px 10px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.sidebar-brand h2 {
    color: white;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.sidebar-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin-top: 5px;
}

.sidebar-menu {
    list-style: none;
    overflow-y: auto;
    flex: 1;
    padding-bottom: 30px;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 14px 30px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    color: white;
    background: rgba(255, 255, 255, 0.15);
}

.sidebar-menu a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: white;
}

.sidebar-menu a i {
    margin-right: 12px;
    font-size: 18px;
}

.menu-category {
    padding: 20px 30px 10px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 30px;
    /* FIX: Changed from relative to static to prevent stacking context issues for modals */
    position: static;
}

.top-bar {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.page-title h1 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.page-title p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-info {
    text-align: right;
}

.user-info .name {
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.user-info .role {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.btn-logout {
    background: rgba(239, 68, 68, 0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
}

/* Stats Cards */
.stats-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1rem !important;
    margin-bottom: 1.5rem !important;
}

@media (max-width: 991px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 767px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
}

.stats-card {
    background: var(--content-bg);
    backdrop-filter: blur(20px);
    border: var(--content-border);
    border-radius: 14px;
    padding: 1.125rem;
    min-height: 120px;
    box-shadow: var(--content-shadow);
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
}

.stats-icon {
    width: 46px;
    height: 46px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 0.65rem;
}

.stats-card h3 {
    color: white;
    font-size: 1.625rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.stats-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8125rem;
    font-weight: 500;
    margin: 0;
}

/* Cards (General Purpose) */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.card-header {
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent !important;
    border-bottom: 1px solid #e0e0e0;
}

.card-title {
    color: #2d3748 !important;
    font-size: 20px;
    font-weight: 700;
}

/* Table Styles (General) */
.table-responsive {
    overflow-x: auto;
}

.glass-table-container {
    background: var(--content-bg-solid);
    backdrop-filter: blur(20px);
    border-radius: 18px;
    box-shadow: var(--content-shadow);
    padding: 1.5rem;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background: linear-gradient(180deg, #f8f9fa 0%, #f1f3f5 100%);
    border-bottom: 2px solid #dee2e6;
    color: #495057;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.69rem;
    letter-spacing: 0.4px;
    padding: 0.8rem 0.7rem;
}

.table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.table tbody tr:hover {
    background: rgba(102, 126, 234, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.table td {
    vertical-align: middle;
    padding: 0.8rem 0.7rem;
    color: #2d3748 !important;
    font-size: 0.875rem;
}

.table td .fw-semibold,
.table td .fw-medium {
    color: #1a202c !important;
}

.table td .text-muted,
.table td small {
    color: #718096 !important;
}

/* Badges */
.badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge.rounded-pill {
    padding: 0.35em 0.9em;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.badge-info {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.badge-primary {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
}

/* Status Badges */
.status-badge {
    padding: 0.35em 0.9em;
    border-radius: 18px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.25px;
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
}

.status-badge::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.status-active {
    background: linear-gradient(135deg, #d1f4e0 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.status-active::before {
    background: #10b981;
}

.status-inactive {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.status-inactive::before {
    background: #ef4444;
}

.status-suspended {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #fcd34d;
}

.status-suspended::before {
    background: #f59e0b;
}

/* Buttons */
.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.btn-info {
    background: var(--info);
    color: white;
}

.btn-info:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-warning {
    background: var(--warning);
    color: var(--dark);
}

.btn-warning:hover {
    background: #eab308;
    transform: translateY(-2px);
}

.btn-white {
    background: white;
    color: #2d3748 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    color: #2d3748 !important;
}

.btn-outline-secondary {
    background: white;
    border: 2px solid #e2e8f0;
    color: #64748b;
}

.btn-outline-secondary:hover:not(:disabled) {
    border-color: #667eea;
    color: #667eea;
}

.btn-outline-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-group {
    display: flex;
    gap: 5px;
}

.btn-group .btn {
    padding: 6px 10px;
    border-radius: 8px;
}

/* Utilities */
.text-white {
    color: white !important;
}

.text-dark {
    color: #1e293b !important;
}

.text-center {
    text-align: center;
}

.mt-3 {
    margin-top: 1rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.d-flex {
    display: flex;
}

.gap-2 {
    gap: 0.5rem;
}

/* Filter Bar (for search/filter area in restaurants.php) */
.filter-bar {
    padding: 20px 30px;
    border-bottom: 1px solid var(--glass-border);
}

.filter-form {
    display: flex;
    gap: 15px;
    align-items: center;
}

.filter-form .search-input {
    flex: 1;
}

/* Mini Progress Bar (for Usage column) */
.mini-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
}

.mini-progress-bar div {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s;
    border-radius: 3px;
}

/* Pagination Footer */
.pagination-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    border-top: 1px solid var(--glass-border);
    color: rgba(255, 255, 255, 0.7);
}

.pagination-links {
    display: flex;
    gap: 5px;
}

.pagination-links .page-number {
    min-width: 30px;
    text-align: center;
    padding: 5px 8px;
}

.pagination-links .active-page {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white;
    cursor: default;
}

/* MODAL Styles */
.modal-backdrop {
    backdrop-filter: blur(5px);
    background-color: rgba(0, 0, 0, 0.6) !important;
    z-index: 2000 !important;
    /* High enough to be above everything but modal */
}

.modal {
    z-index: 2001 !important;
    /* Must be higher than backdrop */
}

.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow-hover);
    color: white;
}

.modal-header {
    border-bottom: 1px solid var(--glass-border);
}

.modal-title {
    color: white;
    font-weight: 600;
}

.modal-footer {
    border-top: 1px solid var(--glass-border);
}

.modal-header .btn-close {
    filter: invert(1);
}

/* SweetAlert2 Overrides */
.swal2-popup {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 16px !important;
    box-shadow: var(--shadow-hover) !important;
    color: white !important;
}

/* Custom Additions for Bootstrap Compatibility */
.icon-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Overrides for Bootstrap on Glass Theme */
.text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.text-dark {
    color: white !important;
}

.bg-white {
    background-color: transparent !important;
}

.bg-light {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.form-check-input {
    cursor: pointer;
    width: 1.15rem;
    height: 1.15rem;
    border: 2px solid #cbd5e0;
    border-radius: 5px;
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.restaurant-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 1rem;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.25);
}

.action-btn {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    color: #64748b;
    background: white;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    text-decoration: none;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(102, 126, 234, 0.25);
    border-color: #667eea;
    color: #667eea;
}

.action-btn.text-danger:hover {
    border-color: #ef4444;
    color: #ef4444;
}

/* Restaurant Panel Specific Styles */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
}

/* Fix for Modals with Glassmorphism */
/* backdrop-filter on modals causes click issues in some browsers */
.modal-content.glass-card,
.modal-content {
    backdrop-filter: blur(20px) !important;
    background: rgba(30, 41, 59, 0.7) !important;
    /* Semi-transparent dark */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Ensure modal body and inputs allow interaction */
.modal-body {
    position: relative;
}

input,
textarea,
select {
    pointer-events: auto;
}

/* Glass Table Overrides */

/* Glass Table Overrides */
.glass-card .table {
    --bs-table-bg: transparent;
    --bs-table-color: white;
    color: white;
}

.glass-card .table thead th {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.glass-card .table td {
    color: white !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card .table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

.glass-card .table td .text-muted,
.glass-card .table td small {
    color: rgba(255, 255, 255, 0.6) !important;
}

.settings-container {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.form-label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.input-group-text {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

.form-control,
.form-select {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: white !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.05);
}

.form-select option {
    background-color: #1e293b;
    color: white;
}

.text-blue {
    color: var(--primary-light) !important;
}

.sidebar-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 15px 0;
}

.sidebar-nav .nav {
    padding: 0;
    list-style: none;
}

.sidebar-nav .nav-link,
.sidebar-nav ul li a {
    padding: 12px 24px;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active,
.sidebar-nav ul li a:hover,
.sidebar-nav ul li a.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: var(--primary);
}

.sidebar-nav .nav-link i,
.sidebar-nav ul li a i {
    width: 24px;
    margin-right: 10px;
    text-align: center;
}

.sidebar-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
    margin-top: auto;
    flex-shrink: 0;
}

.menu-label {
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.avatar-sm {
    width: 40px;
    height: 40px;
    font-size: 16px;
    font-weight: 600;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Badge overlap fix */
.badge.ms-auto {
    margin-left: auto !important;
}

/* Nav Link overrides */
.sidebar-nav a {
    text-decoration: none;
}

/* Fix for Tables inside Glass Cards (Dark Theme) */
.glass-card .table thead th {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

.glass-card .table td {
    color: rgba(255, 255, 255, 0.9) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.glass-card .table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: none;
}

.glass-card .table td .text-muted,
.glass-card .table td small {
    color: rgba(255, 255, 255, 0.5) !important;
}