:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.3);
    --secondary: #38bdf8;
    --secondary-dark: #0ea5e9;
    --accent: #f43f5e;
    --background: #0b0f1a;
    --sidebar-bg: #111827;
    --card-bg: rgba(30, 41, 59, 0.5);
    --surface: #1e293b;
    --surface-light: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.5);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --input-focus: rgba(99, 102, 241, 0.3);
    --success: #10b981;
    --warning: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
}

body {
    background-color: var(--background);
    background-image:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 60%),
        radial-gradient(at 100% 0%, hsla(225, 39%, 15%, 1) 0, transparent 60%),
        radial-gradient(at 50% 100%, hsla(339, 49%, 10%, 1) 0, transparent 60%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.7;
    font-size: 17px;
}

#app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
#app-sidebar {
    width: 300px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

#app-sidebar.hidden {
    display: none;
}

.sidebar-header {
    padding: 2.5rem 2rem;
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-nav {
    flex: 1;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nav-item {
    background: transparent;
    border: none;
    padding: 1.1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
}

.nav-item:hover {
    background: var(--surface-light);
    color: var(--text-primary);
    transform: translateX(8px);
}

.nav-item.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 25px var(--primary-glow);
}

.sidebar-footer {
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
}

#logout-btn {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s ease;
}

#logout-btn:hover {
    background: rgba(244, 63, 94, 0.1);
    color: var(--accent);
    border-color: rgba(244, 63, 94, 0.3);
}

/* Main Content Area */
#app-main {
    flex: 1;
    padding: 3.5rem;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
    overflow-y: auto;
}

h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 1rem;
}

h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 1.25rem;
}

h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Glass Cards */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

/* Dashboard Layout */
#dashboard-view {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    animation: fadeInUp 0.5s ease-out;
}

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

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.stats-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stats-card .label {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stats-card .value {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.1;
}

.stats-card .sub-value {
    font-size: 1rem;
    color: var(--success);
    font-weight: 600;
}

/* Utility Stats Row */
.stats-row .stat-card {
    padding: 2rem;
    text-align: center;
}

.stats-row .stat-label {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.stats-row .stat-value {
    font-size: 2.2rem;
    font-weight: 900;
}

/* Tags and Badges */
.tag-sm {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.badge.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.2);
}

.data-group {
    display: flex;
    flex-direction: column;
}

/* Onboarding Step Lines */
.step-line {
    transition: all 0.3s ease;
}

.step-line:hover {
    height: 6px !important;
    background: var(--primary-glow) !important;
}

.step-line.active:hover {
    background: var(--primary) !important;
    opacity: 0.8;
}

.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

/* Landing Page Styles */
.landing-page {
    width: 100%;
}

.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-text {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.95rem;
    transition: 0.3s;
}

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

.landing-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10rem 5% 6rem;
    min-height: 100vh;
    gap: 4rem;
    max-width: 1600px;
    margin: 0 auto;
}

.hero-content {
    flex: 1.2;
    max-width: 750px;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 580px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: var(--glass-border);
}

.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-main-visual {
    width: 100%;
    max-width: 550px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(99, 102, 241, 0.2);
    border: 1px solid var(--glass-border);
}

.hero-main-visual img {
    width: 100%;
    height: auto;
    display: block;
}

.floating-card {
    position: absolute;
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    animation: floating 4s ease-in-out infinite;
}

.floating-card i {
    color: var(--primary);
}

.c1 {
    top: 15%;
    left: -5%;
}

.c2 {
    bottom: 20%;
    right: -5%;
    animation-delay: 1s;
}

.c3 {
    top: 60%;
    left: -10%;
    animation-delay: 2s;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Auth Redesign */
.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 480px;
    padding: 3rem;
    text-align: center;
}

.logo-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.75rem;
    font-weight: 8s00;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
}

