/* Talents Mapping — Clean & Professional CSS */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #a5b4fc;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --bg: #f8fafc;
    --bg-dark: #0f172a;
    --card: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); font-size: 0.875rem; }
.text-danger { color: var(--danger) !important; }
.text-accent { color: var(--accent); }

/* Navigation */
.navbar {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.25rem; color: var(--text); }
.logo-icon { color: var(--primary); font-size: 1.5rem; }
.nav-menu { display: flex; align-items: center; gap: 0.75rem; }
.nav-link { padding: 0.5rem 0.75rem; color: var(--text-muted); font-weight: 500; font-size: 0.9rem; border-radius: 8px; transition: all 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--primary); background: #eef2ff; }
.nav-user { padding: 0.5rem 0.75rem; color: var(--text-muted); font-size: 0.85rem; }
.nav-user i { margin-right: 0.35rem; }

.hamburger { display: none; background: none; border: none; font-size: 1.5rem; color: var(--text); cursor: pointer; padding: 0.5rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.625rem 1.25rem; font-size: 0.9rem; font-weight: 600; border-radius: 8px; border: 2px solid transparent; cursor: pointer; transition: all 0.2s; text-decoration: none; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-secondary { background: #f1f5f9; color: var(--text); }
.btn-secondary:hover { background: #e2e8f0; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #dc2626; }
.btn-warning { background: var(--warning); color: white; }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8rem; }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 600; border-radius: 999px; background: #eef2ff; color: var(--primary); }
.badge-success { background: #d1fae5; color: #059669; }
.badge-warning { background: #fef3c7; color: #d97706; }
.badge-secondary { background: #f1f5f9; color: #64748b; }

/* Alert */
.alert { padding: 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.9rem; display: flex; align-items: center; gap: 0.5rem; }
.alert-error { background: #fef2f2; color: var(--danger); border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #059669; border: 1px solid #bbf7d0; }

/* Landing Page */
.landing { background: white; }
.hero {
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, #eef2ff 0%, #faf5ff 50%, #fdf2f8 100%);
}
.hero-content { display: flex; align-items: center; gap: 3rem; }
.hero-text { flex: 1; }
.hero-text h1 { font-size: 3rem; font-weight: 800; line-height: 1.2; margin: 1rem 0 1.5rem; }
.hero-text p { font-size: 1.125rem; color: var(--text-muted); max-width: 540px; line-height: 1.7; }
.hero-actions { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-visual { flex: 1; display: flex; justify-content: center; }

.hexagon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.hex { width: 80px; height: 80px; background: var(--primary); color: white; font-weight: 800; font-size: 1.5rem; display: flex; align-items: center; justify-content: center; clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); }
.h1 { background: #6366f1; }
.h2 { background: #8b5cf6; }
.h3 { background: #a78bfa; }
.h4 { background: #f59e0b; }
.h5 { background: #10b981; }
.h6 { background: #3b82f6; }
.h7 { background: #ef4444; }

/* Sections */
.section { padding: 5rem 0; }
.section-dark { background: var(--bg-dark); color: white; }
.section-dark .section-header p { color: #94a3b8; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.section-header h2 { font-size: 2.25rem; font-weight: 700; margin-bottom: 1rem; }
.section-header p { color: var(--text-muted); font-size: 1.125rem; line-height: 1.7; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.feature-card { 
    background: white; padding: 2rem; border-radius: var(--radius); 
    box-shadow: var(--shadow); text-align: center; border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.fc-icon { width: 64px; height: 64px; background: #eef2ff; color: var(--primary); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; margin: 0 auto 1rem; }
.feature-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.benefit-item { 
    background: rgba(255,255,255,0.05); padding: 2rem; border-radius: var(--radius);
    text-align: center; border: 1px solid rgba(255,255,255,0.1);
}
.benefit-item i { font-size: 2rem; color: var(--accent); margin-bottom: 0.75rem; }
.benefit-item h4 { color: white; font-size: 1rem; }

.steps { display: flex; align-items: center; justify-content: center; gap: 2rem; }
.step { text-align: center; max-width: 280px; }
.step-number { width: 56px; height: 56px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; margin: 0 auto 1rem; }
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--text-muted); font-size: 0.9rem; }
.step-connector { color: var(--primary); font-size: 1.5rem; }

.cta-section { background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%); }
.cta-content { text-align: center; color: white; }
.cta-content h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.cta-content p { font-size: 1.125rem; margin-bottom: 2rem; opacity: 0.9; }
.cta-content .btn-primary { background: white; color: var(--primary); }

/* Footer */
.footer { background: var(--bg-dark); color: #94a3b8; padding: 4rem 0 2rem; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .logo-text { color: white; font-size: 1.25rem; }
.footer-brand p { margin-top: 0.75rem; font-size: 0.9rem; }
.footer-links h4 { color: white; margin-bottom: 1rem; font-size: 0.9rem; }
.footer-links a { display: block; color: #94a3b8; margin-bottom: 0.5rem; font-size: 0.85rem; }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; text-align: center; font-size: 0.8rem; }

/* Auth Pages */
.auth-page { background: linear-gradient(135deg, #eef2ff, #faf5ff); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.auth-container { width: 100%; max-width: 440px; }
.auth-logo { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 2rem; font-size: 1.5rem; font-weight: 700; color: var(--text); text-decoration: none; }
.auth-card { background: white; padding: 2.5rem; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.auth-card h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; }
.auth-subtitle { color: var(--text-muted); margin-bottom: 2rem; font-size: 0.9rem; }

.auth-form .form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 0.5rem; color: var(--text); }
.form-group input { width: 100%; padding: 0.75rem 1rem; border: 2px solid var(--border); border-radius: 8px; font-size: 0.9rem; font-family: inherit; transition: border-color 0.2s; }
.form-group input:focus { outline: none; border-color: var(--primary); }
.auth-footer-text { text-align: center; margin-top: 1.5rem; font-size: 0.9rem; color: var(--text-muted); }

/* Main Content */
.main-content { padding: 2.5rem 0; min-height: calc(100vh - 64px); }
.page-header { margin-bottom: 2rem; }
.page-header h1 { font-size: 1.75rem; font-weight: 700; }
.page-header p { color: var(--text-muted); margin-top: 0.5rem; }

/* Dashboard Grid */
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.dashboard-grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; }

/* Cards */
.card { background: white; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); overflow: hidden; }
.card-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.card-header h3 { font-size: 1.1rem; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; }
.card-body { padding: 1.5rem; }
.card-wide { grid-column: 1 / -1; }

/* Status Card */
.status-card { text-align: center; padding: 2rem 1.5rem; }
.status-icon { margin-bottom: 1rem; }
.status-msg { margin-bottom: 1.5rem; color: var(--text-muted); }

/* Info Row */
.info-row { display: flex; justify-content: space-between; padding: 0.75rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.info-row:last-child { border-bottom: none; }
.info-label { font-weight: 600; color: var(--text-muted); }

/* Top 7 */
.top7-list { display: flex; flex-direction: column; gap: 0.5rem; }
.top7-item { display: flex; align-items: center; gap: 1rem; padding: 0.75rem; border-radius: 8px; background: #f8fafc; }
.top7-rank { width: 32px; height: 32px; background: var(--primary); color: white; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; flex-shrink: 0; }
.top7-info { flex: 1; }
.top7-info strong { display: block; font-size: 0.9rem; }
.top7-info small { color: var(--text-muted); font-size: 0.8rem; }
.top7-score { font-weight: 700; color: var(--primary); }

/* Statistics */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 2rem; }
.stat-card { background: white; border-radius: var(--radius); padding: 1.5rem; display: flex; align-items: center; gap: 1rem; box-shadow: var(--shadow); border: 1px solid var(--border); }
.stat-icon { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.stat-value { display: block; font-size: 1.75rem; font-weight: 700; line-height: 1; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); }

/* Tables */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th, .data-table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.data-table th { font-weight: 600; color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; background: #f8fafc; }
.data-table tr:hover td { background: #f8fafc; }

/* Question Cards */
.question-card { background: white; border: 2px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1rem; transition: all 0.2s; }
.question-card.answered { border-color: #bbf7d0; background: #f0fdf4; }
.q-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.q-number { font-weight: 700; color: var(--primary); font-size: 0.85rem; }
.q-statement { font-size: 1rem; font-weight: 500; margin-bottom: 1rem; line-height: 1.6; }
.q-options { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.q-option { 
    display: flex; align-items: center; gap: 0.35rem; padding: 0.5rem 0.75rem; 
    border: 2px solid var(--border); border-radius: 8px; cursor: pointer; 
    font-size: 0.8rem; transition: all 0.2s; flex: 1; min-width: 100px;
}
.q-option:hover { border-color: var(--primary-light); }
.q-option.selected { border-color: var(--primary); background: #eef2ff; }
.q-option input { display: none; }
.q-option .opt-num { font-weight: 700; color: var(--primary); }
.q-option .opt-label { color: var(--text-muted); }

/* Progress Bar */
.progress-container { background: white; border-radius: var(--radius); padding: 1rem 1.5rem; margin-bottom: 1.5rem; box-shadow: var(--shadow); border: 1px solid var(--border); }
.progress-info { display: flex; justify-content: space-between; margin-bottom: 0.75rem; font-size: 0.9rem; }
.progress-bar { height: 8px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--primary); border-radius: 999px; transition: width 0.3s ease; }

/* Submit Area */
.submit-area { text-align: center; padding: 2rem; margin-top: 1.5rem; background: white; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.progress-summary { font-size: 1.1rem; margin-bottom: 1rem; color: var(--text-muted); }
.progress-summary span:first-child { font-weight: 700; color: var(--primary); }

/* Results */
.result-section { margin-bottom: 2.5rem; }
.result-section h2 { font-size: 1.5rem; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.section-desc { color: var(--text-muted); margin-bottom: 1.5rem; }
.top7-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; }
.top7-card { background: white; border-radius: var(--radius); padding: 1.25rem; text-align: center; box-shadow: var(--shadow); border: 1px solid var(--border); }
.top7-rank-badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.7rem; font-weight: 700; background: #d1fae5; color: #059669; margin-bottom: 0.5rem; }
.top7-card h3 { font-size: 1rem; font-weight: 700; }
.theme-name { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.score-bar { height: 6px; background: #e2e8f0; border-radius: 999px; overflow: hidden; margin-bottom: 0.5rem; }
.score-fill { height: 100%; background: var(--primary); border-radius: 999px; }
.score-value { font-size: 0.8rem; font-weight: 700; color: var(--primary); }

.rankings-table { width: 100%; }
.rank-header { display: grid; grid-template-columns: 60px 1fr 80px 100px; gap: 0.5rem; padding: 0.75rem 1rem; font-weight: 600; font-size: 0.8rem; color: var(--text-muted); border-bottom: 2px solid var(--border); }
.rank-row { display: grid; grid-template-columns: 60px 1fr 80px 100px; gap: 0.5rem; padding: 0.75rem 1rem; align-items: center; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.rank-row:hover { background: #f8fafc; }
.rank-row.top { background: #f0fdf4; }
.rank-row.mid { background: #eff6ff; }
.rank-num { font-weight: 700; }
.rank-theme strong { display: block; }
.rank-theme small { color: var(--text-muted); font-size: 0.75rem; }
.rank-score { font-weight: 600; }
.cat-badge { padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.7rem; font-weight: 600; }
.cat-cipta { background: #dbeafe; color: #2563eb; }
.cat-rasa { background: #fce7f3; color: #db2777; }
.cat-karsa { background: #fef3c7; color: #d97706; }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.cat-card { background: white; border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--border); box-shadow: var(--shadow); }
.cat-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.cat-card p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1rem; }
.cat-themes { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cat-theme-tag { padding: 0.35rem 0.75rem; border-radius: 6px; font-size: 0.8rem; font-weight: 600; background: #f1f5f9; display: flex; align-items: center; gap: 0.35rem; }
.cat-theme-tag small { color: var(--text-muted); font-weight: 400; }
.badge-theme { display: inline-flex; padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.7rem; font-weight: 600; background: #eef2ff; color: var(--primary); }

/* Quick Actions */
.quick-actions { display: flex; flex-direction: column; gap: 0.75rem; }
.qa-btn { display: flex; align-items: center; gap: 0.75rem; padding: 1rem; border-radius: 8px; background: #f8fafc; border: 1px solid var(--border); font-weight: 500; color: var(--text); transition: all 0.2s; }
.qa-btn:hover { background: #eef2ff; border-color: var(--primary); color: var(--primary); }
.qa-btn i { width: 20px; text-align: center; }

/* Recent List */
.recent-list { display: flex; flex-direction: column; gap: 0.75rem; }
.recent-item { display: flex; align-items: center; gap: 1rem; padding: 0.75rem; border-radius: 8px; background: #f8fafc; }
.recent-avatar { width: 40px; height: 40px; background: #eef2ff; color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.recent-info { flex: 1; }
.recent-info strong { display: block; font-size: 0.9rem; }
.recent-info small { color: var(--text-muted); font-size: 0.8rem; }
.recent-themes { display: flex; gap: 0.35rem; }
.mini-badge { padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.7rem; font-weight: 600; background: #d1fae5; color: #059669; }

/* Responsive */
@media (max-width: 768px) {
    .hero-content { flex-direction: column; text-align: center; }
    .hero-text h1 { font-size: 2rem; }
    .hero-actions { justify-content: center; }
    .hero-visual { display: none; }
    .features-grid, .benefits-grid { grid-template-columns: 1fr; }
    .steps { flex-direction: column; gap: 1rem; }
    .step-connector { transform: rotate(90deg); }
    .footer-content { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .dashboard-grid-2 { grid-template-columns: 1fr; }
    .cat-grid { grid-template-columns: 1fr; }
    .q-options { flex-direction: column; }
    .rank-header, .rank-row { grid-template-columns: 40px 1fr 60px 80px; font-size: 0.8rem; }
    .nav-menu { display: none; position: absolute; top: 64px; left: 0; right: 0; background: white; flex-direction: column; padding: 1rem; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); }
    .nav-menu.open { display: flex; }
    .hamburger { display: block; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .top7-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Print */
@media print {
    .navbar, .hamburger, .btn, .footer { display: none !important; }
    .main-content { padding: 0; }
    .card { box-shadow: none; border: 1px solid #ddd; }
}
