:root {
    --primary-bg: #0b1f8c;
    --secondary-bg: #04125b;
    --text-white: #ffffff;
    --text-light: #64748b;
    --text-main: #020617;
    --text-dark: #000000;
    --link-blue: #0056d6;
    --nav-hover: rgba(255, 255, 255, 0.1);
    --border-color: #0056d6;
    --bg-gray: #f8fafc;
    --font-stack: 'Inter', sans-serif;

    /* Geometry & Spacing */
    --radius: 10px;

    /* Design Tokens */
    --border-premium: 1px solid #0056d6;
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(0, 86, 214, 0.2);
    --glass-blur: blur(20px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-stack);
}

body {
    background-color: #ffffff;
    color: var(--text-main);
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* APP LAYOUT */
.app-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* PRIMARY SIDEBAR */
.sidebar-primary {
    width: 260px;
    background-color: var(--primary-bg);
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    z-index: 10;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    transition: width 0.3s ease;
}

.sidebar-primary.collapsed {
    width: 70px;
}

.sidebar-primary.collapsed .logo-full {
    display: none;
}

.logo-small {
    display: none;
}

.sidebar-primary.collapsed .logo-small {
    display: block;
    max-height: 35px;
    width: auto;
    filter: brightness(0) invert(1);
}

.brand-header {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 25px;
    border-bottom: none;
}

.sidebar-primary.collapsed .brand-header {
    justify-content: center;
    padding: 0;
}

.brand-header .logo-full {
    max-height: 40px;
    width: auto;
}

.sidebar-title {
    padding: 10px 25px 15px 25px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.7);
}

.sidebar-primary.collapsed .sidebar-title {
    display: none;
}

.primary-nav {
    list-style: none;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.primary-nav::-webkit-scrollbar {
    width: 6px;
}

.primary-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
}

.primary-nav li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 25px;
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 300;
    white-space: nowrap;
    position: relative;
}

.sidebar-primary.collapsed .primary-nav li a {
    font-size: 0;
    justify-content: center !important;
    padding: 12px 0;
}

.collapsed-footer {
    display: none;
}

.sidebar-primary.collapsed .full-footer {
    display: none;
}

.sidebar-primary.collapsed .collapsed-footer {
    display: flex;
    justify-content: center;
}

.sidebar-primary.collapsed .sidebar-footer {
    padding: 15px 0;
}

.primary-nav li a:hover {
    background-color: var(--nav-hover);
}

.primary-nav li.active a {
    background-color: rgba(0, 0, 0, 0.2);
}

.primary-nav li a i.fa-solid {
    width: 12px;
    font-size: 16px;
    margin-right: 12px;
    text-align: center;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8);
}

.sidebar-primary.collapsed .primary-nav li a i.fa-solid {
    margin-right: 0;
}

.primary-nav li a .caret {
    margin-left: auto;
    margin-right: 0;
    width: auto;
    font-size: 0.8rem;
    opacity: 0.5;
    color: var(--text-white) !important;
    -webkit-text-stroke: 0 !important;
}

.sidebar-primary.collapsed .primary-nav li a .caret {
    display: none;
}



.footer-nav {
    list-style: none;
    padding-bottom: 10px;
}

.sidebar-primary.collapsed .footer-nav li:not(.collapse-btn):not(.footer-more-item) {
    display: none;
}

.footer-more-item {
    display: block;
    position: relative;
}

.footer-more-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px !important;
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.sidebar-primary.collapsed .footer-more-btn {
    justify-content: center !important;
    font-size: 0;
    padding: 12px 0 !important;
}

.sidebar-primary.collapsed .footer-more-btn span {
    display: none;
}

.footer-more-btn i {
    font-size: 1.1rem;
    color: var(--text-white);
}

