﻿/* ============================================================
   CSS Reset & Base
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Sidebar */
    --sidebar-width: 230px;
    --sidebar-collapsed-width: 64px;
    --sidebar-bg: #252c3b;
    --sidebar-logo-border: rgba(255, 255, 255, 0.07);
    --sidebar-section-label-color: #5d6d82;
    --sidebar-item-color: #99afc5;
    --sidebar-item-hover-bg: #2e3747;
    --sidebar-item-hover-color: #e0eaf5;
    --sidebar-active-bg: #323d52;
    --sidebar-active-color: #ffffff;
    --sidebar-active-border: #5b8dee;
    --sidebar-icon-color: #5d7a96;
    --sidebar-submenu-bg: #1f2736;
    --sidebar-submenu-dot: #445568;
    /* Header */
    --header-height: 62px;
    --header-bg: #f4f7fc;
    --header-border: #dde3ef;
    --header-icon-color: #7b8fae;
    --header-icon-hover-bg: #e6eaf4;
    --header-icon-hover-color: #3d4e6b;
    /* Badges */
    --badge-new-bg: #02c9ab;
    --badge-hot-bg: #f64e60;
    --badge-notif-bg: #f64e60;
    /* Accents */
    --accent: #5b8dee;
    /* Transitions */
    --transition-speed: 0.22s;
    --transition: all var(--transition-speed) ease;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    background: #eef2f9;
    color: #3d4e6b;
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
}


/* ============================================================
   App Wrapper
   ============================================================ */
.app-wrapper {
    display: flex;
    height: 100vh;
    overflow: hidden;
}


/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow: hidden;
    transition: width var(--transition-speed) ease;
    position: relative;
    z-index: 200;
}

    .sidebar.collapsed {
        width: var(--sidebar-collapsed-width);
    }


/* ---- Logo Area ---- */
.sidebar-logo {
    display: flex;
    align-items: center;
    height: var(--header-height);
    padding: 0 14px;
    gap: 11px;
    border-bottom: 1px solid var(--sidebar-logo-border);
    flex-shrink: 0;
    overflow: hidden;
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    flex-shrink: 0;
    object-fit: cover;
}

.logo-text {
    flex: 1;
    font-size: 15.5px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    opacity: 1;
    transition: opacity var(--transition-speed) ease, width var(--transition-speed) ease;
}

.sidebar.collapsed .logo-text {
    opacity: 0;
    width: 0;
    pointer-events: none;
}

/* Toggle Switch */
.toggle-switch-btn {
    background: none;
    border: none;
    padding: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    opacity: 1;
    transition: opacity var(--transition-speed) ease;
}

.sidebar.collapsed .toggle-switch-btn {
    opacity: 0;
    pointer-events: none;
}

.toggle-track {
    display: inline-flex;
    align-items: center;
    width: 34px;
    height: 19px;
    background: #3e4d63;
    border-radius: 10px;
    position: relative;
    transition: background var(--transition-speed) ease;
}

    .toggle-track.active {
        background: var(--accent);
    }

.toggle-thumb {
    position: absolute;
    left: 3px;
    width: 13px;
    height: 13px;
    background: #ffffff;
    border-radius: 50%;
    transition: left var(--transition-speed) ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.toggle-track.active .toggle-thumb {
    left: 18px;
}


/* ---- Navigation ---- */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 0 16px;
}

    /* Custom scrollbar */
    .sidebar-nav::-webkit-scrollbar {
        width: 3px;
    }

    .sidebar-nav::-webkit-scrollbar-track {
        background: transparent;
    }

    .sidebar-nav::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.08);
        border-radius: 2px;
    }

        .sidebar-nav::-webkit-scrollbar-thumb:hover {
            background: rgba(255,255,255,0.15);
        }


/* ---- Section Labels ---- */
.nav-section {
    margin-bottom: 2px;
}

.nav-section-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--sidebar-section-label-color);
    padding: 14px 20px 5px;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity var(--transition-speed) ease, padding var(--transition-speed) ease, font-size var(--transition-speed) ease;
}

.sidebar.collapsed .nav-section-label {
    opacity: 0;
    padding-top: 8px;
    padding-bottom: 4px;
    font-size: 0;
    pointer-events: none;
    height: 12px;
}


