@import url('https://fonts.googleapis.com/css2?family=Zilla+Slab:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #D4AF37;
    --primary-hover: #F1C40F;
    --primary-glow: rgba(212, 175, 55, 0.4);
    --success: #2ecc71;
    --danger: #e74c3c;
    --bg-base: #0a0a0c;
    --bg-gradient: radial-gradient(circle at 0% 0%, #1a1a24 0%, #0a0a0c 100%);
    --text-main: #F3F4F6;
    --text-muted: #9CA3AF;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    --glass-highlight: inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
    --input-bg: rgba(0, 0, 0, 0.4);
    --input-focus: rgba(212, 175, 55, 0.15);
    --sidebar-width: 90px;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body.light-mode {
    --bg-base: #F5F5DC;
    --bg-gradient: radial-gradient(circle at 0% 0%, #ffffff 0%, #F5F5DC 100%);
    --text-main: #111827;
    --text-muted: #4B5563;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --glass-highlight: inset 0 1px 0 0 rgba(255, 255, 255, 0.5);
    --input-bg: rgba(255, 255, 255, 0.8);
    --input-focus: rgba(212, 175, 55, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Zilla Slab', serif !important; }

body {
    background-color: var(--bg-base);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.6;
    transition: background-color 0.5s ease, color 0.5s ease;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-weight: 600; letter-spacing: 0.5px; }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 8px; }
.subtitle { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 24px; font-weight: 400; }
.text-amber { color: var(--primary); text-shadow: 0 0 15px var(--primary-glow); }
.ats-heading-class { text-shadow: none !important; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow), var(--glass-highlight);
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--primary); color: #111; border: none; padding: 14px 32px; border-radius: 10px; font-weight: 600; font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: var(--transition-smooth); box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 25px var(--primary-glow); }
.btn-primary:disabled { opacity: 0.7; cursor: not-allowed; filter: grayscale(0.5); }

.btn-secondary {
    background: transparent; color: var(--primary); border: 2px solid var(--primary); padding: 12px 28px; border-radius: 10px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: var(--transition-smooth);
}
.btn-secondary:hover { background: var(--input-focus); box-shadow: 0 0 15px var(--primary-glow) inset; }

.theme-toggle { background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--text-main); cursor: pointer; padding: 12px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--transition-smooth); }
.theme-toggle:hover { transform: rotate(15deg) scale(1.1); border-color: var(--primary); }

.dashboard-layout { display: flex; height: 100vh; padding: 20px; gap: 24px; max-width: 1800px; margin: 0 auto; }
.sidebar { width: var(--sidebar-width); display: flex; flex-direction: column; align-items: center; padding: 30px 0; gap: 25px; border-radius: 24px; z-index: 10; }

.nav-icon { background: transparent; border: none; color: var(--text-muted); cursor: pointer; padding: 16px; border-radius: 14px; transition: var(--transition-smooth); position: relative; }
.nav-icon svg, .nav-icon i { stroke: var(--text-main) !important; width: 24px !important; height: 24px !important; }
.nav-icon:hover { color: var(--text-main); transform: translateX(5px); }
.nav-icon.active { background: var(--input-focus); box-shadow: inset 3px 0 0 var(--primary); }
.nav-icon.active svg, .nav-icon.active i { stroke: var(--primary) !important; }

.center-panel { flex-grow: 1; padding: 40px 50px; overflow-y: auto; border-radius: 24px; position: relative; }
.right-panel { width: 420px; padding: 40px; overflow-y: auto; border-radius: 24px; flex-shrink: 0; }

.form-group { margin-bottom: 28px; }
label { display: block; margin-bottom: 10px; color: var(--text-muted); font-size: 1.05rem; font-weight: 500; letter-spacing: 0.5px; }

input[type="text"], textarea, .file-input { width: 100%; padding: 18px 20px; background: var(--input-bg); border: 1px solid var(--glass-border); border-radius: 14px; color: var(--text-main); outline: none; font-size: 1.1rem; transition: var(--transition-smooth); box-shadow: inset 0 2px 4px rgba(0,0,0,0.1); }
input:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--input-focus), inset 0 2px 4px rgba(0,0,0,0.1); }
.custom-file-input { padding: 10px; background: var(--glass-bg); border: 1px dashed var(--glass-border); cursor: pointer; }
.custom-file-input::file-selector-button { background: var(--primary); border: none; padding: 8px 16px; border-radius: 8px; font-weight: bold; cursor: pointer; margin-right: 15px;}