.auth-card h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-card .subtitle {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.social-auth {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.875rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.social-auth-mount {
    width: 100%;
    display: flex;
    justify-content: center;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.social-auth-mount iframe {
    width: 100% !important;
}

.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--text-secondary);
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

.divider span {
    padding: 0 1rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 1.25rem;
    color: var(--text-secondary);
    width: 18px;
}

.input-with-icon input {
    padding-left: 3rem !important;
}

.auth-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.forgot-pass {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer {
    margin-top: 2rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

/* Existing Forms adjustments */
.auth-container,
.onboarding-container {
    max-width: 600px;
    margin: 4rem auto;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: #1f2937;
    /* Solid background to prevent white artifacts */
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    appearance: none;
    /* Remove default browser styling */
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    padding-right: 3rem;
}

select option {
    background: #111827;
    color: white;
}

input:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--input-focus);
}

.error-msg {
    color: var(--accent);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

.btn-primary {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-text {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    padding: 0.5rem 1rem;
}

.btn-text:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background: var(--text-secondary);
}

.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.btn-enroll {
    width: auto;
    min-width: 130px;
    padding: 0.6rem 1rem;
    background: #FFFFFF;
    color: #000000;
    border: none;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-enroll:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-option {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

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

.btn-option.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.onboarding-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(56, 189, 248, 0.05) 0%, transparent 40%);
}

.onboarding-card {
    width: 100%;
    max-width: 1000px;
    padding: 4rem !important;
    margin: 0 auto;
    animation: fadeInScale 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 768px) {
    .onboarding-card {
        padding: 2.5rem 1.5rem !important;
        margin: 1rem;
    }

    .onboarding-wrapper {
        align-items: flex-start;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .onboarding-card {
        padding: 1.5rem 1rem !important;
    }
}

.suggestions-dropdown {
    background: #1f2937 !important;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    padding: 0.25rem !important;
}

/* Skill Picker Styles */
.skill-picker-card {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.skill-picker-card.active {
    background: var(--card-bg);
    border-color: var(--primary);
    box-shadow: 0 10px 25px var(--primary-glow);
}

.skill-picker-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.skill-level-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem !important;
}

.skill-level-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--input-focus);
}

.suggestion-item {
    padding: 0.8rem 1rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.suggestion-item:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.suggestion-item i {
    color: var(--primary);
    opacity: 0.7;
}

/* AI Chatbot */
#ai-chat-trigger {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 64px;
    height: 64px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5);
    z-index: 1000;
    transition: all 0.3s ease;
}

#ai-chat-trigger:hover {
    transform: scale(1.1);
}

#ai-chat-panel {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 680px;
    height: 850px;
    background: #0f172a;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    z-index: 2000;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#ai-chat-panel.hidden {
    transform: translateY(100px) scale(0.9);
    opacity: 0;
    pointer-events: none;
}

.chat-header {
    height: 60px;
    flex-shrink: 0;
    padding: 0 1.25rem;
    background: #0f172a;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header .bot-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary);
}

#chat-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 2px;
    overflow-y: auto;
    padding: 10px;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.05), transparent);
}

.message-row {
    display: flex;
    width: 100%;
    margin-bottom: 2px;
}

.message-row.bot {
    justify-content: flex-start;
}

.message-row.user {
    justify-content: flex-end;
}

.message {
    padding: 6px 10px;
    border-radius: 12px;
    max-width: 80%;
    height: auto !important;
    min-height: 0 !important;
    font-size: 0.95rem;
    line-height: 1.3;
    position: relative;
    white-space: pre-wrap;
    margin: 0 !important;
    animation: messageIn 0.3s ease-out;
}

@keyframes messageIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.bot {
    background: var(--surface-light);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--glass-border);
}

.message.user {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.chat-input-area {
    height: 65px;
    flex-shrink: 0;
    padding: 0 1rem;
    background: #0f172a;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.chat-input-area input {
    flex: 1;
    padding: 0.85rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    color: white;
    outline: none;
    transition: 0.3s;
}

.chat-input-area button {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    cursor: pointer;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hidden {
    display: none !important;
}

/* Transitions */
.view-enter {
    animation: fadeIn 0.4s ease-out forwards;
}

.fade-in {
    animation: fadeInScale 0.3s ease-out;
}

/* Dashboard Components (Specific) */
.career-match-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.match-score {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    background: conic-gradient(var(--primary) calc(var(--percentage) * 1%), rgba(255, 255, 255, 0.1) 0);
}

.match-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.match-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Steps indicator */
.steps-indicator {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.step-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.step-dot.active {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Modals & Overlays */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-card {
    background: var(--sidebar-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3rem;
    position: relative;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

/* Multi-select Chips */
.chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.chip {
    background: var(--primary);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 100px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.chip i {
    cursor: pointer;
    font-size: 1rem;
}

/* Confidence tag */
.confidence-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
}

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

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

.confidence-low {
    background: rgba(244, 63, 94, 0.1);
    color: var(--accent);
}

/* Timeline UI */
.roadmap-timeline {
    position: relative;
    padding-left: 2rem;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--glass-border);
}

.timeline-step {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-step::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--background);
    transform: translateX(-50%);
}

/* Roadmap Timeline */
.roadmap-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    padding-left: 1rem;
}

.roadmap-container::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: var(--glass-border);
}

.roadmap-step {
    display: flex;
    gap: 2rem;
    position: relative;
}

.step-marker {
    width: 36px;
    height: 36px;
    background: var(--surface);
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--text-secondary);
    z-index: 1;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.roadmap-step.active .step-marker {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 20px var(--primary-glow);
}

.step-content {
    flex: 1;
    padding-bottom: 2rem;
}

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

.step-content h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0.5rem 0 1rem;
}

.step-action {
    margin-top: 1rem;
}

/* Confidence Tags */
.confidence-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.confidence-high {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.confidence-medium {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.confidence-low {
    background: rgba(244, 63, 94, 0.1);
    color: var(--accent);
    border: 1px solid rgba(244, 63, 94, 0.2);
}

/* Skill Items */
.skill-item {
    padding: 0.5rem 0;
}

/* AI Chat Enhancements */
.message-bot-container {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bot-tag {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    margin-left: 0.5rem;
}

/* Comparison Tool */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.comparison-table th,
.comparison-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.comparison-table th {
    font-weight: 800;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.02);
}

.comparison-table td:first-child {
    font-weight: 700;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.01);
    width: 200px;
}

/* Insights & Library */
.insights-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.insights-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.1);
}