.footer-dropdown-menu {
    position: absolute;
    bottom: 0;
    left: 100%;
    width: 260px;
    background-color: var(--primary-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    box-shadow: none;
    display: none;
    flex-direction: column;
    z-index: 100;
    padding: 10px 0;
}

.footer-dropdown-menu.is-open {
    display: flex;
}

.footer-dropdown-menu li a {
    display: flex;
    align-items: center;
    padding: 8px 20px;
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.footer-dropdown-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.footer-nav li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 20px;
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.footer-nav li a:hover {
    text-decoration: underline;
}

.footer-nav .collapse-btn {
    margin-top: 10px;
}

.footer-nav .collapse-btn a {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-primary.collapsed .footer-nav .collapse-btn a {
    font-size: 0;
    justify-content: center !important;
    padding: 8px 0;
}

.sidebar-primary.collapsed .footer-nav .collapse-btn a i {
    font-size: 1rem;
    margin-left: 0 !important;
    transform: rotate(180deg);
}

/* SECONDARY SIDEBAR */
.sidebar-secondary {
    width: 280px;
    background-color: var(--secondary-bg);
    color: var(--text-white);
    display: flex;
    flex-direction: column;
    position: relative;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 9;
    margin-left: -280px;
    transition: margin-left 0.3s ease;
}

.sidebar-secondary.is-open {
    margin-left: 0;
}

.btn-close-sidebar {
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--text-white);
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

.secondary-header {
    text-align: center;
    padding: 40px 20px 20px 20px;
}

.monitor-illus {
    width: 120px;
    height: auto;
    margin: 0 auto;
}

.secondary-title {
    padding: 40px 20px 20px 20px;
    font-size: 1.2rem;
    font-weight: 400;
}

.secondary-modules-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-module {
    display: none;
    flex: 1;
    flex-direction: column;
    overflow: hidden;
    margin-top: 5px;
}

.sidebar-module.active {
    display: flex;
}

.secondary-menus {
    flex: 1;
    overflow-y: auto;
}

.secondary-menus::-webkit-scrollbar {
    width: 6px;
}

.secondary-menus::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
}

.secondary-nav-group {
    margin-bottom: 15px;
}

.secondary-nav-title {
    padding: 8px 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #93c5fd;
    letter-spacing: 0.5px;
}

.secondary-nav {
    list-style: none;
}

.secondary-nav li a {
    display: flex;
    align-items: center;
    padding: 8px 20px;
    color: var(--text-white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 300;
}

.secondary-nav li a:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.secondary-nav li.active a {
    font-weight: 700;
    position: relative;
    background-color: rgba(255, 255, 255, 0.08);
}

.secondary-nav li.active a::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: #0b1f8c;
    border-radius: 50%;
}

.badge-beta {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 2px 6px;
    border-radius: var(--radius);
    font-size: 0.65rem;
    margin-left: 8px;
    font-weight: 700;
}

/* MAIN CONTENT */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Topbar */
.topbar {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

.topbar-breadcrumb {
    font-size: 0.9rem;
    color: var(--text-main);
}

.topbar-breadcrumb strong {
    color: var(--primary-bg);
}

.topbar-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.topbar-item {
    color: var(--link-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 1.25rem;
}



.lang-selector {
    color: var(--link-blue);
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    cursor: pointer;
}

.user-button {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--link-blue);
    color: var(--link-blue);
    padding: 6px 12px;
    border-radius: var(--radius);
    background: white;
    font-weight: 700;
    cursor: pointer;
    margin-left: 10px;
    font-size: 0.9rem;
}

/* User Dropdown */
.user-menu-container {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: #ffffff;
    border-radius: var(--radius);
    display: none;
    flex-direction: column;
    z-index: 100;
    border: 1px solid var(--border-color);
}

.user-dropdown.is-open {
    display: flex;
}

.user-dropdown-header {
    padding: 20px 20px 15px;
    border-bottom: 1px solid var(--border-color);
}

.user-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-bg);
    margin-bottom: 4px;
}

.user-email {
    font-size: 0.9rem;
    color: var(--text-main);
    margin-bottom: 4px;
}

.user-id {
    font-size: 0.9rem;
    color: var(--text-main);
}

.user-id strong {
    font-weight: 700;
    color: var(--text-main);
}

.user-dropdown-info {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-main);
}

.badge-green {
    background-color: #dcfce7;
    color: #166534;
    padding: 4px 12px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-blue {
    background-color: #cffafe;
    color: #0369a1;
    padding: 4px 12px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
}

.user-dropdown-links {
    list-style: none;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
}

.user-dropdown-links li a {
    text-decoration: none;
    color: var(--link-blue);
    font-size: 0.95rem;
    font-weight: 600;
}

.user-dropdown-links li a:hover {
    text-decoration: underline;
}

.user-dropdown-footer {
    padding: 15px 20px;
    text-align: center;
}

.btn-logout {
    color: var(--link-blue);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
}

.btn-logout:hover {
    text-decoration: underline;
}

/* --- PAGE HEADER --- */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
}