/* ---- Nav Items ---- */
.nav-item .nav-link {
    display: flex;
    align-items: center;
    padding: 9px 18px;
    color: var(--sidebar-item-color);
    gap: 11px;
    position: relative;
    transition: background var(--transition-speed) ease, color var(--transition-speed) ease;
    white-space: nowrap;
    overflow: hidden;
}

    .nav-item .nav-link:hover {
        background: var(--sidebar-item-hover-bg);
        color: var(--sidebar-item-hover-color);
    }

        .nav-item .nav-link:hover .nav-icon {
            color: var(--sidebar-item-hover-color);
        }

/* Active state */
.nav-item.active > .nav-link {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-active-color);
}

    .nav-item.active > .nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        background: var(--sidebar-active-border);
        border-radius: 0 2px 2px 0;
    }

    .nav-item.active > .nav-link .nav-icon {
        color: var(--sidebar-active-color);
    }


/* Nav Icon */
.nav-icon {
    font-size: 14.5px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    color: var(--sidebar-icon-color);
    transition: color var(--transition-speed) ease;
}


/* Nav Text */
.nav-text {
    flex: 1;
    font-size: 13.5px;
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
    transition: opacity var(--transition-speed) ease, width var(--transition-speed) ease;
}

.sidebar.collapsed .nav-text {
    opacity: 0;
    width: 0;
    pointer-events: none;
}


/* Nav Arrow */
.nav-arrow {
    font-size: 9px;
    color: var(--sidebar-icon-color);
    flex-shrink: 0;
    transition: transform var(--transition-speed) ease, opacity var(--transition-speed) ease;
}

.nav-item.open > .nav-link .nav-arrow {
    transform: rotate(90deg);
}

.sidebar.collapsed .nav-arrow {
    opacity: 0;
    width: 0;
    overflow: hidden;
}


/* Nav Badges */
.nav-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    line-height: 1.4;
    transition: opacity var(--transition-speed) ease;
}

.badge-new {
    background: var(--badge-new-bg);
    color: #fff;
}

.badge-hot {
    background: var(--badge-hot-bg);
    color: #fff;
}

.sidebar.collapsed .nav-badge {
    opacity: 0;
    width: 0;
    padding: 0;
    overflow: hidden;
}


/* ---- Submenu ---- */
.submenu {
    background: var(--sidebar-submenu-bg);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.28s ease;
}

.nav-item.open > .submenu {
    max-height: 400px;
}

.sidebar.collapsed .submenu {
    max-height: 0 !important;
}

.submenu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px 8px 50px;
    color: #7a93ae;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: color var(--transition-speed) ease, background var(--transition-speed) ease;
}

    .submenu li a::before {
        content: '';
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--sidebar-submenu-dot);
        flex-shrink: 0;
        margin-right: 2px;
        transition: background var(--transition-speed) ease;
    }

    .submenu li a:hover {
        color: #d0e0f0;
        background: rgba(255,255,255,0.03);
    }

        .submenu li a:hover::before {
            background: var(--accent);
        }


/* ---- Collapsed Tooltip ---- */
.sidebar-tooltip {
    position: fixed;
    left: calc(var(--sidebar-collapsed-width) + 8px);
    background: #1a2233;
    color: #e0eaf5;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    z-index: 999;
    transition: opacity 0.15s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}

    .sidebar-tooltip.visible {
        opacity: 1;
    }

    .sidebar-tooltip::before {
        content: '';
        position: absolute;
        left: -5px;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 0;
        border-top: 5px solid transparent;
        border-bottom: 5px solid transparent;
        border-right: 5px solid #1a2233;
    }


/* ============================================================
   MAIN WRAPPER
   ============================================================ */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}


/* ============================================================
   HEADER
   ============================================================ */
.header {
    height: var(--header-height);
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    flex-shrink: 0;
    z-index: 100;
    gap: 12px;
}


/* ---- Header Left ---- */
.header-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: 7px;
    color: var(--header-icon-color);
    font-size: 15px;
    cursor: pointer;
    transition: background var(--transition-speed) ease, color var(--transition-speed) ease;
    position: relative;
    flex-shrink: 0;
}

    .header-icon-btn:hover {
        background: var(--header-icon-hover-bg);
        color: var(--header-icon-hover-color);
    }

/* Search Box */
.search-box {
    display: flex;
    align-items: center;
    overflow: hidden;
    max-width: 0;
    opacity: 0;
    transition: max-width 0.28s ease, opacity 0.22s ease;
}

    .search-box.active {
        max-width: 240px;
        opacity: 1;
    }

.search-input {
    width: 220px;
    padding: 7px 13px;
    border: 1px solid var(--header-border);
    border-radius: 7px;
    font-size: 13px;
    font-family: 'Nunito', sans-serif;
    background: #ffffff;
    color: #3d4e6b;
    outline: none;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

    .search-input:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(91, 141, 238, 0.15);
    }

    .search-input::placeholder {
        color: #a8b9d0;
    }


