/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1e293b;
    --text-color: #334155;
    --text-muted: #64748b;
    --bg-color: #f8fafc;
    --bg-secondary: #f1f5f9;
    --border-color: #e2e8f0;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-color);
}

.text-muted {
    color: var(--text-muted);
}

/* ==================== LAYOUT ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.page {
    display: none;
    min-height: 100vh;
    animation: fadeIn 0.5s ease-in-out;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== NAVBAR ==================== */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    color: var(--text-color);
    font-weight: 500;
}

/* ==================== BUTTONS ==================== */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--text-muted);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-text {
    background: transparent;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
}

.btn-text:hover {
    color: var(--primary-hover);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-choice {
    background: var(--white);
    border: 2px solid var(--border-color);
    color: var(--text-color);
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-choice:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--white);
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 0;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

/* Laptop Illustration */
.laptop-illustration {
    position: relative;
    width: 300px;
    height: 200px;
    margin: 0 auto 3rem;
    perspective: 1000px;
}

.laptop-base {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 350px;
    height: 10px;
    background: linear-gradient(to bottom, #cbd5e1, #94a3b8);
    border-radius: 0 0 10px 10px;
}

.laptop-screen {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    border: 8px solid #475569;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.screen-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.animated-lines {
    position: relative;
    width: 80%;
    height: 80%;
}

.line {
    position: absolute;
    height: 3px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    animation: lineMove 3s ease-in-out infinite;
}

.line-1 {
    width: 60%;
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.line-2 {
    width: 80%;
    top: 40%;
    left: 10%;
    animation-delay: 0.5s;
}

.line-3 {
    width: 50%;
    top: 60%;
    left: 25%;
    animation-delay: 1s;
}

.line-4 {
    width: 70%;
    top: 80%;
    left: 15%;
    animation-delay: 1.5s;
}

@keyframes lineMove {
    0%, 100% {
        opacity: 0.3;
        transform: translateX(-10px);
    }
    50% {
        opacity: 1;
        transform: translateX(10px);
    }
}

/* ==================== SPLIT SCREEN ==================== */
.split-screen {
    display: flex;
    min-height: calc(100vh - 70px);
}

.split-left {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--white);
}

.split-content {
    max-width: 500px;
}

.split-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    line-height: 1.2;
}

.feature-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-step {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-text {
    font-size: 1.25rem;
    font-weight: 600;
}

.split-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: var(--white);
}

/* ==================== AUTH SECTION ==================== */
.auth-section {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
}

.auth-card, .auth-box {
    background: var(--white);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 500px;
}

.auth-box {
    max-width: 600px;
}

.auth-title, .auth-heading {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    text-align: center;
}

.auth-heading {
    font-size: 2rem;
    text-align: left;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.875rem;
}

.form-control {
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

select.form-control {
    cursor: pointer;
}

.auth-divider {
    text-align: center;
    position: relative;
    margin: 1.5rem 0;
}

.auth-divider span {
    background: var(--white);
    padding: 0 1rem;
    position: relative;
    z-index: 1;
    color: var(--text-muted);
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.auth-alternative {
    margin-top: 1.5rem;
}

/* ==================== QUIZ SECTION ==================== */
.quiz-section {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
}

.quiz-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.quiz-question {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--dark-color);
}

.quiz-description {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quiz-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    border-radius: 10px;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.quiz-timer {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1rem auto;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-label:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    transform: scale(1);
}

.radio-custom {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    background: var(--white);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.radio-text {
    font-size: 1.125rem;
    color: var(--text-color);
    font-weight: 500;
}

.success-icon {
    font-size: 5rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

/* ==================== DASHBOARD ==================== */
.dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - 70px);
}

.sidebar {
    background: var(--white);
    border-right: 1px solid var(--border-color);
    padding: 2rem 0;
}

.profile-summary {
    text-align: center;
    padding: 0 2rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
}

.profile-name {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.profile-role {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.sidebar-nav {
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
}

.nav-item {
    padding: 0.875rem 2rem;
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    font-weight: 500;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

.nav-item.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.nav-item i {
    width: 20px;
}

.badge {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    margin-left: auto;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.dashboard-main {
    background: var(--bg-color);
    padding: 3rem;
    overflow-y: auto;
}

.dashboard-tab {
    display: none;
}

.dashboard-tab.active {
    display: block;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
}

.card-full {
    grid-column: 1 / -1;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.skills-chart {
    position: relative;
    height: 250px;
    margin-bottom: 1.5rem;
}

.skills-legend {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.legend-item span:nth-child(2) {
    flex: 1;
    color: var(--text-color);
}

.legend-item strong {
    color: var(--dark-color);
}

/* ==================== JOBS TABLE ==================== */
.jobs-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    text-align: left;
    padding: 1rem;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.875rem;
}

tbody td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

tbody tr:hover {
    background: var(--bg-color);
}

.match-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.match-high {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.match-medium {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.match-low {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

/* ==================== PROFILE STRENGTH ==================== */
.profile-strength-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    margin-top: 2rem;
}

.profile-strength-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.strength-bar {
    height: 12px;
    background: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #10b981);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.strength-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checklist li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-color);
}

.checklist li i {
    font-size: 1.25rem;
}

.checklist li.completed {
    color: var(--success-color);
}

.checklist li.completed i {
    color: var(--success-color);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        padding: 1rem 0;
    }

    .nav-item {
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .nav-item.active {
        border-left-color: transparent;
        border-bottom-color: var(--primary-color);
    }
}

@media (max-width: 768px) {
    .split-screen {
        flex-direction: column;
    }

    .split-left {
        min-height: 50vh;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2rem;
    }

    .split-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    .dashboard-main {
        padding: 1.5rem;
    }

    .jobs-table {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .laptop-illustration {
        width: 200px;
        height: 150px;
    }

    .laptop-screen {
        width: 200px;
        height: 120px;
    }

    .laptop-base {
        width: 230px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .quiz-card, .auth-card, .auth-box {
        padding: 1.5rem;
    }
}