.content-header h1 {
    font-size: 1.6rem;
    color: var(--primary-bg);
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}

.content-header p {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 5px;
    font-weight: 500;
}

/* --- MAIN CONTENT --- */
.page-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    background-color: var(--bg-gray);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 2rem;
    color: var(--primary-bg);
    font-weight: 700;
}

.page-header-links {
    display: flex;
    gap: 20px;
}

.page-header-links a {
    color: var(--link-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Toolbar */
.toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-blue {
    background: var(--link-blue);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-outline {
    background: white;
    color: var(--link-blue);
    border: 1px solid var(--link-blue);
    padding: 7px 16px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-gray {
    background: var(--bg-gray);
    color: #94a3b8;
    border: 1px solid var(--border-color);
    padding: 7px 16px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: not-allowed;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

.search-box {
    position: relative;
    width: 250px;
}

.search-box input {
    width: 100%;
    padding: 6px 30px 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    outline: none;
    font-size: 0.9rem;
}

.search-box i {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.8rem;
}

.btn-icon-text {
    background: white;
    border: none;
    color: var(--link-blue);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.data-table th {
    background-color: var(--bg-gray);
    color: var(--text-main);
    font-weight: 700;
    border-top: 1px solid var(--border-color);
    text-transform: none;
}

.data-table td {
    color: var(--text-main);
}

.text-blue {
    color: var(--link-blue);
}

.font-bold {
    font-weight: 700;
}

.badge-green-light {
    background-color: #dcfce7;
    color: #166534;
    padding: 4px 8px;
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 600;
}

.text-green {
    color: #16a34a;
    font-weight: 600;
}

.btn-action {
    background: none;
    border: 1px solid var(--link-blue);
    padding: 4px 8px;
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--link-blue);
}

.table-footer {
    display: flex;
    justify-content: flex-end;
    padding: 15px 0;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* DASHBOARD LAYOUT OVERHAUL */
.dash-h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 25px;
}

.dash-h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 15px;
    margin-top: 30px;
}

.dashboard-grid-top {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

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

@media (max-width: 1024px) {
    .dashboard-grid-top {
        grid-template-columns: 1fr;
    }

    .dashboard-grid-bottom {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-grid-bottom {
        grid-template-columns: 1fr;
    }
}

/* --- Professional Inline Editor & UI --- */
.editable-field {
    position: relative;
    padding: 2px 8px;
    border: 1px solid transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border-radius: var(--radius);
}

.editable-field:hover {
    background: rgba(11, 31, 140, 0.04);
    border-color: rgba(11, 31, 140, 0.1);
}

.editable-field::after {
    content: '\f303';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7rem;
    color: #3b82f6;
    opacity: 0;
    transition: 0.2s;
}

.editable-field:hover::after {
    opacity: 1;
    right: 5px;
}

/* Inline Input Styling */
.inline-input {
    width: 100%;
    border: 2px solid #0b1f8c !important;
    background: white !important;
    padding: 8px 12px !important;
    box-shadow: none;
    outline: none !important;
    font-size: inherit;
    color: #0f172a;
    font-family: inherit;
    border-radius: var(--radius);
}

/* Toast Notifications */
.avelion-toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.avelion-toast {
    background: white;
    padding: 12px 24px;
    border-radius: var(--radius);
    box-shadow: none;
    border-left: 4px solid #0b1f8c;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: toastSlide 0.3s ease-out;
    min-width: 280px;
}

@keyframes toastSlide {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast-success { border-left-color: #16a34a; }
.toast-error { border-left-color: #dc2626; }

/* Tag Components */
.tag-input-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
}

.tag-pill {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 4px 10px;
    border-radius: var(--radius);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tag-remove { color: #94a3b8; cursor: pointer; transition: 0.2s; }
.tag-remove:hover { color: #dc2626; }
/* Consolidation: moved to the end of file for global override */

.account-header-title {
    font-size: 1.6rem;
    color: #0b1f8c;
    font-weight: 800;
    margin: 0;
}

.account-header-subtitle {
    color: #64748b;
    margin: 4px 0 0 0;
    font-size: 0.9rem;
}

/* Consolidated Dash Card - Premium Style */
.dash-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: background 0.3s ease;
}

.dash-card:hover {
    background: #fcfdfe;
}

.dash-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.dash-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dash-card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--link-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dash-card-link:hover {
    text-decoration: underline;
}

.badge-pill-light {
    background-color: #bae6fd;
    color: #0369a1;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius);
}

.badge-pill-green {
    background-color: #dcfce7;
    color: #166534;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius);
}

/* Service List */
.service-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.service-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid #f1f5f9;
}

.service-list-item:first-child {
    border-top: none;
}

.service-item-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.service-item-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--link-blue);
    text-decoration: none;
}

.service-item-name:hover {
    text-decoration: underline;
}

.service-item-type {
    font-size: 0.75rem;
    color: #64748b;
}

.service-item-center {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    flex: 1;
    padding: 0 20px;
}

.service-item-status {
    font-size: 0.85rem;
    color: #64748b;
}

.service-item-date {
    font-size: 0.75rem;
    color: #64748b;
}

.btn-action-round {
    background: none;
    border: 1px solid var(--link-blue);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--link-blue);
}

.btn-action-round:hover {
    background-color: #f0f9ff;
}

/* Specific Cards */
.dash-card-blue {
    background: #0b1f8c;
    color: #ffffff;
    border: 1px solid var(--border-color);
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
}

.dash-card-blue::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
    transform: skewX(-20deg) translateX(-150%);
    animation: shine 6s infinite;
}

@keyframes shine {
    0% {
        transform: skewX(-20deg) translateX(-150%);
    }

    20% {
        transform: skewX(-20deg) translateX(150%);
    }

    100% {
        transform: skewX(-20deg) translateX(150%);
    }
}

.dash-card-blue .dash-card-title {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.dash-card-blue select {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    border-radius: var(--radius);
    color: #0f172a;
    font-size: 0.85rem;
    margin-bottom: 20px;
    width: 80%;
    cursor: pointer;
}

.dash-card-blue .dash-card-link {
    color: #ffffff;
    margin-top: 15px;
}

.dash-card-lightblue {
    background-color: #f0f9ff;
    border: 1px solid rgba(14, 165, 233, 0.1);
    align-items: center;
    text-align: center;
    color: #0f172a;
    margin-top: 20px;
    border-radius: var(--radius);
    box-shadow: none;
}

.dash-card-lightblue .dash-card-title {
    color: #0369a1;
    margin-bottom: 15px;
}

.dash-card-lightblue .badge-white {
    background-color: rgba(255, 255, 255, 0.7);
    color: #0f172a;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: var(--radius);
    margin-bottom: 15px;
}

.dash-card-lightblue .order-text {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.dash-card-lightblue .dash-card-link {
    color: #0369a1;
}

/* Help Widget */
.help-widget {
    margin-top: 20px;
}

.help-widget-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
}

.help-widget-illus {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 100px;
}

.help-widget-illus img {
    max-height: 100px;
}

/* Fallback if no img */
.help-widget-fallback {
    width: 100px;
    height: 80px;
    background-color: #e0f2fe;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0ea5e9;
    font-size: 2rem;
}

.help-widget-content h3 {
    color: var(--link-blue);
    font-size: 1.1rem;
    margin-bottom: 8px;
    align-self: flex-start;
}

.help-widget-content p {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 12px;
    align-self: flex-start;
    text-align: left;
}

.help-widget-content a {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--link-blue);
    text-decoration: none;
    align-self: flex-start;
}

/* Language Dropdown */
.lang-menu-container {
    position: relative;
    display: flex;
    align-items: center;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    box-shadow: none;
    width: 280px;
    display: none;
    flex-direction: column;
    z-index: 100;
    padding: 20px 0;
}

.lang-dropdown.is-open {
    display: flex;
}

.lang-dropdown-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    padding: 0 20px;
    margin-bottom: 15px;
}

.lang-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 350px;
    overflow-y: auto;
}

.lang-list li a {
    display: block;
    padding: 12px 20px;
    color: var(--link-blue);
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
}

.lang-list li a:hover {
    background-color: #f8fafc;
}

/* --- Premium Avelion Modules --- */


.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
    text-transform: none;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius);
    font-size: 0.95rem;
    background: #fcfcfc;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-bg);
    background: white;
    box-shadow: none;
}

/* --- Auth Scoped Styles (Login Page) --- */
.auth-page {
    background-color: #0b1f8c !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    height: 100vh;
}

.auth-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/login-bg.png') no-repeat center center;
    background-size: cover;
    z-index: -1;
    filter: brightness(0.4) saturate(1.2);
}

