
.badge {
    background: #e6f0ff;
    color: #1f5fbf;
    padding: 0.2rem 0.9rem;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 500;
}
.badge.warning {
    background: #fff1d6;
    color: #b46f1a;
}
.badge.success {
    background: #dff0e6;
    color: #1f7840;
}

/* =========================================================
   MAIN LAYOUT
========================================================= */

/* Dashboard Styles (with mobile sidebar toggle) */
.dashboard-wrapper {
    width: 100%;
}

.dashboard-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    gap: 24px;
    padding: 24px;
    position: relative;
}

.main-content {
    flex: 1;
}

/* =========================================================
   GRID SYSTEMS
========================================================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.stats-4-grid {
    grid-template-columns: repeat(4,1fr);
}

.charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 768px) {

    .dashboard-container {
        flex-direction: column;
        padding: 16px;
    }

    .stats-grid,
    .charts-row,
    .bottom-grid {
        grid-template-columns: 1fr;
    }
}


/*  ========================================================= 
Loading Screen Backdrop Layout 
  =========================================================*/
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #0f172a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* Header & Spinner Element Style */
.loading-header {
    text-align: center;
    margin-bottom: 40px;
}

.spinner-ring {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.08);
    border-top: 4px solid #f97316; /* Vibrant African Orange accent */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px auto;
}

.loading-title {
    color: #f8fafc;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.loading-subtitle {
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Responsive Card Showcase Grid */
.food-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    max-width: 1100px;
}

@media (min-width: 768px) {
    .food-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Individual Card Styling */
.food-card {
    background-color: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-image-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #334155;
}

.food-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.food-region {
    display: inline-block;
    color: #f97316;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.food-name {
    color: #f8fafc;
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.food-desc {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

/* Hardware accelerated CSS Spin Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}


/* Full View Workspace Container */
.logout-page-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #0f172a; /* Deep slate background matching the loader */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000; /* Layers on top of charts/loading grids */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 24px;
    box-sizing: border-box;
}

/* Elegant Interface Panel Card */
.logout-card-panel {
    background-color: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* Brand Display Sub-Section */
.logout-brand-area {
    margin-bottom: 32px;
}

.logout-icon-shield {
    width: 64px;
    height: 64px;
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6; /* Secure blue accent */
    font-size: 1.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin: 0 auto 16px auto;
}

.logout-brand-title {
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

/* Message Block Design */
.logout-message-body {
    margin-bottom: 32px;
}

.logout-prompt-heading {
    color: #f8fafc;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.logout-prompt-text {
    color: #94a3b8;
    font-size: 0.925rem;
    line-height: 1.6;
    margin: 0;
}

/* Action Control Items */
.logout-actions-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.btn-logout-panel {
    width: 100%;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-logout-danger {
    background-color: #dc2626;
    color: #ffffff;
}

.btn-logout-danger:hover {
    background-color: #b91c1c;
}

.btn-logout-cancel {
    background-color: #334155;
    color: #f8fafc;
}

.btn-logout-cancel:hover {
    background-color: #475569;
}

/* Technical Footer Disclaimer */
.logout-footer-notice {
    color: #64748b;
    font-size: 0.775rem;
}

.logout-footer-notice i {
    margin-right: 4px;
}



.table-wrapper {
    background: white;
    border-radius: 18px;
    padding: 0.2rem 0 0.2rem 0;
    border: 1px solid #eef3f8;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
th {
    text-align: left;
    padding: 1rem 1.2rem;
    background: #f9fcff;
    color: #1f3a57;
    font-weight: 600;
    border-bottom: 1px solid #e9eff5;
}
td {
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid #edf2f8;
    color: #1d3349;
}
tr:last-child td {
    border-bottom: none;
}
