/* ============================================================
   STYLE.CSS - Master CSS Sysinfo
   Gabungan: global + navbar + sidebar + layout + sub-menu + components
   ============================================================ */

/* ===== ROOT VARIABLES ===== */
:root {
    --brand-dark: #1E375C;
    --brand: #275CA2;
    --accent: #021b53;
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ===== BASE ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    overflow-x: hidden;
}

/* ===== GLOBAL COLORS ===== */
.bg-sky {
    background-color: #E6EDF8;
}

.text-brand {
    color: var(--brand);
}

.text-sub-header {
    color: var(--brand-dark);
}

/* ===== NAVBAR ===== */
.navbar {
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    background-color: rgba(230, 237, 248, 0.85) !important;
}

.dropdown-menu {
    border-radius: 12px;
    padding: 10px 0;
    background-color: #ffffff;
}

.dropdown-item {
    padding: 10px 20px;
    transition: var(--transition-smooth);
}

.dropdown-item:hover {
    background-color: #E6EDF8;
    color: var(--brand-dark);
}

@media (min-width: 992px) {
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

/* ===== BUTTONS ===== */
.btn-brand {
    background-color: var(--brand);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-brand:hover {
    background-color: var(--brand-dark);
    color: #fff;
    transform: translateY(-3px);
}

.btn-outline-brand {
    background-color: #f8fafc;
    color: var(--brand-dark);
    border-radius: 8px;
    border: 2px solid #021b53;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-outline-brand:hover {
    background-color: var(--brand-dark);
    color: #fff;
    transform: translateY(-3px);
}

.btn-accent {
    background-color: var(--accent);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-accent:hover {
    background-color: #096fa6;
    color: #fff;
    transform: translateY(-3px);
}

/* ===== SECTIONS ===== */
section {
    padding: 100px 0;
}

.section-title {
    font-weight: 800;
}

.section-divider {
    width: 70px;
    height: 4px;
    background: var(--brand);
    margin: 20px auto 50px;
    border-radius: 2px;
}

/* ===== CARDS ===== */
.card-hover {
    border: none;
    transition: var(--transition-smooth);
}

.card-hover:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 25px 50px rgba(39, 92, 162, 0.12) !important;
}

/* ===== FORM ===== */
.form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 0.25rem rgba(39, 92, 162, 0.1);
}

/* ===== HERO IMAGE ANIMATION ===== */
.hero-img-anim {
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.1));
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* ===== STATS SECTION ===== */
.bg-brand-stats {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: white !important;
    position: relative;
    overflow: hidden;
}

.counter {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 5px;
    background: linear-gradient(to bottom, #e2eaf9, #edf2f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.stats-item p {
    font-weight: 600;
    color: #f8fafc;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    opacity: 0.9;
}

.stats-box {
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

@media (min-width: 768px) {
    .stats-divider {
        border-right: 1px solid rgba(255, 255, 255, 0.15);
    }
}

/* ===== TECH SLIDER ===== */
.tech-slider {
    overflow: hidden;
    position: relative;
}

.tech-track {
    display: flex;
    width: calc(250px * 14);
    animation: scroll 30s linear infinite;
}

.tech-item {
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
}

.tech-item i,
.tech-item img {
    font-size: 3rem;
    color: var(--accent);
    transition: var(--transition-smooth);
}

.tech-item:hover i,
.tech-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    color: var(--brand);
    transform: scale(1.1);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 7)); }
}

.tech-slider::before,
.tech-slider::after {
    content: "";
    height: 100%;
    position: absolute;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.tech-slider::before {
    left: 0;
    background: linear-gradient(to right, rgba(230, 237, 248, 1), transparent);
}

.tech-slider::after {
    right: 0;
    background: linear-gradient(to left, rgba(230, 237, 248, 1), transparent);
}

/* ============================================================
   SIDEBAR LAYOUT
   ============================================================ */

/* ===== LAYOUT WRAPPER ===== */
.page-with-sidebar {
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed !important;
    top: 70px;
    left: 0;
    width: 260px;
    height: calc(100vh - 70px);
    overflow-y: auto;
    overflow-x: visible;
    z-index: 99999 !important;
    flex-shrink: 0;
    padding-top: 20px;
}

/* Scrollbar tipis */
.sidebar::-webkit-scrollbar {
    width: 4px;
}
.sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.sidebar-header {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    padding: 0 20px 12px;
    margin-bottom: 8px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    margin-left: 260px;
    background: #f8fafc;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ===== SIDEBAR MENU ===== */
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu .menu-link {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: #07162c;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    white-space: nowrap;
}

.sidebar-menu .menu-link:hover {
    background: #f0f6ff;
    color: #2563eb;
}

.sidebar-menu .menu-link.active {
    background: #e8f0fe;
    color: #2563eb;
    border-right: 3px solid #2563eb;
    font-weight: 600;
}

/* ===== ARROW ===== */
.arrow {
    transition: transform 0.3s;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.menu-item.has-sub:hover .arrow {
    transform: rotate(90deg);
}

/* ===== SUB MENU FLYOUT ===== */
.menu-item.has-sub {
    position: relative;
}

.sub-menu {
    list-style: none;
    padding: 16px;
    margin: 0;
    background: #fff;
    position: fixed;
    min-width: 240px;
    max-width: 700px;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid #e2e8f0;
    z-index: 999999 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-4px);
    transition: all 0.2s ease;
    pointer-events: none;

    /* Multi Column Layout */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    grid-auto-rows: min-content;
    gap: 4px 10px;
    max-height: 320px;
    overflow: hidden;
}

/* Header title sub-menu */
.sub-menu::before {
    content: attr(data-title);
    grid-column: 1 / -1;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    padding-bottom: 10px;
    margin-bottom: 6px;
    border-bottom: 1px solid #f1f5f9;
}

/* Tampil saat hover */
.menu-item.has-sub:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: all;
}

.sub-menu li {
    list-style: none;
}

.sub-menu li a {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: #334155;
    text-decoration: none;
    font-size: 0.87rem;
    font-weight: 500;
    transition: all 0.2s;
    border-radius: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sub-menu li a:hover {
    color: #2563eb;
    background: #f1f5f9;
}

.sub-menu li a i {
    font-size: 0.45rem;
    color: #94a3b8 !important;
    margin-right: 10px;
    flex-shrink: 0;
}