@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0');

:root {
    --primary: #1ed760; /* Spotify Green */
    --primary-hover: #1db954;
    --primary-light: #e8f5e9;
    --secondary: #121212; /* Near Black */
    
    --bg-main: #f8f8f8; /* Off White */
    --card-bg: #ffffff;
    
    --text-main: #121212;
    --text-muted: #535353;
    
    --border: #e5e5e5;
    --border-input: #7c7c7c;
    
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-inset: inset 0 2px 4px rgba(0,0,0,0.02);
    
    --transition: all 0.2s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Outfit', sans-serif;
}

body {
    background: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
}

/* ==========================================================================
   GLOBAL TYPOGRAPHY (AGENT.md Rule 3)
   ========================================================================== */

/* Base HTML Tags */
h1 {
    font-size: 1.50rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.15;
}

h2 {
    font-size: 1.13rem;
    font-weight: 700;
}

p {
    font-size: 1.00rem;
    line-height: 1.6;
}

/* Global Typography Utilities */
.text-heading { font-size: 1.13rem; font-weight: 700; }
.text-button { font-size: 0.88rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px; }
.text-caption { font-size: 0.88rem; font-weight: 500; }
.text-small { font-size: 0.75rem; font-weight: 500; }
.text-badge { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

/* ==========================================================================
   GLOBAL FORMS
   ========================================================================== */

label {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 4px;
    display: block;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="time"],
textarea,
select {
    width: 100%;
    padding: 0.85rem 1.15rem;
    border: 1px solid var(--border-input);
    border-radius: 500px; /* Spotify Pill style for inputs */
    background: #ffffff;
    color: var(--text-main);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

textarea {
    border-radius: 12px; /* Textareas cannot be pill-shaped */
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

input:hover, textarea:hover, select:hover {
    border-color: #121212;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #121212;
    background: #ffffff;
    box-shadow: 0 0 0 1px #121212; /* Solid focus ring ala modern UI */
}

.helper-text {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.75rem;
    font-style: italic;
    color: var(--primary-hover);
    font-weight: 500;
    min-height: 20px;
    transition: var(--transition);
}

/* ==========================================================================
   GLOBAL UTILITIES
   Hanya komponen umum yang dipakai lintas halaman (Rule 3 AGENT.md)
   ========================================================================== */

.badge-optional {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.66rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 9999px; /* Pill */
    margin-left: 0.75rem;
    vertical-align: middle;
}

/* Desain Tombol Umum (General Form Submit) - Diizinkan oleh Rule 3 */
.btn-submit {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1.15rem 2.5rem;
    background: var(--primary);
    color: #000000;
    border: none;
    border-radius: 9999px; /* Full pill */
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.3, 0, 0, 1), background-color 0.2s ease;
}

.btn-submit:hover {
    transform: scale(1.02);
    background: var(--primary-hover);
}

.btn-submit:active {
    transform: scale(0.98);
}

/* Global Animations */
.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

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