.auth-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(11, 31, 140, 0.2) 0%, #0b1f8c 100%);
}

.auth-wrapper {
    width: 100%;
    max-width: 440px;
    padding: 20px;
}

.auth-page .login-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 48px;
    box-shadow: none;
    color: var(--text-main);
}

.auth-page .brand-logo {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(135deg, #fff 0%, #64748b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.auth-page .login-subtitle {
    text-align: center;
    color: #93c5fd;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
}

.auth-page .form-label {
    color: #94a3b8;
}

.auth-page .form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 14px 16px;
    color: white;
    outline: none;
    transition: all 0.2s;
}

.auth-page .form-control:focus {
    border-color: #3b82f6;
    background: rgba(255, 255, 255, 0.08);
}

.auth-page .btn-primary {
    width: 100%;
    background: white;
    color: #0b1f8c;
    border: none;
    padding: 16px;
    border-radius: var(--radius);
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.2s ease;
}

.auth-page .btn-primary:hover {
    transform: scale(1.02);
    box-shadow: none;
    background: #f8fafc;
}

/* ==========================================================================
   AVELION HUB DESIGN SYSTEM (REUSABLE COMPONENTS)
   ========================================================================== */

/* --- Content Header (Page Titles) --- */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.content-header h1,
.account-header-title {
    font-size: 1.6rem;
    color: var(--primary-bg);
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    text-transform: lowercase;
}

