/* ============================================================
   SENIN ANONIM — BASE CSS
   Design System: Variables, Reset, Typography, Utilities
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* --- CSS Variables --- */
:root {
    --bg: #f7f2ef;
    --bg-card: rgba(255, 255, 255, 0.92);
    --bg-card-solid: #ffffff;
    --text: #0f0f0f;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --primary: #247ddc;
    --primary-hover: #1b6bc4;
    --primary-light: rgba(36, 125, 220, 0.08);
    --primary-glow: rgba(36, 125, 220, 0.25);
    --secondary: #f5a623;
    --secondary-hover: #e09515;
    --secondary-light: rgba(245, 166, 35, 0.1);
    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.1);
    --danger: #ef4444;
    --danger-light: rgba(239, 68, 68, 0.1);
    --warning: #f59e0b;
    --border: rgba(15, 15, 15, 0.08);
    --border-focus: rgba(36, 125, 220, 0.4);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    --transition-fast: 0.15s ease;
    --transition: 0.25s ease;
    --transition-slow: 0.4s ease;
    --font: 'Barlow Condensed', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    background: none;
}

button {
    cursor: pointer;
}

ul, ol {
    list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(15, 15, 15, 0.15);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 15, 15, 0.25);
}

/* --- Selection --- */
::selection {
    background: var(--primary-light);
    color: var(--primary);
}

/* --- Main Content --- */
.main-content {
    min-height: 100vh;
}

/* --- Flash Messages --- */
.flash-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 420px;
}

.flash-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background: var(--bg-card-solid);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    animation: flashSlideIn 0.4s ease;
    border-left: 4px solid;
    backdrop-filter: blur(20px);
}

.flash-success { border-left-color: var(--success); }
.flash-error { border-left-color: var(--danger); }
.flash-warning { border-left-color: var(--warning); }
.flash-info { border-left-color: var(--primary); }

.flash-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.flash-success .flash-icon { color: var(--success); }
.flash-error .flash-icon { color: var(--danger); }
.flash-warning .flash-icon { color: var(--warning); }
.flash-info .flash-icon { color: var(--primary); }

.flash-text {
    flex: 1;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text);
}

.flash-close {
    font-size: 1.3rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}
.flash-close:hover { color: var(--text); }

@keyframes flashSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes flashSlideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* --- Error Pages --- */
.error-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}
.error-card {
    text-align: center;
    background: var(--bg-card);
    padding: 60px 48px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
}
.error-code {
    font-size: 6rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -0.04em;
    opacity: 0.15;
}
.error-title {
    font-size: 1.8rem;
    margin-top: -8px;
    margin-bottom: 8px;
}
.error-desc {
    color: var(--text-secondary);
    margin-bottom: 28px;
}

/* --- Responsive --- */
@media (max-width: 480px) {
    .flash-container {
        left: 12px;
        right: 12px;
        max-width: none;
    }
}