/* ---- Header Right ---- */
.header-right {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

/* Notification badge */
.notification-btn {
    position: relative;
}

.notif-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--badge-notif-bg);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    min-width: 15px;
    height: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
    pointer-events: none;
}

/* Divider */
.header-divider {
    width: 1px;
    height: 26px;
    background: var(--header-border);
    margin: 0 6px;
    flex-shrink: 0;
}


/* ---- User Profile ---- */
.user-profile {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 9px;
    border-radius: 7px;
    cursor: pointer;
    transition: background var(--transition-speed) ease;
    user-select: none;
}

    .user-profile:hover {
        background: var(--header-icon-hover-bg);
    }

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #d5dfef;
    flex-shrink: 0;
}

.user-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #3d4e6b;
    white-space: nowrap;
}

.user-chevron {
    font-size: 10px;
    color: var(--header-icon-color);
    margin-left: 2px;
    transition: transform var(--transition-speed) ease;
}

.user-profile.open .user-chevron {
    transform: rotate(180deg);
}


/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #eef2f9;
}


/* ============================================================
   GRID SYSTEM
   ============================================================ */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
    width: 100%;
    align-items: start;
}

/* ---- Column spans ---- */
.col-1 {
    grid-column: span 1;
}

.col-2 {
    grid-column: span 2;
}

.col-3 {
    grid-column: span 3;
}

.col-4 {
    grid-column: span 4;
}

.col-5 {
    grid-column: span 5;
}

.col-6 {
    grid-column: span 6;
}

.col-7 {
    grid-column: span 7;
}

.col-8 {
    grid-column: span 8;
}

.col-9 {
    grid-column: span 9;
}

.col-10 {
    grid-column: span 10;
}

.col-11 {
    grid-column: span 11;
}

.col-12 {
    grid-column: span 12;
}

/* ---- Row spans ---- */
.row-span-2 {
    grid-row: span 2;
}

.row-span-3 {
    grid-row: span 3;
}

/* ---- Responsive: large tablet — 6 effective columns ---- */
@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
        grid-column: span 6;
    }
}

/* ---- Responsive: mobile — single column ---- */
@media (max-width: 560px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    [class*="col-"] {
        grid-column: 1 / -1;
    }

    [class*="row-span-"] {
        grid-row: auto;
    }
}


/* ============================================================
   CARD COMPONENT
   ============================================================ */
.card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(40, 60, 110, 0.07);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #edf1f8;
    flex-shrink: 0;
    gap: 10px;
}

.card-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #2d3a52;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-subtitle {
    font-size: 11.5px;
    color: #9aadc4;
    margin-top: 2px;
}

.card-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.card-action-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: #f0f4fa;
    border-radius: 6px;
    color: #7b8fae;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, color 0.18s ease;
}

    .card-action-btn:hover {
        background: #e2e8f4;
        color: #3d4e6b;
    }

.card-body {
    padding: 18px;
    flex: 1;
}

.card-footer {
    padding: 12px 18px;
    border-top: 1px solid #edf1f8;
    flex-shrink: 0;
}

/* ---- Stat card variant ---- */
.card.stat-card {
    border-top: 3px solid transparent;
}

.card.stat-card-blue {
    border-top-color: #5b8dee;
}

.card.stat-card-green {
    border-top-color: #02c9ab;
}

.card.stat-card-orange {
    border-top-color: #fd9644;
}

.card.stat-card-red {
    border-top-color: #f64e60;
}

.stat-card .card-body {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.stat-info {
    min-width: 0;
}

.stat-label {
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9aadc4;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #2d3a52;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-change {
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

    .stat-change.up {
        color: #02c9ab;
    }

    .stat-change.down {
        color: #f64e60;
    }

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.stat-icon-blue {
    background: #eef3ff;
    color: #5b8dee;
}

.stat-icon-green {
    background: #e3faf5;
    color: #02c9ab;
}

.stat-icon-orange {
    background: #fff3e8;
    color: #fd9644;
}

.stat-icon-red {
    background: #ffeef0;
    color: #f64e60;
}

/* ---- Placeholder block (used inside cards pending real content) ---- */
.placeholder-block {
    background: #f0f4fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b0bfd4;
    font-size: 13px;
    font-weight: 500;
    gap: 8px;
}


/* ============================================================
   NOTIFICATION PANEL
   ============================================================ */

/* Overlay backdrop */
.notif-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 30, 50, 0.35);
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

    .notif-overlay.active {
        opacity: 1;
        pointer-events: all;
    }

/* Panel */
.notif-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 360px;
    height: 100vh;
    background: #ffffff;
    z-index: 400;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -6px 0 30px rgba(40, 60, 100, 0.15);
}

    .notif-panel.open {
        transform: translateX(0);
    }

