/* Import Google Font Inter agar terlihat seperti Startup Modern */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #2563eb;       /* Royal Blue */
    --primary-hover: #1d4ed8;       /* Darker Blue */
    --secondary-bg: #ffffff;        /* White */
    --body-bg: #f3f4f6;             /* Light Gray for background */
    --text-main: #111827;           /* Almost Black */
    --text-muted: #6b7280;          /* Gray text */
    --border-color: #e5e7eb;        /* Light Border */
    --success-color: #059669;       /* Green for Money/Success */
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body {
    background-color: var(--body-bg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
}

/* --- SIDEBAR --- */
.sidebar {
    background: var(--secondary-bg);
    min-height: 100vh;
    border-right: 1px solid var(--border-color);
    padding: 30px;
    position: relative;
    z-index: 10;
}

.sidebar h4 {
    letter-spacing: -0.5px;
    margin-bottom: 2rem;
}

/* Kotak History di Sidebar */
.history-box {
    background: #eff6ff; /* Light Blue Bg */
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    transition: transform 0.2s ease;
}

.history-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.history-box h5 {
    color: #1e3a8a; /* Dark Blue Text */
    font-family: 'Monaco', 'Consolas', monospace; /* Font monospace untuk angka */
    letter-spacing: 1px;
}

/* --- MAIN CONTENT CARDS --- */
.card-custom {
    border: none;
    border-radius: 12px;
    background: var(--secondary-bg);
    box-shadow: var(--card-shadow);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.card-custom:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-custom h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--body-bg);
}

/* --- FORM ELEMENTS --- */
.form-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #374151;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1); /* Ring effect */
}

/* Input File Custom Style */
input[type="file"]::file-selector-button {
    background-color: #f3f4f6;
    color: #374151;
    border: none;
    padding: 8px 15px;
    margin-right: 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

input[type="file"]::file-selector-button:hover {
    background-color: #e5e7eb;
}

/* --- TEXT KHUSUS --- */
.terbilang-text {
    font-size: 0.85rem;
    color: var(--success-color);
    font-style: italic;
    margin-top: 6px;
    font-weight: 500;
    background: #ecfdf5; /* Light Green Bg */
    padding: 5px 10px;
    border-radius: 6px;
    display: inline-block;
    border: 1px dashed #a7f3d0;
}

/* --- BUTTONS --- */
.btn-generate {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    font-weight: 700;
    border-radius: 10px;
    border: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    width: 100%;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
}

.btn-generate:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(37, 99, 235, 0.4);
}

.btn-generate:active {
    transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 20px;
    }
    
    .btn-generate {
        font-size: 0.9rem;
    }
}