.upload-box { position: relative; padding: 40px 20px; text-align: center; border: 2px dashed var(--glass-border); border-radius: 16px; cursor: pointer; transition: var(--transition-smooth); background: var(--glass-bg); overflow: hidden; }
.upload-box:hover { border-color: var(--primary); background: var(--input-focus); transform: translateY(-2px); }
.upload-box i { width: 48px; height: 48px; color: var(--primary); margin-bottom: 15px; transition: transform 0.3s ease; }
.upload-box:hover i { transform: scale(1.1); }
.hidden-upload { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; }

.template-cards { display: flex; gap: 20px; margin-top: 15px; }
.template-card { flex: 1; padding: 18px; background: var(--input-bg); border: 2px solid var(--glass-border); border-radius: 14px; text-align: center; cursor: pointer; transition: var(--transition-smooth); }
.template-card.active { border-color: var(--primary); background: var(--input-focus); transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.temp-preview { height: 90px; background: #fff; border-radius: 8px; margin-bottom: 12px; opacity: 0.85; transition: 0.3s ease; }
.template-card:hover .temp-preview { opacity: 1; }
.temp-preview.classic { border-top: 6px solid #333; }
.temp-preview.modern { border-left: 6px solid var(--primary); }
.temp-preview.elegant { background: linear-gradient(135deg, #f0f0f0, #d5d5d5); }

.score-card { text-align: center; padding: 40px 0; }
.score-circle { width: 160px; height: 160px; border-radius: 50%; border: 8px solid var(--primary); display: flex; align-items: center; justify-content: center; font-size: 3.5rem; font-weight: 700; margin: 0 auto 25px; color: var(--text-main); box-shadow: 0 0 30px var(--primary-glow), inset 0 0 20px rgba(0,0,0,0.5); background: var(--input-bg); position: relative; }
.score-circle::after { content: ''; position: absolute; top: -8px; left: -8px; right: -8px; bottom: -8px; border-radius: 50%; border: 2px solid var(--primary); opacity: 0.3; pointer-events: none; }
.keyword-list { list-style: none; margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.keyword-list li { background: var(--input-bg); border: 1px solid var(--glass-border); padding: 8px 16px; border-radius: 20px; font-size: 0.95rem; font-weight: 500; transition: 0.3s ease; }
.keyword-list li:hover { border-color: var(--danger); color: var(--danger); transform: translateY(-2px); }

.mt-4 { margin-top: 24px; }
.w-100 { width: 100%; }
.hidden { display: none !important; }
.tab-content { display: none; opacity: 0; transition: opacity 0.4s ease; }
.tab-content.active { display: block; animation: fadeUp 0.5s forwards; opacity: 1; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

/* Landing Page Additions */
.main-nav { display: flex; justify-content: space-between; align-items: center; padding: 24px 8%; position: relative; z-index: 100; }
.logo { font-size: 1.8rem; font-weight: 700; letter-spacing: 0.5px; }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.hero { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 100px 20px 60px 20px; min-height: 55vh; }
.hero-content { max-width: 850px; }
.hero h1 { font-size: clamp(2.8rem, 6vw, 4.8rem); line-height: 1.1; margin-bottom: 24px; }
.hero p.subtitle { font-size: 1.3rem; max-width: 700px; margin: 0 auto 40px auto; color: var(--text-muted); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; width: 100%; max-width: 1200px; margin: 0 auto; }
.feature-card { padding: 40px 35px; text-align: left; display: flex; flex-direction: column; justify-content: flex-start; transition: transform 0.3s ease-in-out; }
.feature-card:hover { transform: scale(1.05); }
.feature-card i { color: var(--primary); margin-bottom: 20px; width: 40px; height: 40px; }
.feature-card h3 { font-size: 1.5rem; margin-bottom: 12px; color: var(--text-main); }
.feature-card p { font-size: 1.05rem; line-height: 1.6; margin: 0; }