.tag-sm {
    padding: 0.25rem 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.learning-path-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1.5rem 0.5rem 1.5rem 0;
    /* Clear space for badges and scrollbar */
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    /* Hide scrollbars for IE/Edge */
    scrollbar-width: none;
    /* Hide scrollbars for Firefox */
}

.learning-path-scroll::-webkit-scrollbar {
    display: none;
    /* Hide scrollbars for Chrome/Safari */
}

.course-card-premium {
    min-width: 300px;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.course-badge {
    position: absolute;
    top: -10px;
    left: 1.5rem;
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 900;
}

.course-details {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.course-price-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

/* Notifications */
.notification-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.notification-item.unread {
    border-left: 3px solid var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.notif-icon {
    width: 36px;
    height: 36px;
    background: var(--surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

/* Location Searchable Selects */
.location-select {
    width: 100%;
    padding: 1rem;
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: #f3f4f6;
    /* Force light text for dark mode */
    font-size: 1rem;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
}

.location-select:hover:not(:disabled) {
    border-color: var(--primary);
    background-color: rgba(31, 41, 55, 1);
}

.location-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.location-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-image: none;
}

/* Fix visibility of option elements in some browsers */
.location-select option {
    background-color: #111827;
    color: #f3f4f6;
    padding: 10px;
}

/* Dashboard Graphics & Components */
.dashboard-grid {
    animation: fadeIn 0.4s ease-out;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
}

.metric-info .label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.metric-info .value {
    font-size: 2.2rem;
    font-weight: 900;
    margin: 0.5rem 0;
}

.skill-item-progress {
    margin-bottom: 1.5rem;
}

.progress-container {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-bar.learning {
    background: var(--secondary);
    opacity: 0.6;
}

.action-item {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    margin-bottom: 1rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.action-item:hover {
    transform: translateX(5px);
    border-color: rgba(99, 102, 241, 0.3);
}

.action-item i {
    width: 24px;
    height: 24px;
}

.icon-success {
    color: #10b981;
}

.icon-pending {
    color: var(--text-secondary);
}

.btn-option {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

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

/* Charts Customization */
canvas {
    max-width: 100%;
}

/* Animations */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cleanup of late-file duplicate removed */

/* Responsive Fixes */
@media (max-width: 1024px) {
    .app-layout {
        grid-template-columns: 1fr;
    }

    #app-sidebar.sidebar {
        display: none !important;
    }

    .main-content {
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    .metrics-grid {
        grid-template-columns: 1fr !important;
    }

    h1 {
        font-size: 1.75rem;
    }
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 10000;
    pointer-events: none;
}

.toast {
    background: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1rem 1.75rem;
    min-width: 320px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    pointer-events: all;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    border-left: 4px solid var(--primary);
    animation: toastIn 0.5s forwards;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.toast-error {
    border-left-color: var(--accent);
}

.toast-success {
    border-left-color: var(--success);
}

.toast-warning {
    border-left-color: var(--warning);
}

.toast i {
    width: 20px;
    height: 20px;
}

.toast-error i {
    color: var(--accent);
}

.toast-success i {
    color: var(--success);
}

.toast-warning i {
    color: var(--warning);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}