/* NOA Visa Portal Stylesheet - Deep Indigo & Golden Amber Edition */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;0,900;1,400&family=Outfit:wght@400;600;700;900&display=swap');

:root {
    --visa-font: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --visa-primary: #4F46E5;
    --visa-primary-hover: #4338CA;
    --visa-primary-dark: #1E1B4B;
    --visa-primary-light: #EEF2FF;
    --visa-secondary: #06B6D4;
    --visa-accent: #F59E0B;
    --visa-success: #10B981;
    --visa-warning: #F59E0B;
    --visa-danger: #EF4444;
    --visa-info: #3B82F6;
    --visa-dark: #0F172A;
    --visa-sidebar-bg: #1E1B4B;
    --visa-sidebar-color: #C7D2FE;
    --visa-body-bg: #F5F3FF;
    --visa-card-bg: #FFFFFF;
    --visa-border: #E0E7FF;
    --visa-radius: 14px;
    --visa-shadow: 0 4px 20px -2px rgba(30, 27, 75, 0.08);
    --visa-shadow-hover: 0 12px 28px -4px rgba(79, 70, 229, 0.2);
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--visa-font);
    background-color: var(--visa-body-bg);
    color: #0F172A;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Master Layout Structure - 100% Full Width Coverage */
#wrapper {
    display: flex;
    width: 100%;
    min-width: 100%;
    align-items: stretch;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Sidebar Styles */
#sidebar {
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #1E1B4B 0%, #0F172A 100%);
    color: var(--visa-sidebar-color);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), margin-left 0.3s ease;
    z-index: 1040;
    box-shadow: 4px 0 25px rgba(0,0,0,0.18);
    overflow-y: auto;
    max-height: 100vh;
}

#sidebar .sidebar-brand {
    padding: 1.25rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

#sidebar .sidebar-brand-text {
    font-weight: 900;
    font-size: 1.3rem;
    color: #FFFFFF;
    letter-spacing: -0.5px;
    font-family: 'Roboto', sans-serif;
}

#sidebar .sidebar-menu {
    padding: 1rem 0.75rem;
    list-style: none;
    margin: 0;
}

#sidebar .menu-header {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #A5B4FC;
    padding: 0.85rem 1rem 0.35rem;
}

#sidebar .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.9rem;
    color: #C7D2FE;
    font-weight: 500;
    font-size: 0.86rem;
    border-radius: 9px;
    margin-bottom: 2px;
    transition: all 0.2s ease;
    text-decoration: none;
}

#sidebar .nav-link .nav-link-content {
    display: flex;
    align-items: center;
}

#sidebar .nav-link i.menu-icon {
    font-size: 1.15rem;
    margin-right: 0.75rem;
    transition: color 0.2s ease;
}

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

#sidebar .nav-link.active {
    color: #FFFFFF;
    background: var(--visa-primary);
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

/* Accordion Sub-Menu Animations & Formatting */
#sidebar .sub-menu {
    list-style: none;
    padding-left: 2.2rem;
    margin: 0.2rem 0;
}

#sidebar .sub-menu .sub-nav-link {
    display: flex;
    align-items: center;
    padding: 0.45rem 0.75rem;
    color: #C7D2FE;
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

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

#sidebar .sub-menu .sub-nav-link.active {
    color: #F59E0B;
    font-weight: 700;
}

#sidebar .sub-menu .sub-nav-link::before {
    content: "•";
    margin-right: 0.5rem;
    font-size: 1.2rem;
    line-height: 0;
}

/* Rotate arrow when sub-menu expanded */
#sidebar .nav-link[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
    transition: transform 0.2s ease;
}

/* Content Wrapper */
#content-wrapper {
    flex: 1 1 0%;
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

main.container-fluid {
    width: 100%;
    max-width: 100%;
    padding: 1.5rem 1.75rem !important;
}

/* Navbar */
.top-navbar {
    height: 72px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--visa-border);
    padding: 0 1.75rem;
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
}

.currency-pill {
    background: #EEF2FF;
    border-radius: 30px;
    padding: 0.35rem 0.85rem;
    font-weight: 700;
    font-size: 0.82rem;
    border: 1px solid #C7D2FE;
    color: #4F46E5;
}

/* Card Styling */
.card-custom {
    background: var(--visa-card-bg);
    border-radius: var(--visa-radius);
    border: 1px solid var(--visa-border);
    box-shadow: var(--visa-shadow);
    transition: all 0.25s ease;
    margin-bottom: 1.5rem;
    width: 100%;
}

.card-custom:hover {
    box-shadow: var(--visa-shadow-hover);
}

.stat-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-icon-primary { background: #EEF2FF; color: #4F46E5; }
.stat-icon-success { background: #D1FAE5; color: #047857; }
.stat-icon-warning { background: #FEF3C7; color: #D97706; }
.stat-icon-danger { background: #FEE2E2; color: #DC2626; }
.stat-icon-info { background: #E0F2FE; color: #0284C7; }

/* Table Custom */
.table-custom {
    vertical-align: middle;
    width: 100%;
}
.table-custom th {
    background-color: #EEF2FF;
    color: #1E1B4B;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--visa-border);
    padding: 0.85rem 0.85rem;
    white-space: nowrap;
}
.table-custom td {
    padding: 0.85rem 0.85rem;
    color: #1E293B;
    font-size: 0.88rem;
    border-bottom: 1px solid #F5F3FF;
    white-space: nowrap;
}

/* Footer Styling */
footer.footer {
    width: 100%;
    margin-top: auto;
    padding: 1rem 1.75rem;
}

/* Responsive Media Queries */
@media (min-width: 992px) {
    #sidebar.toggled {
        margin-left: -280px;
    }
}

@media (max-width: 991.98px) {
    #sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        height: 100vh;
        transform: translateX(-100%);
        box-shadow: 10px 0 30px rgba(0,0,0,0.25);
    }
    #sidebar.toggled {
        transform: translateX(0);
    }
    .top-navbar {
        padding: 0 1rem;
        height: 64px;
    }
    main.container-fluid {
        padding: 1rem !important;
    }
}