.content-header h1::first-letter,
.account-header-title::first-letter {
    text-transform: uppercase;
}

.content-header p,
.account-header-subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 5px;
    font-weight: 500;
}

/* --- Hub Cards (Containers) --- */
.hub-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.hub-card:hover {
    border-color: #081661;
}

.hub-card-actions {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.btn-icon-only {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.1rem;
    box-shadow: none;
}

.btn-icon-only:hover {
    background: var(--bg-gray);
    color: var(--link-blue);
    border-color: var(--link-blue);
    transform: translateY(-2px);
    box-shadow: none;
}

.btn-icon-only.active {
    background: var(--link-blue);
    color: white;
    border-color: var(--link-blue);
}

/* --- Hub Tabs (Navigation) --- */
.hub-tabs {
    display: flex;
    align-items: flex-end;
    gap: 40px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 35px;
}

.hub-tab {
    text-decoration: none;
    padding: 15px 5px;
    color: #0b1f8c;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    display: block;
    margin-bottom: -1px;
}

.hub-tab:hover {
    opacity: 0.8;
}

.hub-tab.active {
    color: #0b1f8c;
    font-weight: 700;
    border-bottom: 3px solid #0b1f8c !important;
}

/* --- Premium Buttons --- */
.btn-premium {
    background: #0b1f8c;
    color: white;
    border: 1px solid var(--border-color);
    padding: 10px 24px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: none;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: none;
    filter: brightness(1.1);
}

/* --- Badges --- */
.badge-hub {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.badge-hub-green { background: #dcfce7; color: #15803d; }
.badge-hub-blue { background: #eff6ff; color: #1d4ed8; }
.badge-hub-orange { background: #fff7ed; color: #c2410c; }
.badge-hub-red { background: #fef2f2; color: #b91c1c; }

/* --- Alerts --- */
.alert-hub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    animation: slideIn 0.3s ease;
    border-left: 4px solid transparent;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-hub-success {
    background: #dcfce7;
    color: #166534;
    border-left-color: #22c55e;
}

.alert-hub-error {
    background: #fee2e2;
    color: #991b1b;
    border-left-color: #ef4444;
}

.alert-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.5;
    transition: 0.2s;
    padding: 5px;
}

.alert-close:hover {
    opacity: 1;
}
