
:root {
    /* Colors */
    --primary-blue: #007bff;
    --primary-blue-dark: #0056b3;
    --accent-orange: #ff6b00;
    --accent-orange-hover: #e65100;
    --text-main: #333333;
    --text-light: #777777;
    --text-white: #ffffff;
    --bg-body: #f4f6f9;
    --bg-white: #ffffff;
    --bg-sidebar: #ffffff;
    --border-color: #e1e4e8;
    
    /* Spacing & Sizing */
    --container-width: 1200px;
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.25rem; /* ~20px */
    --header-height: 4rem;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.1);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::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(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

ul, ol {
    list-style: none;
}

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

/* Utilities based on HTML classes */
.flx { display: flex; }
.jcsb { justify-content: space-between; }
.aic { align-items: center; }
.fxg { flex-grow: 1; }
.wrap {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.b10 { margin-bottom: 0.625rem; }
.b20 { margin-bottom: 1.25rem; }
.r10 { margin-right: 0.625rem; }
.r20 { margin-right: 1.25rem; }

.f12 { font-size: 0.75rem; }
.w500 { font-weight: 500; }

.radius20 { border-radius: var(--radius-lg); }
.h30 { height: 1.875rem; line-height: 1.875rem; }

/* Header */
header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.head-top {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.head-bottom {
    padding-top: 0.5rem;
    align-items: center;
}

/* Buttons & Badges */
.fon-blu, .fon-blu2 {
    background: linear-gradient(135deg, #428CDC 0%, #3476b9 100%);
    color: var(--text-white);
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(66, 140, 220, 0.3);
}

.fon-blu:hover, .fon-blu2:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(66, 140, 220, 0.4);
    filter: brightness(1.1);
}

.fon-orang {
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-orange-hover) 100%);
    color: var(--text-white);
    padding: 0 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 5px rgba(255, 107, 0, 0.3);
}

.fon-orang:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 107, 0, 0.4);
}

.download {
    background-color: #eef5fc;
    color: #428CDC;
    padding: 0 1rem;
    font-weight: 600;
    font-size: 0.75rem;
}

.btn-icon svg {
    transition: transform var(--transition-fast);
}

.btn-icon:hover svg {
    transform: scale(1.2);
}

.drop {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Logo */
.logo svg {
    height: 40px;
    width: auto;
}
.logo path {
    fill: #2c3e50; /* Override white for light header */
}
.logo circle {
    fill: var(--accent-orange);
}

/* Navigation Menu */
.main-menu ul {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
}

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

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

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

.main-menu a:hover {
    color: var(--primary-blue);
}

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

/* Sidebar (.col-left) */
.col-left {
    background-color: var(--bg-sidebar);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 1rem;
    position: sticky;
    top: 5rem;
}

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

.menu-category li a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color var(--transition-fast), padding-left var(--transition-fast);
}

.menu-category li a:hover {
    background-color: #f0f4f8;
    color: var(--primary-blue);
    padding-left: 1rem;
}

.menu-category li ul {
    margin-top: 0.5rem;
    margin-left: 1rem;
    border-left: 1px solid var(--border-color);
    padding-left: 0.5rem;
}

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

/* Main Content */
.content {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

h1 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-weight: 800;
}

h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    border-left: 4px solid var(--primary-blue);
    padding-left: 0.8rem;
}

p {
    margin-bottom: 1rem;
    color: #4a5568;
    text-align: justify;
}

/* Reference Button (CTA) */
.refka {
    text-align: center;
    margin: 2rem 0;
}

.refka a {
    display: inline-block;
    background: linear-gradient(90deg, #ff8a00, #e52e71);
    color: white;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(229, 46, 113, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.refka a:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(229, 46, 113, 0.4);
}

/* Table of Contents */
nav ol {
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.5rem 1.5rem 2.5rem;
    margin-bottom: 2rem;
}

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

nav ol li a {
    color: var(--primary-blue);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: transparent;
}

nav ol li a:hover {
    text-decoration-color: var(--primary-blue);
}

/* Lists in Content */
.entry-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.entry-content ul li {
    margin-bottom: 0.3rem;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 0 1px var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background-color: white;
}

table tr {
    border-bottom: 1px solid var(--border-color);
}

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

table tr:nth-child(even) {
    background-color: #f9fafb;
}

table td {
    padding: 1rem;
    vertical-align: top;
}

table td:first-child {
    font-weight: 600;
    color: var(--text-main);
    width: 30%;
    background-color: #f1f5f9;
}

/* Form Elements (General Styling) */
input[type="text"], 
input[type="email"], 
input[type="password"] {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    transition: border-color var(--transition-fast);
}

input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.content {
    animation: fadeIn 0.5s ease-out;
}

/* Responsive Design */
@media (max-width: 992px) {
    .content-row {
        grid-template-columns: 1fr;
    }
    
    .col-left {
        display: none; /* Based on class hide_992 in Header, logic applied here too for sidebar */
    }
    
    .hide_992 {
        display: none !important;
    }
    
    h1 {
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .head-top {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .content {
        padding: 1rem;
    }
    
    table td {
        display: block;
        width: 100%;
    }
    
    table td:first-child {
        border-bottom: 1px dashed var(--border-color);
    }
    
    .refka a {
        width: 100%;
        padding: 1rem;
    }
}
