﻿/* =====================================================
   GLOBAL BASE
===================================================== */
body {
    margin: 0;
    background: #F2F3F7;
    font-family: 'Roboto', sans-serif;
}

.app-main {
    padding: 16px;
}




.google-btn-wrapper {
    position: relative;
    width: 100%;
}

.google-btn-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    /* Hide Google visuals but keep it clickable */
    opacity: 0;
}


/* =====================================================
   LOGIN
===================================================== */
.login-card {
    max-width: 420px;
    margin: 80px auto;
    padding: 32px;
}

/* =====================================================
   APP HEADER
===================================================== */
.app-header {
    height: 64px;
    background: linear-gradient(90deg, #312e81, #4338ca);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.brand {
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}

.nav-links span {
    font-size: 15px;
    color: #cbd5f5;
    cursor: pointer;
    margin-right: 16px;
}

    .nav-links span:hover {
        color: white;
    }

/* =====================================================
   PROFILE MENU
===================================================== */
.profile-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.profile-menu {
    position: fixed;
    right: 24px;
    top: 64px;
    min-width: 150px;
    background: linear-gradient(90deg, #EF7C23, #6AB3E8);
    color: #111827;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
    z-index: 2000;
}

    .profile-menu div {
        padding: 12px 16px;
        cursor: pointer;
    }

        .profile-menu div:hover {
            background: #f3f4f6;
        }

/* =====================================================
   SIDEBAR & APPBAR (MudBlazor)
===================================================== */
.sidebar-bg,
.brand-gradient {
    background: linear-gradient( 180deg, #EF7C23 0%, #6AB3E8 50%, #9ACF8F 100% ) !important;
    color: white !important;
}

.mud-nav-link,
.mud-nav-link:hover {
    color: white !important;
}

    .mud-nav-link.active {
        background: rgba(255,255,255,.2) !important;
        border-radius: 10px;
    }

.mud-appbar .mud-typography {
    color: white !important;
}

/* =====================================================
   DASHBOARD
===================================================== */
.dashboard-container {
    max-width: 1100px;
    margin: auto;
}

.dashboard-row {
    margin-bottom: 24px;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.dashboard-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    transition: transform .2s, box-shadow .2s;
    cursor: pointer;
}

    .dashboard-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(0,0,0,.12);
    }

    .dashboard-card h3 {
        color: #1f2937;
        margin-bottom: 8px;
    }

    .dashboard-card p {
        font-size: 14px;
        color: #6b7280;
    }

/* =====================================================
   KPI CARDS
===================================================== */
.kpi-card {
    height: 130px;
    border-radius: 18px;
    box-shadow: 0 3px 12px rgba(0,0,0,.12);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.kpi-header {
    width: 100%;
    padding: 8px 12px;
    color: white;
    font-weight: 600;
    border-radius: 18px 18px 0 0;
}

.kpi-orange {
    background: #EF7C23;
}

.kpi-blue {
    background: #6AB3E8;
}

.kpi-green {
    background: #9ACF8F;
}

.kpi-red {
    background: #F57C7C;
}

/* =====================================================
   CHART LEGEND
===================================================== */
.legend-horizontal {
    margin-top: 16px;
    display: flex;
    gap: 14px 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: .9rem;
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    margin-right: 6px;
}

/* =====================================================
   REPORT GRID (MudTable)
===================================================== */
.report-grid .mud-table {
    border-radius: 12px;
    overflow: hidden;
}

.report-grid thead th {
    font-size: 13px;
    font-weight: 700;
    color: var(--mud-palette-text-primary);
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.report-grid tbody td {
    font-size: 12.5px;
    padding: 6px 0 !important;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.report-grid .row-odd {
    background: rgba(0,0,0,.02);
}

.report-grid tbody tr:hover {
    background: rgba(37,99,235,.08) !important;
}

.row-delivered {
    border-left: 4px solid var(--mud-palette-success);
}

.row-failed {
    border-left: 4px solid var(--mud-palette-error);
}

.row-pending {
    border-left: 4px solid var(--mud-palette-warning);
}

/* =====================================================
   FILTER BAR
===================================================== */
.report-filters .mud-input-root {
    border-radius: 10px;
}

.report-filters .mud-input-outlined:focus-within {
    box-shadow: 0 0 0 3px rgba(37,99,235,.14);
}

/* =====================================================
   BUTTONS
===================================================== */
.btn-primary,
.btn-outline,
.btn-export {
    border-radius: 12px !important;
    font-weight: 700 !important;
    padding: 8px 14px !important;
    text-transform: none !important;
}

/* =====================================================
   LOADER
===================================================== */
.logo-loader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    z-index: 9999;
}

    .logo-loader.fade-out {
        opacity: 0;
        visibility: hidden;
    }

.loader-logo {
    width: 80px;
}

.loader-ring {
    position: absolute;
    width: 140px;
    height: 140px;
    animation: spin 1.5s linear infinite;
}

    .loader-ring circle {
        fill: none;
        stroke: white;
        stroke-width: 6;
        stroke-linecap: round;
        stroke-dasharray: 240;
        stroke-dashoffset: 60;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =====================================================
   DARK MODE
===================================================== */
body.mud-theme-dark .report-grid .row-odd {
    background: rgba(255,255,255,.03);
}

body.mud-theme-dark .report-grid tbody tr:hover {
    background: rgba(96,165,250,.12) !important;
}

body.mud-theme-dark .mud-paper {
    border: 1px solid rgba(255,255,255,.06);
}

/* ================================
   AUTH PAGES
================================ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.auth-card {
    border-radius: 16px;
}

.auth-img {
    max-width: 75%;
}

/* Dark mode adjustments */
body.mud-theme-dark .auth-card {
    background-color: #111827;
}
/* HERO */
.hero-section {
    padding: 80px 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
}

/* STATS */
.stats-section {
    padding: 60px 0;
}

.stat-card {
    padding: 32px;
    text-align: center;
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

/* TEXT HELPERS */
.fw-bold {
    font-weight: 700;
}

.text-secondary {
    color: #6b7280;
}

/* SEARCH */
.search-box {
    max-width: 260px;
}

/* BRAND GRADIENT */
.brand-gradient {
    background: linear-gradient( 90deg, #EF7C23 0%, #6AB3E8 50%, #9ACF8F 100% ) !important;
    color: white !important;
}

.home-bg {
    position: relative;
    height: calc(100vh - 64px);
    width: 100%;
    background: url('/images/home-bg.png') center / cover no-repeat;
    background-color: transparent !important;
    display: flex;
    align-items: center;
}

.home-content {
    width: 100%;
    padding: 0 48px;
}

.text-white {
    color: #ffffff !important;
}

.text-light {
    color: rgba(255,255,255,0.95) !important;
}

@media (max-width: 960px) {
    .home-bg {
        height: calc(100vh - 56px);
    }
}
/* HERO TEXT FIX */
.hero-title {
    color: #111827 !important; /* dark, readable */
    font-weight: 800;
}

.hero-accent {
    color: #2563eb; /* blue */
}


/* Mobile adjustments */
@media (max-width: 960px) {
    .home-content {
        text-align: center;
        padding: 0 24px;
    }
}