/* Panel Header */
.notif-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #edf0f7;
    flex-shrink: 0;
}

.notif-panel-title {
    font-size: 15px;
    font-weight: 700;
    color: #2d3a52;
}

.notif-panel-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notif-mark-all {
    background: none;
    border: none;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 5px;
    transition: background 0.18s ease;
    font-family: inherit;
}

    .notif-mark-all:hover {
        background: #eef2fc;
    }

.notif-close-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: #f0f4fa;
    border-radius: 6px;
    color: #7b8fae;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, color 0.18s ease;
}

    .notif-close-btn:hover {
        background: #e2e8f4;
        color: #3d4e6b;
    }

/* Notification List */
.notif-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

    .notif-list::-webkit-scrollbar {
        width: 4px;
    }

    .notif-list::-webkit-scrollbar-track {
        background: transparent;
    }

    .notif-list::-webkit-scrollbar-thumb {
        background: #dde3ef;
        border-radius: 2px;
    }

/* Notification Item */
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 13px 20px;
    position: relative;
    cursor: pointer;
    transition: background 0.18s ease;
    border-bottom: 1px solid #f4f6fb;
}

    .notif-item:last-child {
        border-bottom: none;
    }

    .notif-item:hover {
        background: #f8faff;
    }

    .notif-item.unread {
        background: #f4f7ff;
    }

        .notif-item.unread:hover {
            background: #ecf1fd;
        }

/* Unread dot */
.notif-dot {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Icon wrapper */
.notif-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 1px;
}

.notif-icon-blue {
    background: #e8efff;
    color: #5b8dee;
}

.notif-icon-green {
    background: #e3faf5;
    color: #02c9ab;
}

.notif-icon-red {
    background: #ffeef0;
    color: #f64e60;
}

.notif-icon-orange {
    background: #fff3e8;
    color: #fd9644;
}

.notif-icon-teal {
    background: #e3f6f8;
    color: #17a2b8;
}

.notif-icon-purple {
    background: #f0eaff;
    color: #7e57c2;
}

/* Notification Body */
.notif-body {
    flex: 1;
    min-width: 0;
}

.notif-text {
    font-size: 13px;
    color: #4a5878;
    line-height: 1.45;
    margin-bottom: 5px;
}

    .notif-text strong {
        color: #2d3a52;
        font-weight: 700;
    }

