
:root {
    /* Primary Brand Colors */
    --color-primary: #0f2b4e;
    --color-secondary: #183e6b;
    --color-accent: #ff4d00;
    --color-accent-hover: #e04400;
    --color-blue-light: #428cdc;
    --color-text-main: #e6eef5;
    --color-text-muted: #8aaad4;
    --color-white: #ffffff;
    --color-border: rgba(255, 255, 255, 0.1);
    
    /* Gradients */
    --gradient-header: linear-gradient(180deg, #16365f 0%, #0d2644 100%);
    --gradient-btn-orange: linear-gradient(180deg, #ff6a00 0%, #ff4d00 100%);
    --gradient-btn-blue: linear-gradient(180deg, #4fa3ff 0%, #2d7cd6 100%);
    
    /* Spacing & Sizing */
    --container-width: 1200px;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    
    /* Shadows */
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 15px rgba(66, 140, 220, 0.3);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--color-primary);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul, ol {
    list-style: none;
}

img, svg {
    display: block;
    max-width: 100%;
}

/* --- Layout Utilities --- */
.wrap {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.flx {
    display: flex;
}

.aic {
    align-items: center;
}

.jcsb {
    justify-content: space-between;
}

.fxg {
    flex-grow: 1;
}

/* --- Typography --- */
h1, h2, h3 {
    color: var(--color-white);
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 2rem;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    border-bottom: 2px solid var(--color-blue-light);
    display: inline-block;
    padding-bottom: 0.5rem;
    margin-top: 2rem;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

/* --- Header Styles --- */
header {
    background: var(--gradient-header);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-soft);
    padding: 0.5rem 0;
}

.head-top {
    padding: 0.75rem 0;
}

.head-bottom {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0.5rem 0;
}

/* --- Buttons & Interactives --- */
.btn, .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-weight: 600;
    font-size: 0.875rem;
    gap: 0.5rem;
}

.radius20 {
    border-radius: var(--border-radius-lg);
}

.fon-blu {
    background: rgba(66, 140, 220, 0.1);
    color: var(--color-blue-light);
    border: 1px solid rgba(66, 140, 220, 0.2);
    padding: 0.3rem 0.8rem;
}

.fon-blu:hover {
    background: rgba(66, 140, 220, 0.2);
    box-shadow: var(--shadow-glow);
}

.fon-blu2 {
    background: var(--gradient-btn-blue);
    color: var(--color-white);
    padding: 0.4rem 1rem;
    box-shadow: 0 4px 10px rgba(66, 140, 220, 0.3);
}

.fon-blu2:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.fon-orang {
    background: var(--gradient-btn-orange);
    color: var(--color-white);
    padding: 0.4rem 1.2rem;
    box-shadow: 0 4px 10px rgba(255, 77, 0, 0.3);
}

.fon-orang:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* Header utility classes mapping */
.r20 { margin-right: 1.25rem; }
.r10 { margin-right: 0.625rem; }
.h30 { height: 36px; } /* Slightly taller for better touch targets */
.w500 { font-weight: 500; }
.f12 { font-size: 0.85rem; }

/* SVG Styling */
svg path {
    transition: var(--transition-fast);
}

.btn:hover svg path {
    fill-opacity: 0.8;
}

/* --- Logo --- */
.logo svg {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* --- Main Menu (Top) --- */
.main-menu {
    flex-grow: 1;
}

.main-menu ul {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.main-menu a {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
    position: relative;
}

.main-menu a:hover, .main-menu a.active {
    color: var(--color-white);
}

.main-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition-smooth);
}

.main-menu a:hover::after {
    width: 100%;
}

/* --- Layout Grid --- */
.content-row {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 4rem;
}

/* --- Sidebar Menu --- */
.col-left {
    background: var(--color-secondary);
    border-radius: var(--border-radius-md);
    padding: 1rem;
    height: fit-content;
    box-shadow: var(--shadow-soft);
}

.menu-category ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.menu-category a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    color: var(--color-text-main);
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
}

.menu-category a:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    transform: translateX(4px);
}

.menu-category svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* --- Content Area --- */
.content {
    background: var(--color-secondary);
    padding: 2rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
}

.entry-content {
    font-size: 1.05rem;
}

/* Reference Link Button */
.refka {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.refka a {
    background: var(--color-accent);
    color: var(--color-white);
    padding: 1rem 3rem;
    border-radius: var(--border-radius-lg);
    font-weight: 800;
    font-size: 1.2rem;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(255, 77, 0, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 77, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 77, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 77, 0, 0); }
}

/* --- Table Styling --- */
.table-responsive {
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--color-border);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.2);
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}

tr:last-child td {
    border-bottom: none;
}

tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

tr td:first-child {
    font-weight: 600;
    color: var(--color-text-muted);
    width: 30%;
    border-right: 1px solid var(--color-border);
}

tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* --- Navigation inside Content --- */
nav ol {
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem 2rem 2rem 3rem;
    border-radius: var(--border-radius-md);
    margin: 2rem 0;
    border-left: 4px solid var(--color-accent);
}

nav ol li {
    margin-bottom: 0.8rem;
    padding-left: 0.5rem;
}

nav ol li::marker {
    color: var(--color-accent);
    font-weight: bold;
}

nav a {
    color: var(--color-blue-light);
    font-weight: 500;
    border-bottom: 1px dashed transparent;
}

nav a:hover {
    color: var(--color-white);
    border-bottom-color: var(--color-white);
}

/* --- Lists styling --- */
.entry-content ul {
    margin: 1.5rem 0;
}

.entry-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.entry-content ul li::before {
    content: '•';
    color: var(--color-accent);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -0.2rem;
    line-height: 1.6;
}

/* --- Form Elements (Implicit styling for interactive feeling) --- */
input[type="text"], 
input[type="email"], 
input[type="password"] {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    color: var(--color-white);
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    transition: var(--transition-fast);
}

input:focus {
    outline: none;
    border-color: var(--color-blue-light);
    box-shadow: 0 0 0 2px rgba(66, 140, 220, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

/* --- Mobile Adaptivity --- */
@media (max-width: 992px) {
    .hide_992 {
        display: none !important;
    }
    
    .content-row {
        grid-template-columns: 1fr;
    }
    
    .head-top {
        justify-content: center;
    }
    
    .head-bottom {
        justify-content: space-between;
    }
    
    .col-left {
        display: none; /* Hide sidebar on mobile or convert to dropdown */
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .content {
        padding: 1.5rem;
    }
    
    .refka a {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .flx.jcsb {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }
    
    /* Make table scrollable */
    .table-responsive {
        border: 0;
    }
    
    table {
        display: block;
        width: 100%;
    }
    
    tr {
        display: flex;
        flex-direction: column;
        background: rgba(0,0,0,0.2) !important;
        margin-bottom: 1rem;
        border-radius: var(--border-radius-sm);
        padding: 0.5rem;
    }
    
    td {
        display: block;
        width: 100% !important;
        border: none;
        padding: 0.5rem 0;
    }
    
    tr td:first-child {
        border-right: none;
        color: var(--color-accent);
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
}
