/* --- QUATIM AI PREMIUM PORTAL CSS (V4.0) --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700&display=swap');

:root {
    --bg-color: #F8FAFC;
    --slate-900: #0F172A;
    --slate-700: #334155;
    --slate-500: #64748B;
    --slate-300: #CBD5E1;
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.03);
    --shadow-hover: 0 30px 60px rgba(0, 0, 0, 0.06);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    background-color: var(--bg-color); 
    color: var(--slate-700); 
    font-family: var(--font-body); 
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-heading); color: var(--slate-900); font-weight: 600; }

/* 🌊 BACKGROUND ANIMATION */
.bg-scene {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; overflow: hidden; background: #ffffff;
}
.bg-scene::after {
    content: ''; position: absolute; width: 100%; height: 100%;
    background-image: linear-gradient(#E2E8F0 1px, transparent 1px), linear-gradient(90deg, #E2E8F0 1px, transparent 1px);
    background-size: 40px 40px; opacity: 0.3;
}
.glow-orb {
    position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.5;
    animation: driftGlow 15s ease-in-out infinite alternate;
}
.orb-1 { top: -10%; left: 10%; width: 40vw; height: 40vw; background: rgba(79, 70, 229, 0.1); }
.orb-2 { bottom: -10%; right: 10%; width: 35vw; height: 35vw; background: rgba(14, 165, 233, 0.08); animation-delay: -7s; }

@keyframes driftGlow {
    0% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    50% { opacity: 0.6; }
    100% { transform: translate(100px, 100px) scale(1.1); opacity: 0.4; }
}

/* 🪟 PREMIUM CARD & INPUTS */
.premium-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 48px;
    box-shadow: var(--shadow-premium);
    width: 100%;
}
.card-header { text-align: center; margin-bottom: 35px; }
.card-header h1 { font-size: 2rem; letter-spacing: -1px; margin-bottom: 8px; }
.card-header p { font-size: 1rem; color: var(--slate-500); font-weight: 300; }

.input-group { margin-bottom: 22px; width: 100%; }
.input-label { display: block; font-size: 0.9rem; font-weight: 500; color: var(--slate-900); margin-bottom: 8px; }

.premium-input {
    width: 100%; padding: 14px 16px; border-radius: 12px;
    border: 1px solid var(--slate-300); background-color: #ffffff;
    font-family: var(--font-body); font-size: 0.95rem; color: var(--slate-900);
    transition: all 0.2s ease;
}
.premium-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1); }

/* 🎀 BUTTONS */
.btn-primary {
    width: 100%; background-color: var(--primary); color: #ffffff;
    padding: 16px 20px; border-radius: 12px; border: none; cursor: pointer;
    font-family: var(--font-heading); font-weight: 600; font-size: 1rem;
    transition: all 0.3s ease; box-shadow: 0 8px 20px rgba(79, 70, 229, 0.2);
}
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-3px); }
.btn-primary:disabled { background-color: var(--slate-300); cursor: not-allowed; box-shadow: none; transform: none; }

/* 🎬 ANIMATIONS */
.fade-in-up { animation: fadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards; opacity: 0; transform: translateY(30px) scale(0.98); }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0) scale(1); } }

/* 🌗 SPLIT SCREEN LAYOUT */
.split-layout { display: flex; width: 100%; min-height: 100vh; }
.split-left { flex: 1; position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px; z-index: 1; }
.split-right { flex: 1; display: flex; justify-content: center; align-items: center; padding: 40px 20px; z-index: 10; background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(10px); border-left: 1px solid rgba(255,255,255,0.6); }

/* 🛸 FLOATING GLASS ELEMENTS (With Fade Transition for JS) */
.float-card {
    position: absolute; background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9); padding: 16px 24px; border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.04); font-family: var(--font-heading);
    font-weight: 600; color: var(--slate-700); display: flex; align-items: center; gap: 10px;
    transition: opacity 0.5s ease; /* Smooth text change fade */
}
.fc-1 { top: 25%; left: 15%; animation: floatAnim 6s ease-in-out infinite; }
.fc-2 { bottom: 30%; right: 15%; animation: floatAnim 8s ease-in-out infinite reverse; }
@keyframes floatAnim { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-20px); } }

/* ✍️ CUSTOM TAGS & FILE UPLOAD (OVERLAP FIXES) */
.custom-tag-wrapper { display: flex; gap: 10px; margin-top: 12px; width: 100%; flex-wrap: wrap; }
.custom-tag-input { flex: 1; min-width: 150px; padding: 10px 16px; border-radius: 20px; border: 1px dashed var(--slate-300); font-size: 0.85rem; font-family: var(--font-body); outline: none; transition: all 0.2s; }
.custom-tag-input:focus { border-color: var(--primary); background: #F8FAFC; border-style: solid; }
.btn-add-tag { background: var(--slate-900); color: white; border: none; border-radius: 20px; padding: 8px 20px; font-size: 0.8rem; font-weight: 600; cursor: pointer; white-space: nowrap; }

/* 📱 MOBILE RESPONSIVENESS */
@media (max-width: 991px) {
    .split-layout { flex-direction: column; }
    .split-left { display: none; } 
    .split-right { border-left: none; padding: 20px 10px; }
    .premium-card { padding: 30px 20px; width: 100%; border-radius: 16px; }
    .custom-tag-wrapper { flex-direction: column; }
    .btn-add-tag { width: 100%; padding: 12px; }
}