.notif-time {
    font-size: 11.5px;
    color: #9aadc4;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Panel Footer */
.notif-panel-footer {
    padding: 14px 20px;
    border-top: 1px solid #edf0f7;
    flex-shrink: 0;
    text-align: center;
}

.notif-view-all {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 7px;
    transition: background 0.18s ease;
}

    .notif-view-all:hover {
        background: #eef2fc;
    }

/* ============================================================
   LANDING PAGE
   ============================================================ */

.landing-hero {
    background: linear-gradient(120deg, #00053e 0%, #f7cd69 100%);
    color: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
    padding: 3rem 2rem 2rem 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    align-items: center;
    text-align: center;
}

.landing-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 1px 2px 8px #00053e55;
}

.landing-hero p {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 2rem;
}

.landing-cta {
    background: #f7cd69;
    color: #00053e;
    font-weight: 600;
    border: none;
    border-radius: 2rem;
    padding: 0.75rem 2.5rem;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px #00053e33;
    transition: background 0.2s, color 0.2s;
}

.landing-cta:hover {
    background: #00053e;
    color: #f7cd69;
}

.landing-hero .hero-bg {
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #f7cd69 0%, #00053e 100%);
    opacity: 0.15;
    border-radius: 50%;
    z-index: 0;
}

.fade-in {
    animation: fadeIn 1.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.landing-note {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-radius: 1rem;
    padding: 1.2rem 1rem 1rem 1rem;
    margin: 1.5rem auto 0 auto;
    max-width: 600px;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px #00053e22;
    margin-bottom: 5px;
}

.syncfusion-logo {
    height: 22px;
    vertical-align: middle;
    margin-left: 4px;
    margin-right: 2px;
}

/* ============================================================
   ACCESS DENIED PAGE
   ============================================================ */

.access-denied-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 20px;
}

.access-denied-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.access-denied-title {
    font-size: 42px;
    font-weight: 700;
    color: #dc3545;
    margin-bottom: 20px;
}

.access-denied-title i {
    margin-right: 10px;
}

.access-denied-subtitle {
    font-size: 20px;
    color: #555;
    margin-bottom: 12px;
}

.access-denied-text {
    font-size: 16px;
    color: #777;
    margin-bottom: 30px;
}

.access-denied-btn {
    display: inline-block;
    background-color: #0d6efd;
    color: #fff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.access-denied-btn:hover {
    background-color: #0b5ed7;
    color: #fff;
}

/* ============================================================
   ERROR PAGE
   ============================================================ */

.error-container {
    max-width: 850px;
    margin: 80px auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.error-title {
    font-size: 42px;
    font-weight: 700;
    color: #dc3545;
    margin-bottom: 12px;
}

.error-subtitle {
    font-size: 24px;
    font-weight: 500;
    color: #444;
    margin-bottom: 25px;
}

.error-mode-title {
    margin-top: 30px;
    margin-bottom: 16px;
    font-size: 22px;
    font-weight: 600;
    color: #222;
}

.error-text {
    font-size: 16px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 16px;
}

.request-id-box {
    background: #fafafa;
    border-left: 4px solid #dc3545;
    padding: 14px 18px;
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
    color: #333;
}

.request-id-box code {
    background: #f1f1f1;
    padding: 3px 8px;
    border-radius: 4px;
    color: #c7254e;
}

/* Box */

.box {
    overflow: auto;
}

.box-header h2 {
    font-size: 14pt;
    margin: 0;
    padding: 0.5rem 1rem;
}

.box-content {
    font-size: 11pt;
}

.spot-prices-container {
    display: flex;
    flex-wrap: wrap;
}

.spot-price-item {
    flex: 1 1 25%;
    margin: 4px 0;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.spot-label {
    font-weight: normal;
    padding: 5px
}

.spot-bid {
    color: gray;
}

.spot-change {
    font-weight: normal;
    padding:5px;
}

    .spot-change.positive {
        color: green;
    }

    .spot-change.negative {
        color: red;
    }

    .spot-change.neutral {
        color: gray;
    }

.box {
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
    -webkit-box-shadow: 0px 1px 0px 1px #e4e6eb;
    -moz-box-shadow: 0px 1px 0px 1px #e4e6eb;
    box-shadow: 0px 1px 0px 1px #e4e6eb;
    margin: 0px 0px 30px 0px;
}

    .box.noOverflow {
        overflow: hidden;
    }

    .box .box-header {
        background: #3d4e6b;
        color: white;
        font-size: 16px;
        overflow: hidden;
    }

        .box .box-header h2 {
            float: left;
            padding: 10px 0px;
            margin: 0px 0px 0px 20px;
        }

            .box .box-header h2 i {
                background: #1e8fc6;
                color: white;
                padding: 10px 0px;
                width: 36px;
                display: inline-block;
                text-align: center;
                margin: -10px 20px -10px -20px;
            }

        .box .box-header .box-icon {
            background: #1e8fc6;
            float: right;
        }

            .box .box-header .box-icon i {
                display: inline-block;
                color: white;
                text-align: center;
                width: 36px;
                padding: 10px 0px;
                -webkit-transition: all 0.1s ease-in-out;
                -moz-transition: all 0.1s ease-in-out;
                -ms-transition: all 0.1s ease-in-out;
                -o-transition: all 0.1s ease-in-out;
                transition: all 0.1s ease-in-out;
                opacity: .8;
                filter: alpha(opacity=80);
                -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
                border-left: 1px solid #36a9e1;
                text-decoration: none;
            }

                .box .box-header .box-icon i:hover {
                    opacity: 1;
                    filter: alpha(opacity=100);
                    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
                }

    .box .box-content {
        padding: 10px;
        background: white;
        overflow: auto;
    }

.metal-position-container {
    display: flex;
    flex-wrap: wrap;
}

.metal-position-item {
    flex: 1 1 25%;
    margin: 4px 0;
    display: flex;
    justify-content: space-between;
    padding-left: 1rem;
    padding-right: 1rem;
}

.metal-position-label {
    font-weight: normal;
    padding: 5px
}

.metal-position {
    display: inline-block;
    width: 80px;
    text-align: center;
    color: white;
    padding: 4px 6px;
    border-radius: 2px;
    font-weight: normal;
}

    .metal-position.positive {
        background-color: green;
    }

    .metal-position.negative {
        background-color: red;
    }

    .metal-position.neutral {
        background-color: gray;
    }