/* ============================================
   STYLE.CSS - Complete Styles for Ceria Main Page
   ============================================ */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--surface);
    color: var(--on-surface);
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headline);
    font-weight: 700;
}

/* ===== MATERIAL ICONS ===== */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* ===== LAYOUT UTILITIES ===== */
.fixed { position: fixed; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* Flexbox */
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.flex-wrap { flex-wrap: wrap; }
.flex-grow { flex-grow: 1; }

/* Gap */
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.gap-10 { gap: 40px; }
.gap-12 { gap: 48px; }

/* Grid */
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-12 { grid-template-columns: repeat(12, 1fr); }

/* ===== SPACING ===== */
/* Padding */
.p-0 { padding: 0; }
.p-1 { padding: 4px; }
.p-2 { padding: 8px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-5 { padding: 20px; }
.p-6 { padding: 24px; }
.p-8 { padding: 32px; }
.p-10 { padding: 40px; }
.p-12 { padding: 48px; }

.px-1 { padding-left: 4px; padding-right: 4px; }
.px-2 { padding-left: 8px; padding-right: 8px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-5 { padding-left: 20px; padding-right: 20px; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.px-8 { padding-left: 32px; padding-right: 32px; }
.px-10 { padding-left: 40px; padding-right: 40px; }
.px-12 { padding-left: 48px; padding-right: 48px; }

.py-1 { padding-top: 4px; padding-bottom: 4px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-5 { padding-top: 20px; padding-bottom: 20px; }
.py-6 { padding-top: 24px; padding-bottom: 24px; }
.py-8 { padding-top: 32px; padding-bottom: 32px; }
.py-10 { padding-top: 40px; padding-bottom: 40px; }
.py-12 { padding-top: 48px; padding-bottom: 48px; }

.pt-24 { padding-top: 96px; }
.pb-32 { padding-bottom: 128px; }
.pb-6 { padding-bottom: 24px; }

/* Margin */
.m-0 { margin: 0; }
.m-1 { margin: 4px; }
.m-2 { margin: 8px; }
.m-3 { margin: 12px; }
.m-4 { margin: 16px; }

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.mt-12 { margin-top: 48px; }
.mt-16 { margin-top: 64px; }
.mt-20 { margin-top: 80px; }
.mt-24 { margin-top: 96px; }

.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-10 { margin-bottom: 40px; }
.mb-12 { margin-bottom: 48px; }
.mb-16 { margin-bottom: 64px; }
.mb-20 { margin-bottom: 80px; }

.ml-1 { margin-left: 4px; }
.mr-1 { margin-right: 4px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ===== SIZING ===== */
.w-full { width: 100%; }
.w-5 { width: 20px; }
.w-8 { width: 32px; }
.w-16 { width: 64px; }
.w-32 { width: 128px; }
.w-48 { width: 192px; }
.w-64 { width: 256px; }

.h-full { height: 100%; }
.h-5 { height: 20px; }
.h-8 { height: 32px; }
.h-16 { height: 64px; }
.h-32 { height: 128px; }
.h-48 { height: 192px; }
.h-64 { height: 256px; }

.aspect-square { aspect-ratio: 1 / 1; }
.aspect-4\/3 { aspect-ratio: 4 / 3; }

.max-w-7xl { max-width: 1280px; }
.max-w-xl { max-width: 576px; }

/* ===== BACKGROUNDS ===== */
.bg-surface { background-color: var(--surface); }
.bg-surface-container { background-color: var(--surface-container); }
.bg-surface-container-low { background-color: var(--surface-container-low); }
.bg-surface-container-lowest { background-color: var(--surface-container-lowest); }
.bg-surface-container-high { background-color: var(--surface-container-high); }
.bg-surface-container-highest { background-color: var(--surface-container-highest); }
.bg-primary { background-color: var(--primary); }
.bg-primary-container { background-color: var(--primary-container); }
.bg-primary-fixed { background-color: var(--primary-fixed); }
.bg-secondary { background-color: var(--secondary); }
.bg-secondary-fixed { background-color: var(--secondary-fixed); }
.bg-secondary-container { background-color: var(--secondary-container); }
.bg-tertiary { background-color: var(--tertiary); }
.bg-tertiary-fixed { background-color: var(--tertiary-fixed); }
.bg-error { background-color: var(--error); }
.bg-white { background-color: #ffffff; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-blue-500 { background-color: #3b82f6; }
.bg-slate-400 { background-color: #94a3b8; }

.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-start), var(--tw-gradient-end));
}
.from-primary { --tw-gradient-start: var(--primary); }
.to-primary-container { --tw-gradient-end: var(--primary-container); }

.bg-gradient-to-t {
    background-image: linear-gradient(to top, var(--tw-gradient-start), var(--tw-gradient-end));
}
.from-primary\/20 { --tw-gradient-start: rgba(0, 93, 167, 0.2); }
.to-transparent { --tw-gradient-end: transparent; }

/* ===== TEXT COLORS ===== */
.text-on-surface { color: var(--on-surface); }
.text-on-surface-variant { color: var(--on-surface-variant); }
.text-primary { color: var(--primary); }
.text-on-primary { color: var(--on-primary); }
.text-on-primary-fixed { color: var(--on-primary-fixed); }
.text-on-primary-fixed-variant { color: var(--on-primary-fixed-variant); }
.text-secondary { color: var(--secondary); }
.text-on-secondary { color: var(--on-secondary); }
.text-on-secondary-fixed { color: var(--on-secondary-fixed); }
.text-tertiary { color: var(--tertiary); }
.text-error { color: var(--error); }
.text-white { color: #ffffff; }
.text-slate-600 { color: #475569; }
.text-slate-400 { color: #94a3b8; }
.text-transparent { color: transparent; }

/* ===== TYPOGRAPHY SIZES ===== */
.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.text-base { font-size: 16px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 30px; }
.text-4xl { font-size: 36px; }
.text-5xl { font-size: 48px; }
.text-6xl { font-size: 60px; }
.text-7xl { font-size: 72px; }

/* ===== FONT WEIGHTS ===== */
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

/* ===== TEXT TRANSFORMS ===== */
.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }
.italic { font-style: italic; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

/* ===== BORDERS ===== */
.rounded-none { border-radius: 0; }
.rounded-sm { border-radius: 8px; }
.rounded-md { border-radius: 16px; }
.rounded-lg { border-radius: 24px; }
.rounded-xl { border-radius: 32px; }
.rounded-full { border-radius: 9999px; }
.rounded-t-2rem { border-top-left-radius: 2rem; border-top-right-radius: 2rem; }

.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-b-4 { border-bottom-width: 4px; }
.border-surface { border-color: var(--surface); }
.border-none { border: none; }

/* ===== SHADOWS ===== */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

/* ===== TRANSITIONS ===== */
.transition-all { transition-property: all; }
.transition-transform { transition-property: transform; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

/* ===== HOVER EFFECTS ===== */
.hover\:shadow-xl:hover { box-shadow: var(--shadow-xl); }
.hover\:bg-surface-container-high:hover { background-color: var(--surface-container-high); }
.hover\:bg-primary:hover { background-color: var(--primary); }
.hover\:bg-primary-container:hover { background-color: var(--primary-container); }
.hover\:text-primary:hover { color: var(--primary); }
.hover\:text-white:hover { color: #ffffff; }
.hover\:scale-110:hover { transform: scale(1.1); }
.hover\:-translate-y-2:hover { transform: translateY(-8px); }

/* ===== ACTIVE EFFECTS ===== */
.active\:scale-95:active { transform: scale(0.95); }

/* ===== GROUP HOVER ===== */
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }

/* ===== BACKDROP & FILTERS ===== */
.backdrop-blur-md { backdrop-filter: blur(12px); }
.backdrop-blur-xl { backdrop-filter: blur(24px); }
.backdrop-blur-lg { backdrop-filter: blur(16px); }
.blur-2xl { filter: blur(40px); }
.blur-3xl { filter: blur(64px); }
.opacity-40 { opacity: 0.4; }
.opacity-50 { opacity: 0.5; }

/* ===== OVERFLOW ===== */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

/* ===== OBJECT FIT ===== */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* ===== TRANSFORM ===== */
.rotate-3 { transform: rotate(3deg); }

/* ===== CURSOR ===== */
.cursor-pointer { cursor: pointer; }

/* ===== SELECTION ===== */
::selection {
    background-color: var(--primary-fixed);
    color: var(--on-primary-fixed);
}


/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:w-1\/2 { width: 50%; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md\:flex-row { flex-direction: row; }
    .md\:text-7xl { font-size: 72px; }
}

@media (min-width: 1024px) {
    .lg\:col-span-2 { grid-column: span 2; }
    .lg\:col-span-5 { grid-column: span 5; }
    .lg\:col-span-7 { grid-column: span 7; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .lg\:grid-cols-12 { grid-template-columns: repeat(12, 1fr); }
}

/* Animasi slide-in untuk toast */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.3s ease-out;
}

.gradient-text {
    background: linear-gradient(135deg, #ec4899, #a855f7, #6366f1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 0.30em;
}

/* ===== TOAST NOTIFICATION ===== */
.toast-notification {
    position: fixed;
    bottom: 80px;
    right: 16px;
    left: 16px;
    z-index: 10000;
    padding: 12px 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    animation: slideInUp 0.3s ease-out;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .toast-notification {
        left: auto;
        right: 30px;
        bottom: 30px;
        padding: 12px 20px;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.toast-notification.toast-exit {
    animation: slideOutDown 0.3s ease-in forwards;
}

@keyframes slideOutDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}