/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --gradient-brand: linear-gradient(135deg, #4F46E5, #8B5CF6);
    --danger: #EF4444;
    --bg-color: #F8FAFC;
    --card-bg: #FFFFFF;
    --text-main: #0F172A;
    --text-muted: #64748B;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Outfit', sans-serif; }

body { background-color: var(--bg-color); color: var(--text-main); line-height: 1.6; padding: 20px; }

.container { max-width: 1000px; margin: 0 auto; position: relative; }

/* ========================================== */
/* FANCY OPENING LOADER ANIMATION             */
/* ========================================== */
#page-loader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--bg-color);
    z-index: 9999;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

.loader-spinner {
    width: 60px; height: 60px;
    border: 5px solid rgba(79, 70, 229, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    margin-bottom: 20px;
}

.loader-text {
    font-size: 1.5rem; font-weight: 600;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 0.6; transform: scale(0.98); } 50% { opacity: 1; transform: scale(1.02); } }

/* ========================================== */
/* SPRINGY ENTRANCE ANIMATIONS                */
/* ========================================== */
@keyframes springUp {
    0% { opacity: 0; transform: translateY(40px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* This applies the spring animation to anything with the .animate-in class */
.animate-in { 
    animation: springUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; 
    opacity: 0; 
}

/* ========================================== */
/* CARDS & FORMS                              */
/* ========================================== */
.card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    margin-bottom: 24px;
    border: 1px solid rgba(229, 231, 235, 0.5);
}

input[type="text"], input[type="password"], input[type="file"], select, textarea {
    width: 100%; padding: 12px 16px; margin: 8px 0 16px;
    border: 2px solid #E2E8F0; border-radius: 10px;
    transition: all 0.3s ease; font-size: 1rem;
    background: #F8FAFC;
}

input:focus, select:focus, textarea:focus { 
    outline: none; border-color: var(--primary); background: white;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1); 
}

/* ========================================== */
/* PREMIUM BUTTONS                            */
/* ========================================== */
button, .btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 24px; background: var(--gradient-brand); color: white;
    border: none; border-radius: 10px; font-weight: 600; font-size: 1rem;
    text-decoration: none; cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
}

button:hover, .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}

.btn-danger { background: #EF4444; box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.2); }
.btn-danger:hover { background: #DC2626; box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.3); }

/* Utility */
.flex-between { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.text-center { text-align: center; }