/* =============================================== */
/* FARSIGHT - MASTER STYLESHEET V5.1 (FINAL)       */
/* =============================================== */

/* === 1. FONDASI & VARIABEL === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --primary-color: #2563eb; --primary-hover: #1d4ed8;
    --primary-light: #dbeafe; --primary-dark: #1e40af;
    --danger-color: #dc2626; --danger-hover: #b91c1c;
    --success-color: #16a34a; --success-hover: #15803d;
    --warning-color: #d97706; --warning-hover: #b45309;
    --background-color: #f8fafc; --card-bg-color: #ffffff;
    --header-bg-color: rgba(255, 255, 255, 0.95);
    --text-primary: #0f172a; --text-secondary: #64748b;
    --text-muted: #94a3b8; --text-light: #cbd5e1;
    --border-color: #e2e8f0; --border-light: #f1f5f9;
    --shadow-color: rgba(15, 23, 42, 0.08);
    --shadow-hover: rgba(15, 23, 42, 0.12);
    --overlay-color: rgba(15, 23, 42, 0.5);
}
[data-theme='dark'] {
    --primary-color: #3b82f6; --primary-hover: #2563eb;
    --primary-light: #1e3a8a; --primary-dark: #1e40af;
    --danger-color: #ef4444; --danger-hover: #dc2626;
    --success-color: #22c55e; --success-hover: #16a34a;
    --warning-color: #f59e0b; --warning-hover: #d97706;
    --background-color: #0f172a; --card-bg-color: #1e293b;
    --header-bg-color: rgba(30, 41, 59, 0.95);
    --text-primary: #f8fafc; --text-secondary: #cbd5e1;
    --text-muted: #94a3b8; --text-light: #64748b;
    --border-color: #334155; --border-light: #475569;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(0, 0, 0, 0.4);
    --overlay-color: rgba(0, 0, 0, 0.7);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Poppins', sans-serif; background-color: var(--background-color);
    color: var(--text-primary); line-height: 1.7;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* === 2. KOMPONEN UMUM === */
main { max-width: 1600px; margin: 1rem auto; padding: 0 0.8rem; }
.hidden { display: none !important; }
.card { background: var(--card-bg-color); border: 1px solid var(--border-color); border-radius: 16px; box-shadow: 0 4px 12px 0 var(--shadow-color); padding: 30px; }
.button-primary, .button-secondary, .button-danger, .icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 22px; border-radius: 8px; border: none; text-decoration: none;
    font-weight: 500; font-size: 1rem; cursor: pointer; transition: all 0.2s ease;
}
.button-primary { background-color: var(--primary-color); color: white; }
.button-secondary { background-color: #6c757d; color: white; }
.button-danger { background-color: var(--danger-color); color: white; }
.icon-btn { background: none; color: var(--text-primary); padding: 5px; border-radius: 50%; }
.icon-btn:hover { background-color: var(--border-color); }

/* === 3. HEADER & LAYOUT APLIKASI === */
header {
    background-color: var(--header-bg-color); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 1000;
    padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center;
}
.header-link { text-decoration: none; color: var(--text-primary); font-weight: 700; font-size: 1.5rem; }
.main-app-nav .profile-link img { width: 40px; height: 40px; border-radius: 50%; }

/* ########################### */
/* DASHBOARD (Farsight Style) */
/* ########################### */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 25px;
}
.card h4, .card h5 {
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-primary);
}
.card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
.link-arrow {
    display: inline-block;
    margin-top: 10px;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}
.link-arrow:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}
.card-main-task {
    border: 2px solid var(--primary-color);
    background: linear-gradient(to bottom right, rgba(74,144,226,0.05), var(--card-bg-color));
}
.dashboard-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.dashboard-content .subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 25px;
}
.dashboard-layout, .settings-layout { display: flex; gap: 30px; align-items: flex-start; }
.dashboard-sidebar, .settings-sidebar { flex: 0 0 280px; position: sticky; top: 110px; }
.dashboard-content, .settings-content { flex: 1; }

.sidebar-nav .nav-link { display: flex; align-items: center; gap: 12px; padding: 12px; text-decoration: none; border-radius: 8px; margin-bottom: 5px; color: var(--text-secondary); font-weight: 500; }
.sidebar-nav .nav-link.active { background-color: var(--primary-color); color: white; }

/* === 4. POP-UP MODAL === */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex; justify-content: center; align-items: center;
    z-index: 9999;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.visible { opacity: 1; visibility: visible; }
.modal-box { width: 90%; max-width: 450px; text-align: center; transform: scale(0.9); transition: transform 0.3s ease; }
.modal-overlay.visible .modal-box { transform: scale(1); }
.modal-actions { display: flex; justify-content: center; gap: 15px; margin-top: 25px; }

/* === 5. HALAMAN CHATBOT === */
.chat-page-container.full-screen {
    max-width: none; margin: 0; height: calc(100vh - 81px);
    display: flex; flex-direction: column;
    position: relative; overflow: hidden;
}
.chat-history-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 3000; width: 300px; padding: 15px;
    background-color: var(--card-bg-color); border-right: 1px solid var(--border-color);
    display: flex; flex-direction: column;
    transform: translateX(-100%); transition: transform 0.3s ease-in-out;
}
.chat-history-sidebar.visible { transform: translateX(0); box-shadow: 5px 0 25px rgba(0,0,0,0.2); }
.sidebar-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0,0,0,0.6);
    z-index: 2999; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.sidebar-overlay.visible { opacity: 1; visibility: visible; }
.sidebar-header { display: flex; justify-content: space-between; align-items: center; padding: 10px; margin-bottom: 10px; }
#close-sidebar-btn { font-size: 2rem; line-height: 1; }
.chat-header {
    border-bottom: 1px solid var(--border-color);
    padding: 12px 20px;
    z-index: 100;
    background: var(--background-color);
    display: flex; justify-content: space-between; align-items: center;
}
.chat-header-left { display: flex; align-items: center; gap: 15px; }

/* Chatbot Edit Button */
.chat-message .edit-btn, .edit-btn {
    padding: 5px 10px;
    border: none;
    background-color: transparent;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.chat-message .edit-btn:hover , .edit-btn {
    background-color: rgba(74, 144, 226, 0.1);
    color: var(--primary-hover);
}

/* Chatbot Input */
textarea#chat-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-primary);
    background-color: var(--card-bg-color);
    resize: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
textarea#chat-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
    outline: none;
}
textarea#chat-input::placeholder {
    color: var(--text-secondary);
    font-style: italic;
}
.chat-input-area { 
    border-top: 1px solid var(--border-color);
    padding: 15px; max-width: 1200px; width: 100%; margin: 0 auto;
    background: var(--background-color);
    display: flex; gap: 10px;
}
.chat-input-area input[type="text"] {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-primary);
    background-color: var(--card-bg-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.chat-input-area input[type="text"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
    outline: none;
}
.chat-input-area button {
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.chat-input-area button:hover { background-color: var(--primary-hover); }

/* =============================== */
/* CHAT MESSAGE STYLES (Chat Bubble) */
/* =============================== */
.chat-window {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 10px;
    background: var(--background-color);
    flex-grow: 1;
    overflow-y: auto;
}
.message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 75%;
}
.message .avatar {
    width: 36px; height: 36px;
    border-radius: 50%; object-fit: cover;
}
.bubble {
    padding: 16px 27px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
    word-wrap: break-word;
    box-shadow: 0 2px 6px var(--shadow-color);
}
.message.ai {
    flex-direction: row;
    align-self: flex-start;
    
}
.message.ai .bubble {
    background: var(--card-bg-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-top-left-radius: 4px;
}
.message.user {
    flex-direction: row-reverse;
    align-self: flex-end;
}
.message.user .bubble {
    background: var(--primary-color);
    color: #fff;
    border-top-right-radius: 4px;
}
@media (max-width: 768px) {
    .message { max-width: 90%; }
}

/* ########################### */
/* SESSION LIST (Farsight Style) */
/* ########################### */
.session-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    background: var(--card-bg-color);
    border-radius: 12px;
    box-shadow: 0 2px 6px var(--shadow-color);
    border: 1px solid var(--border-color);
    max-width: 280px;
}
.session-list .session-item {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    color: var(--text-secondary);
    background: var(--card-bg-color);
    transition: all 0.25s ease;
    border: 1px solid var(--border-color);
}
.session-list .session-item:hover {
    background: rgba(74, 144, 226, 0.1);
    color: rgba(10, 160, 240, 0.79);
    border-color: var(--primary-color);
}
.session-list .session-item.active {
    background: rgb(255, 10, 10);
    color: #ffffff;
    font-weight: 600;
    border-color: var(--primary-hover);
    box-shadow: 0 2px 6px rgb(255, 0, 0);
}

/* =============================== */
/* CHAT SESSION TITLE (editable)   */
/* =============================== */
#session-title-container {
    display: flex;
    align-items: center;
    gap: 8px;
}
#session-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}
#session-title-input {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--card-bg-color);
    color: var(--text-primary);
    outline: none;
    min-width: 180px;
    max-width: 100%;
    transition: all 0.2s ease;
}
#session-title-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74,144,226,0.2);
}

/* Tambahkan ini ke file CSS Anda */

.session-list {
    flex-grow: 1; /* Membuat list mengisi sisa ruang */
    overflow-y: auto; /* INI KUNCINYA: Menambahkan scroll jika konten meluap */
    padding-bottom: 20px; /* Memberi sedikit ruang di bawah */
}

/* ============================== */
/* MAIN APP NAV (Farsight Style)  */
/* ============================== */
.main-app-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}
.main-app-nav a {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

/* --- Onboarding --- */
.onboarding-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.onboarding-container { background: var(--card-bg-color); border-radius: 24px; padding: 50px; text-align: center; max-width: 700px; box-shadow: 0 10px 40px var(--shadow-color); }
.onboarding-step { display: none; }
.onboarding-step.active { display: block; animation: fadeIn 0.5s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.onboarding-step h3 { font-size: 2rem; font-weight: 700; margin-bottom: 30px; line-height: 1.4; }
.answer-options { display: flex; flex-direction: column; gap: 15px; max-width: 450px; margin: 30px auto 0; }
.answer-options button { padding: 15px; font-size: 1rem; cursor: pointer; border: 2px solid var(--border-color); background-color: transparent; color: var(--text-primary); border-radius: 12px; font-weight: 500; transition: all 0.2s ease; display: flex; align-items: center; gap: 10px; text-align: left; }
.answer-options button:hover { border-color: var(--primary-color); background-color: rgba(74, 144, 226, 0.1); }

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 16px 0;
  }
  
  .input-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--label-color);
  }
  
  #name-input {
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    outline: none;
    transition: all 0.25s ease;
    background: var(--bg-input);
    color: var(--text-color);
    margin: 6px ;
  }
  
  /* Hover */
  #name-input:hover {
    border-color: var(--hover-border);
    background: var(--hover-bg);
  }
  
  /* Fokus */
  #name-input:focus {
    border-color: #3b82f6; /* biru ala Tailwind */
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
    background: var(--focus-bg);
  }
  
  /* ========================= */
  /* THEME VARIABLES */
  /* ========================= */
  :root {
    --bg-input: #fafafa;
    --focus-bg: #fff;
    --hover-bg: #fff;
    --border-color: #e0e0e0;
    --hover-border: #bbb;
    --text-color: #222;
    --label-color: #444;
  }
  
  .dark-mode {
    --bg-input: #1e1e1e;
    --focus-bg: #2a2a2a;
    --hover-bg: #2a2a2a;
    --border-color: #333;
    --hover-border: #555;
    --text-color: #f0f0f0;
    --label-color: #bbb;
  }

/* =============================================== */
/* LANDING PAGE STYLES */
/* =============================================== */

/* Landing Page Body */
.landing-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
}

/* Landing Header */
.landing-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.landing-header .header-link {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4A90E2, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.landing-header nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.landing-header nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.landing-header nav a:hover {
    background: rgba(74, 144, 226, 0.1);
    color: var(--primary-color);
}

.landing-header .button-primary {
    background: linear-gradient(135deg, #4A90E2, #5A9EEE);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    transition: all 0.3s ease;
}

.landing-header .button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

/* Hero Section */
.hero-section {
    padding: 4rem 2rem;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff, #f0f8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-cta {
    background: linear-gradient(135deg, #ffffff, #f8f9ff);
    color: #4A90E2;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.4);
}

.hero-learn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.hero-learn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    max-width: 350px;
    width: 100%;
}

.card-header {
    background: #f8f9fa;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.card-dots {
    display: flex;
    gap: 0.5rem;
}

.card-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #dee2e6;
}

.card-dots span:first-child { background: #ff5f57; }
.card-dots span:nth-child(2) { background: #ffbd2e; }
.card-dots span:last-child { background: #28ca42; }

.card-content {
    padding: 2rem;
    text-align: center;
}

.ai-avatar {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.ai-message {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.ai-message p {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Section Container */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Features Section */
.features-section {
    padding: 6rem 0;
    background: var(--background-color);
}

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

.feature-card {
    background: var(--card-bg-color);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 30px var(--shadow-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #4A90E2, #5A9EEE);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px var(--shadow-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-card {
    background: var(--card-bg-color);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 40px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.progress-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(#4A90E2 0deg 306deg, #e9ecef 306deg 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
}

.progress-ring::before {
    content: '';
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--card-bg-color);
    position: absolute;
}

.progress-percentage {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.progress-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #4A90E2 0%, #5A9EEE 100%);
    text-align: center;
    color: white;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-button {
    background: white;
    color: var(--primary-color);
    padding: 1.2rem 3rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 255, 255, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .landing-header nav {
        gap: 1rem;
    }

    .desktop-only-nav {
        display: none;
    }
    
    .landing-header nav a {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .section-container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .landing-header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .landing-header nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* =============================================== */
/* LANDING FOOTER STYLES */
/* =============================================== */

.landing-footer {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4A90E2, #5A9EEE);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.5rem;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 0.75rem;
}

.footer-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-list a:hover {
    color: #4A90E2;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #4A90E2;
    color: white;
    transform: translateY(-2px);
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .landing-footer {
        padding: 3rem 0 2rem;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 0 1rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-links {
        gap: 1.5rem;
    }
}

/* =============================================== */
/* CUSTOM SCROLLBAR STYLES */
/* =============================================== */

/* Webkit Scrollbar (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

::-webkit-scrollbar-corner {
    background: var(--background-color);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) var(--background-color);
}

/* Dashboard Specific Scrollbar */
.dashboard-content::-webkit-scrollbar,
.dashboard-sidebar::-webkit-scrollbar,
.chat-window::-webkit-scrollbar {
    width: 6px;
}

.dashboard-content::-webkit-scrollbar-track,
.dashboard-sidebar::-webkit-scrollbar-track,
.chat-window::-webkit-scrollbar-track {
    background: transparent;
}

.dashboard-content::-webkit-scrollbar-thumb,
.dashboard-sidebar::-webkit-scrollbar-thumb,
.chat-window::-webkit-scrollbar-thumb {
    background: rgba(37, 99, 235, 0.3);
    border-radius: 3px;
}

.dashboard-content::-webkit-scrollbar-thumb:hover,
.dashboard-sidebar::-webkit-scrollbar-thumb:hover,
.chat-window::-webkit-scrollbar-thumb:hover {
    background: rgba(37, 99, 235, 0.5);
}

/* Dark mode scrollbar */
[data-theme='dark'] .dashboard-content::-webkit-scrollbar-thumb,
[data-theme='dark'] .dashboard-sidebar::-webkit-scrollbar-thumb,
[data-theme='dark'] .chat-window::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.4);
}

[data-theme='dark'] .dashboard-content::-webkit-scrollbar-thumb:hover,
[data-theme='dark'] .dashboard-sidebar::-webkit-scrollbar-thumb:hover,
[data-theme='dark'] .chat-window::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.6);
}

/* =============================================== */
/* DASHBOARD STYLES */
/* =============================================== */

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem;
    cursor: pointer;
    box-shadow: 0 4px 12px var(--shadow-hover);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-color);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Dashboard Sidebar */
.dashboard-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--card-bg-color);
    border-right: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.dashboard-sidebar.active {
    transform: translateX(0);
}

/* Sidebar Header */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    background: var(--primary-color);
    color: white;
}

.sidebar-logo h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.sidebar-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Sidebar Profile */
.sidebar-profile {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.profile-avatar {
    position: relative;
}

.sidebar-profile-pic {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}


.profile-status.online {
    background: var(--success-color);
}

.profile-info {
    flex: 1;
}

.profile-name {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.profile-role {
    margin: 0 0 0.5rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.profile-level {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.level-progress {
    flex: 1;
    height: 4px;
    background: var(--border-light);
    border-radius: 2px;
    overflow: hidden;
}

.level-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.level-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 2rem;
}

.nav-heading {
    margin: 0 0 0.75rem 0;
    padding: 0 1.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    flex-direction: column;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.nav-link.active {
    background: var(--primary-color);
    color: white;
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: white;
}

.nav-link.logout {
    color: var(--danger-color);
}

.nav-link.logout:hover {
    background: var(--danger-color);
    color: white;
}

.nav-icon {
    flex-shrink: 0;
}

.nav-text {
    flex: 1;
    font-weight: 500;
}

.nav-badge {
    background: var(--warning-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-light);
    background: var(--background-color);
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.quick-stat {
    text-align: center;
    padding: 0.75rem;
    background: var(--card-bg-color);
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

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

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    min-height: calc(100vh - 81px);
    background: var(--background-color);
}

/* Desktop Sidebar */
@media (min-width: 1025px) {
    .dashboard-sidebar {
        position: static;
        transform: translateX(0);
        width: 280px;
        flex-shrink: 0;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .dashboard-content {
        margin-left: 0;
        flex: 1;
    }
}

/* Mobile Sidebar */
@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .dashboard-content {
        margin-left: 0;
        flex: 1;
        padding-left: 4rem; /* Space for mobile menu button */
    }
}

.dashboard-sidebar {
    width: 280px;
    background: var(--card-bg-color);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 81px;
    height: calc(100vh - 81px);
    overflow-y: auto;
}

.dashboard-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

/* Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 2rem;
}

.welcome-section {
    flex: 1;
}

.dashboard-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.dashboard-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.quick-action-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

.quick-action-btn.secondary {
    background: var(--card-bg-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px var(--shadow-color);
}

.quick-action-btn.secondary:hover {
    background: var(--border-color);
    transform: translateY(-1px);
}

/* Stats Overview */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--card-bg-color);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px var(--shadow-color);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-hover);
    border-color: var(--primary-light);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}

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

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.dashboard-card {
    background: var(--card-bg-color);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px var(--shadow-color);
    position: relative;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-hover);
    border-color: var(--primary-light);
}

.dashboard-card:hover::before {
    opacity: 1;
}

.dashboard-card.main-card {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--primary-light), var(--card-bg-color));
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.dashboard-card.main-card::before {
    opacity: 1;
    height: 4px;
}

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

/* Card Header */
.card-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent);
}

[data-theme='dark'] .card-header {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5), transparent);
}

.card-title-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.card-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar.small {
    height: 6px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

/* Card Content */
.card-content {
    padding: 1.5rem;
}

.card-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}



.button-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
    border: 1px solid var(--primary-color);
}

.button-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary-dark));
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

.button-secondary {
    background: var(--card-bg-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px var(--shadow-color);
    padding: 0.8rem 1.6rem;
    margin-right: 1.5rem;
}

.button-secondary:hover {
    background: var(--border-light);
    border-color: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px var(--shadow-hover);
    
}

.button-primary.full-width, .button-secondary.full-width {
    width: 100%;
    justify-content: center;
}

/* Project Item */
.project-item {
    margin-bottom: 1rem;
}

.project-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.project-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.project-status {
    font-size: 0.8rem;
    color: var(--primary-color);
    background: rgba(74, 144, 226, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
}

/* Challenge Item */
.challenge-item {
    margin-bottom: 1rem;
}

.challenge-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.challenge-difficulty {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 0.75rem 0;
}

.challenge-reward {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 193, 7, 0.1);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.reward-icon {
    font-size: 1.2rem;
}

.reward-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f57c00;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-color);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: var(--card-bg-color);
    border-color: var(--primary-light);
    box-shadow: 0 2px 8px var(--shadow-color);
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon.completed {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

.activity-icon.chat {
    background: rgba(74, 144, 226, 0.1);
    color: var(--primary-color);
}

.activity-icon.project {
    background: rgba(156, 39, 176, 0.1);
    color: #9c27b0;
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
    font-weight: 500;
}

.activity-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* =============================================== */
/* SIDEBAR STYLES */
/* =============================================== */

/* Sidebar Profile */
.sidebar-profile {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(135deg, var(--primary-light), transparent);
}

.profile-avatar {
    position: relative;
    margin-bottom: 1rem;
}

.sidebar-profile-pic {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}


.profile-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.profile-role {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
    font-weight: 500;
}

.profile-level {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.level-progress {
    flex: 1;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.level-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    border-radius: 3px;
}

.level-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 2rem;
}

.nav-heading {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 1rem 1.5rem;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 0 25px 25px 0;
    margin-right: 1rem;
}

.nav-link:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.nav-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-text {
    flex: 1;
}

.nav-indicator {
    width: 4px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link.active .nav-indicator {
    opacity: 1;
}

.nav-badge {
    background: rgba(255, 193, 7, 0.2);
    color: #f57c00;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-light);
    background: var(--background-color);
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.quick-stat {
    text-align: center;
    padding: 0.75rem 0.5rem;
    background: var(--card-bg-color);
    border-radius: 8px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.quick-stat:hover {
    border-color: var(--primary-light);
    box-shadow: 0 2px 8px var(--shadow-color);
}

.stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 0.25rem;
}

.sidebar-settings {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--card-bg-color);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sidebar-settings:hover {
    background: var(--border-light);
    border-color: var(--primary-light);
    color: var(--text-primary);
    box-shadow: 0 2px 8px var(--shadow-color);
}

/* Dashboard Responsive */
@media (max-width: 1024px) {
    .dashboard-card.main-card {
        grid-column: span 1;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .dashboard-actions {
        justify-content: flex-start;
    }
}
@media (max-width: 480px) {
    .stats-overview {
        grid-template-columns: 1fr;
    }
    
    .dashboard-actions {
        flex-direction: column;
    }
    
    .quick-action-btn {
        justify-content: center;
    }
    
    .card-actions {
        flex-direction: column;
    }
    
    .button-primary, .button-secondary {
        justify-content: center;
    }
}

/* ===============================================
   ONBOARDING STYLES
   =============================================== */

/* Career Options Styling */
.career-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.career-option {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--card-bg-color);
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: left;
    width: 100%;
}

.career-option:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.career-option.selected {
    border-color: var(--primary-color);
    background: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.career-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border-radius: 12px;
    color: white;
}

.career-content {
    flex: 1;
}

.career-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.career-description {
    margin: 0 0 1rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.career-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.career-skill {
    background: var(--background-color);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid var(--border-light);
}

.career-salary {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--success-color);
}

/* Roadmap Preview Styling */
.roadmap-preview {
    max-width: 700px;
    margin: 2rem auto;
}

.roadmap-phase {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--card-bg-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.phase-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.phase-content {
    flex: 1;
}

.phase-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.phase-content p {
    margin: 0 0 1rem 0;
    color: var(--text-secondary);
}

.phase-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: var(--primary-light);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--primary-color);
}

/* Final Step Styling */
.final-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.final-content h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.final-description {
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.final-benefits {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--card-bg-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    min-width: 120px;
}

.benefit-icon {
    font-size: 2rem;
}

.benefit-item span:last-child {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.finish-button {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    min-width: 200px;
}

/* Onboarding Navigation */
.onboarding-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.onboarding-nav .button-secondary {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
}

.onboarding-nav .button-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--primary-light);
}

/* ===============================================
   LANDING PAGE ADDITIONAL SECTIONS
   =============================================== */

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
    background: var(--background-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-primary);
    font-style: italic;
    position: relative;
}

.testimonial-content p::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    position: absolute;
    top: -10px;
    left: -10px;
    font-family: serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 50%;
}

.author-info h4 {
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
    font-weight: 600;
}

.author-info span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
    background: var(--card-bg-color);
}

.faq-container {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--background-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: var(--primary-light);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 200px;
}

.faq-answer p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background: var(--background-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-methods {
    margin: 2rem 0;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--card-bg-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.contact-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 12px;
    flex-shrink: 0;
}

.contact-details h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-weight: 600;
}

.contact-details p {
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
    font-weight: 500;
}

.contact-details span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.social-links {
    margin-top: 2rem;
}

.social-links h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Contact Form */
.contact-form {
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px var(--shadow-color);
}

.contact-form h3 {
    margin: 0 0 1.5rem 0;
    color: var(--text-primary);
    font-weight: 600;
}

.message-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--background-color);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Responsive Design for New Sections */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .final-benefits {
        flex-direction: column;
        gap: 1rem;
    }
    
    .career-options {
        gap: 0.75rem;
    }
    
    .career-option {
        padding: 1rem;
    }
    
    .roadmap-phase {
        flex-direction: column;
        text-align: center;
    }
}

/* ===============================================
   PROFILE PAGE STYLES
   =============================================== */

/* Profile Header */
.profile-header {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
}

.profile-cover {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    position: relative;
}

.cover-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(30, 64, 175, 0.9));
}

.profile-info {
    position: relative;
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.profile-avatar-section {
    position: relative;
    margin-top: -60px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--card-bg-color);
    object-fit: cover;
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.profile-status {
    position: absolute;
    bottom: -20px;
    right: 27px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--success-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.status-indicator.online {
    background: #22c55e;
}

.profile-details {
    flex: 1;
    margin-top: 1rem;
}

.profile-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.profile-email {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
}

.profile-badges {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.career-badge, .semester-badge, .level-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.career-badge {
    background: var(--primary-light);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.semester-badge {
    background: var(--success-color);
    color: white;
}

.level-badge {
    background: var(--warning-color);
    color: white;
}

.profile-actions {
    display: flex;
    gap: 1rem;
}

.share-profile {
    position: relative;
}

/* Profile Stats */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.profile-stats .stat-item {
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-stats .stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.profile-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

/* Profile Content */
.profile-content {
    display: grid;
    gap: 2rem;
}

.profile-section {
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px var(--shadow-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.section-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.edit-section-btn, .view-all-link {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.edit-section-btn {
    background: var(--primary-light);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.view-all-link {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.edit-section-btn:hover, .view-all-link:hover {
    background: var(--primary-color);
    color: white;
}

/* About Section */
.about-content {
    display: grid;
    gap: 1.5rem;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
}

.about-details {
    display: grid;
    gap: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--background-color);
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.detail-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.detail-value {
    font-weight: 500;
    color: var(--text-primary);
}

/* Progress Overview */
.progress-overview {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: center;
}

.progress-ring-large {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-color) 0deg, var(--primary-color) calc(var(--progress) * 3.6deg), var(--border-light) calc(var(--progress) * 3.6deg), var(--border-light) 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-ring-large::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: var(--card-bg-color);
    border-radius: 50%;
}

.progress-text-large {
    position: relative;
    text-align: center;
    z-index: 1;
}

.progress-percentage {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.progress-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.progress-details {
    display: grid;
    gap: 1.5rem;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-color);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.progress-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: 8px;
}

.progress-info {
    flex: 1;
}

.progress-title {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

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

/* Projects Grid */
.projects-grid {
    display: grid;
    gap: 1.5rem;
}

.project-card {
    padding: 1.5rem;
    background: var(--background-color);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.project-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.project-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-status.pending {
    background: var(--warning-color);
    color: white;
}

.project-status.approved {
    background: var(--success-color);
    color: white;
}

.project-status.rejected {
    background: var(--danger-color);
    color: white;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 1rem 0;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

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

.project-tech {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

/* Achievements Grid */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.achievement-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--background-color);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.achievement-card.earned {
    border-color: var(--success-color);
    background: rgba(34, 197, 94, 0.05);
}

.achievement-card.locked {
    opacity: 0.6;
    filter: grayscale(0.5);
}

.achievement-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

.achievement-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.achievement-card.earned .achievement-icon {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.achievement-info {
    flex: 1;
}

.achievement-info h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.achievement-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.achievement-date {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.achievement-card.earned .achievement-date {
    background: var(--success-color);
    color: white;
}

.achievement-card.locked .achievement-date {
    background: var(--text-muted);
    color: white;
}

/* Activity Timeline */
.activity-timeline {
    position: relative;
}

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

.timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-left: 3rem;
}

.timeline-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg-color);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
}

.timeline-icon.chat {
    background: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.timeline-icon.project {
    background: var(--warning-color);
    border-color: var(--warning-color);
    color: white;
}

.timeline-icon.completed {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.timeline-content {
    flex: 1;
}

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

.timeline-content p {
    margin: 0 0 0.5rem 0;
    color: var(--text-secondary);
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-state h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-weight: 600;
}

.empty-state p {
    margin: 0 0 1.5rem 0;
}

/* Responsive Design for Profile */
@media (max-width: 768px) {
    .profile-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .profile-avatar-section {
        margin-top: -40px;
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
    }
    
    .profile-actions {
        justify-content: center;
    }
    
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .progress-overview {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        padding-left: 2.5rem;
    }
    
    .activity-timeline::before {
        left: 15px;
    }
    
    .timeline-icon {
        width: 30px;
        height: 30px;
        left: 0;
    }
}

@media (max-width: 480px) {
    .profile-stats {
        grid-template-columns: 1fr;
    }
    
    .profile-badges {
        justify-content: center;
    }
    
    .profile-actions {
        flex-direction: column;
    }
}

/* ===============================================
   SETTINGS & EDIT PROFILE STYLES
   =============================================== */

/* Settings Sidebar */
.settings-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.settings-sidebar {
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-profile-pic {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.sidebar-profile-info {
    flex: 1;
}

.sidebar-profile-info strong {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.sidebar-profile-info span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-nav .nav-link:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.sidebar-nav .nav-link.active {
    background: var(--primary-color);
    color: white;
}

.sidebar-nav .nav-link.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.sidebar-nav .nav-link.disabled:hover {
    background: transparent;
    color: var(--text-secondary);
}

.nav-icon {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.nav-text {
    flex: 1;
    font-weight: 500;
}

.nav-badge {
    background: var(--warning-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

#theme-toggle {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    background: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.logout-button {
    background: var(--danger-color);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.logout-button:hover {
    background: var(--danger-hover);
    color: white;
}

/* Settings Content */
.settings-content {
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    min-height: 600px;
}

/* Edit Profile Styles */
.edit-profile-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.edit-profile-header h2 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
}

.edit-profile-subtitle {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.edit-profile-content {
    max-width: 800px;
}

.edit-profile-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section {
    background: var(--background-color);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
}

.form-section-title {
    margin: 0 0 1.5rem 0;
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-input, .form-select, .form-textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg-color);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input.disabled {
    background: var(--background-color);
    color: var(--text-muted);
    cursor: not-allowed;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.form-help {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Checkbox Styles */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.checkbox-label {
    cursor: pointer;
    flex: 1;
}

.checkbox-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.checkbox-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

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

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

/* Responsive Design for Settings */
@media (max-width: 1024px) {
    .settings-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .settings-sidebar {
        position: static;
        order: 2;
    }
    
    .settings-content {
        order: 1;
    }
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .sidebar-nav .nav-link {
        padding: 0.5rem 0.75rem;
    }
    
    .nav-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .settings-layout {
        padding: 0.5rem;
    }
    
    .settings-sidebar,
    .settings-content {
        padding: 1rem;
    }
    
    .form-section {
        padding: 1rem;
    }
}
  
.typing-indicator span {
    height: 8px; width: 8px; margin: 0 2px;
    background-color: var(--text-secondary);
    border-radius: 50%; display: inline-block;
    animation: wave 1.3s infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.1s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.2s; }
@keyframes wave { 0%, 60%, 100% { transform: initial; } 30% { transform: translateY(-8px); } }

/* static/css/style.css -> GANTI SEMUA STYLE ROADMAP LAMA DENGAN INI */

/* === Penyempurnaan Desain Roadmap Accordion V2 === */
.module-item {
    padding: 0; /* Hapus padding dari kartu utama */
    overflow: hidden; /* Pastikan konten tidak keluar dari border-radius */
}

.module-item summary {
    /* display: block; <-- Dihapus karena ini penyebab masalah */
    padding: 20px 30px 20px 50px; /* Beri ruang untuk panah custom */
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
    list-style: none; /* Sembunyikan panah default browser */
}

/* Membuat panah custom yang lebih bagus */
.module-item summary::before {
    content: '▶';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.2s ease;
    font-size: 0.8em;
    color: var(--primary-color);
}

.module-item[open] > summary::before {
    transform: translateY(-50%) rotate(90deg);
}

.module-item summary:hover {
    background-color: rgba(74, 144, 226, 0.1); /* Efek hover biru transparan */
}

.lesson-list {
    list-style-type: none; 
    padding: 0 30px 20px 50px; 
    margin-top: 0;
    border-top: 1px solid var(--border-color);
}

/* static/css/style.css -> GANTI SEMUA STYLE LESSON LAMA DENGAN INI */

.lesson-list {
    list-style-type: none; 
    padding: 0;
    margin-top: 15px;
    border-top: 1px solid var(--border-color);
}

.lesson-item {
    padding: 15px 20px; /* Pindahkan padding ke item-nya */
    border-bottom: 1px solid var(--border-color);
}

.lesson-list li:last-child {
    border-bottom: none; /* Hapus border untuk item terakhir */
}

.lesson-top {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lesson-label {
    flex-grow: 1;
    color: var(--text-primary);
}

.lesson-info strong {
    display: block;
    font-weight: 500;
}

.lesson-info span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: block;
    line-height: 1;
}

.lesson-bottom {
    display: flex;
    gap: 10px;
    justify-content: flex-end; /* Tombol di sebelah kanan */
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid var(--border-color); /* Garis pemisah tipis */
}

/* Menyesuaikan ukuran tombol di dalam lesson */
.lesson-bottom .button-primary,
.lesson-bottom .button-secondary {
    font-size: 0.85rem;
    padding: 6px 14px;
}

.lesson-bottom form {
    margin: 0;
}

.lesson-container { max-width: 900px; margin: auto; }
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.lesson-completion { text-align: center; padding-top: 20px; }
/* Style baru untuk daftar materi di roadmap */
.lesson-link-item {
    display: flex; align-items: center; gap: 15px;
    padding: 15px; border-bottom: 1px solid var(--border-color);
    text-decoration: none; color: var(--text-primary);
    transition: background-color 0.2s ease;
}
.lesson-link-item:hover { background-color: var(--border-color); }
.lesson-status-icon .icon-completed { color: #28a745; }
.lesson-status-icon .icon-pending { color: var(--text-secondary); }
.lesson-arrow { margin-left: auto; color: var(--text-secondary); }

.module-actions {
    padding: 20px;
    margin-top: 15px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    background-color: rgba(74, 144, 226, 0.1);
}
.module-actions p { font-weight: 600; margin-bottom: 10px; }








/* =============================================== */
/* ===         STYLE UNTUK HALAMAN WAWANCARA         === */
/* =============================================== */

/* --- 1. Layout Utama Dua Kolom --- */
.interview-layout {
    display: flex;
    gap: 24px;
    height: calc(100vh - 120px); /* Mengisi sisa tinggi layar dikurangi header */
    padding: 20px;
}

/* --- 2. Sidebar Informasi Proyek (Kolom Kiri) --- */
.interview-sidebar {
    flex-basis: 320px; /* Lebar kolom kiri */
    flex-shrink: 0; /* Mencegah kolom menyusut */
    padding: 24px;
    background-color: #1e1e1e; /* Warna sedikit lebih gelap dari card biasa */
    border-radius: 12px;
    overflow-y: auto; /* Bisa di-scroll jika kontennya panjang */
}

.interview-sidebar h3 {
    margin-top: 0;
    color: #ffffff;
}

.interview-sidebar h4 {
    margin-bottom: 8px;
    color: #e0e0e0;
}

.interview-sidebar h5 {
    margin-top: 20px;
    margin-bottom: 8px;
    color: #a0a0a0;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.interview-sidebar p {
    color: #b0b0b0;
    line-height: 1.6;
}

.interview-sidebar hr {
    border-color: #333;
    margin: 24px 0;
}

.interview-sidebar a {
    word-break: break-all; /* Agar link panjang tidak merusak layout */
}


/* --- 3. Area Chat (Kolom Kanan) --- */
.interview-chat {
    flex-grow: 1; /* Mengisi sisa ruang yang tersedia */
    display: flex;
    flex-direction: column;
    background-color: #161616;
    border-radius: 12px;
    overflow: hidden; /* Menyembunyikan konten yang meluber */
}

/* --- 4. Riwayat Chat (Bagian Atas Chat) --- */
.chat-history {
    flex-grow: 1;
    padding: 24px;
    overflow-y: auto; /* Ini yang membuat chat bisa di-scroll */
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-message {
    display: flex;
    width: 100%;
}

.chat-message .message-bubble {
    max-width: 80%; /* Pesan tidak akan terlalu lebar */
    padding: 12px 18px;
    border-radius: 20px;
    line-height: 1.5;
}

/* Pesan dari AI (kiri) */
.chat-message.assistant {
    justify-content: flex-start;
}
.chat-message.assistant .message-bubble {
    background-color: #2a2a2a;
    color: #e0e0e0;
    border-bottom-left-radius: 4px;
}

/* Pesan dari User (kanan) */
.chat-message.user {
    justify-content: flex-end;
}
.chat-message.user .message-bubble {
    background-color: #007bff; /* Warna biru primer */
    color: #ffffff;
    border-bottom-right-radius: 4px;
}


/* --- 5. Area Input Pesan (Bagian Bawah Chat) --- */
.chat-input-area {
    padding: 16px;
    border-top: 1px solid #333;
}

#interview-form, #chat-form{
    display: flex;
    align-items: flex-end; /* Diubah agar alignment bagus saat teks multi-baris */
    gap: 12px;
    width: 100%;
    vertical-align: middle;
}

#message-input {
    flex-grow: 1;
    padding: 20px 24px; /* sedikit lebih besar */
    border: 1px solid #444;
    border-radius: 32px; /* bulat lebih elegan */
    background-color: #2a2a2a;
    color: #fff;
    resize: none;
    font-size: 1.1rem; /* font lebih besar */
    font-family: inherit;
    min-height: 40px; /* lebih tinggi dari tombol */
    max-height: 60px;
    overflow-y: auto;
    line-height: 1.5;
    box-sizing: border-box;
}

#message-input:focus {
    outline: none;
    border-color: #007bff;
}

#send-button {
    flex-shrink: 0; /* Mencegah tombol menyusut */
    width: 52px; /* Ukuran tombol dibuat presisi */
    height: 52px;
    border: none;
    border-radius: 50%; /* Membuatnya menjadi lingkaran sempurna */
    background-color: #007bff;
    color: white;
    cursor: pointer;
    display: flex; /* Untuk menengahkan ikon SVG */
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

#send-button:hover {
    background-color: #0056b3;
}

#send-button:disabled {
    background-color: #555;
    cursor: not-allowed;
    opacity: 0.7;
}

#send-button svg {
    margin-left: -2px; /* Koreksi posisi ikon agar pas di tengah */
}






.input-link-project {
    width: 100%;
    max-width: 500px;
    padding: 12px 16px;
    margin: 8px 12px;
    border: 1.5px solid #374151;
    border-radius: 12px;
    font-size: 15px;
    font-family: system-ui, sans-serif;
    transition: all 0.25s ease;
    outline: none;
    background: #1f2937; /* abu gelap */
    color: #f9fafb;       /* putih keabu-abuan */
    box-shadow: 0 1px 2px rgba(0,0,0,0.4);
  }
  
  .input-link-project:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.35);
  }
  
  .input-link-project::placeholder {
    color: #9ca3af;
    font-size: 14px;
  }
/* File: app/templates/personal_hub.html */

/* ================================================= */
/* === CSS KHUSUS UNTUK FLATPCIKR DARK THEME === */
/* ================================================= */
.flatpickr-calendar {
    background-color: #2d2d2d;
    border-radius: 5px;
    border: 1px solid #444;
    color: #000000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange {
    background: #094771;
    border-color: #094771;
}
.flatpickr-day:hover {
    background: #3a3d3e;
}
.flatpickr-day.today {
    border-color: #569ff7;
}
.flatpickr-time, .flatpickr-months .flatpickr-month, .flatpickr-weekdays {
    background-color: #2d2d2d;
}
span.flatpickr-weekday {
    color: #aaa;
}
.flatpickr-current-month .flatpickr-monthDropdown-months, .numInputWrapper .numInput {
    background-color: transparent;
    color: #d4d4d4;
}
.flatpickr-time .flatpickr-time-separator, .flatpickr-time .flatpickr-am-pm {
    color: #d4d4d4;
}
.flatpickr-time input.flatpickr-hour, .flatpickr-time input.flatpickr-minute {
    color: #d4d4d4;
}
.flatpickr-input {
    background-color: #252526 !important;
    color: #d4d4d4 !important;
    border: 1px solid #444 !important;
}


/* GANTI CSS LAMA ANDA UNTUK INDIKATOR DENGAN INI */
/* === NOTIFICATION STYLES (FINAL) === */

.notification-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 1.5rem;
}

.notification-bell-link {
    font-size: 1.3rem;
    color: #9ca3af; /* Fallback color */
    color: var(--text-secondary, #9ca3af);
    text-decoration: none;
    position: relative;
    cursor: pointer;
    transition: color 0.2s ease;
}
.notification-bell-link:hover {
    color: #e5e7eb; /* Fallback color */
    color: var(--text-primary, #e5e7eb);
}

.notification-indicator {
    position: absolute;
    top: -4px;
    right: -8px;
    
    min-width: 18px;
    height: 18px;
    padding: 2px;
    border-radius: 50%;
    
    background-color: #ef4444; /* Fallback color */
    background-color: var(--accent-red, #ef4444);
    color: rgb(241, 14, 14) !important;
    border: 2px solid #1a202c; /* Sesuaikan dengan warna background header Anda */

    font-size: 11px;
    font-weight: bold;
    line-height: 1;

    display: none;
    place-content: center;
}

.notification-indicator.visible {
    display: grid;
    color: red;
}

.notification-panel {
    position: absolute;
    top: 180%;
    right: 0;
    width: 360px;
    background-color: #2d3748; /* Fallback color */
    background-color: var(--modal-bg, #2d3748);
    border: 1px solid var(--border-color, #374151);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease-in-out;
}

.notification-panel.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-panel-header,
.notification-panel-footer {
    padding: 12px 16px;
    font-weight: 600;
}
.notification-panel-header {
    border-bottom: 1px solid var(--border-color, #374151);
}
.notification-panel-footer {
    text-align: center;
    border-top: 1px solid var(--border-color, #374151);
}
.notification-panel-footer a {
    text-decoration: none;
    color: var(--accent-blue, #3b82f6);
    font-weight: 500;
}

#notification-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 350px;
    overflow-y: auto;
}

.notification-item, .notification-item-empty {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color, #374151);
}
.notification-item:last-child {
    border-bottom: none;
}

.notification-item a {
    text-decoration: none;
    color: var(--text-primary, #e5e7eb);
    display: block;
}

.notification-item.unread {
    background-color: rgba(59, 130, 246, 0.1);
}
.notification-item:hover {
    background-color: rgba(59, 130, 246, 0.2);
}

.notification-item-empty {
    text-align: center;
    color: var(--text-secondary, #9ca3af);
    padding: 2rem 1rem;
}

.notification-item .message {
    font-size: 0.9rem;
    white-space: normal;
}
.notification-item .timestamp {
    font-size: 0.75rem;
    color: var(--text-secondary, #9ca3af);
    margin-top: 4px;
}


/* === DIFFICULTY BADGE STYLES === */
.difficulty-badge {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
}
/* =============================================== */
/* ===         STYLE UNTUK BADGE KESULITAN     === */
/* =============================================== */

.difficulty-badge {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
    display: inline-block;
}

.difficulty-beginner {
    background-color: rgba(34, 197, 94, 0.1); /* Hijau */
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.2);
}

.difficulty-intermediate {
    background-color: rgba(59, 130, 246, 0.1); /* Biru */
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.2);
}

.difficulty-advanced {
    background-color: rgba(249, 115, 22, 0.1); /* Oranye */
    color: #f97316;
    border-color: rgba(249, 115, 22, 0.2);
}

.difficulty-expert {
    background-color: rgba(239, 68, 68, 0.1); /* Merah */
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}

/* Styling sederhana untuk halaman detail proyek */
.project-detail-container { max-width: 900px; margin: 40px auto; padding: 20px; }
.project-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #eee; padding-bottom: 15px; margin-bottom: 25px; }
.difficulty-badge { background-color: #e0eaff; color: #0033cc; padding: 5px 12px; border-radius: 15px; font-weight: bold; font-size: 14px; }
.project-content { display: flex; gap: 30px; }
.project-main { flex: 2; }
.project-sidebar { flex: 1; }
.sidebar-card { background-color: #f9f9f9; padding: 20px; border-radius: 8px; margin-bottom: 20px; }
.submit-form { margin-top: 40px; padding-top: 25px; border-top: 2px solid #eee; }
.form-group { display: flex; gap: 10px; }
.form-group input { flex-grow: 1; padding: 10px; border: 1px solid #ccc; border-radius: 4px; }

.form-select {
    margin: 0px 10px;
}

.sidebar-card h4, .sidebar-card p{
    color: #000000;
}
/* =============================================== */
/* === 7. MEDIA QUERIES (RESPONSIVE)           === */
/* =============================================== */

/* --- Tablet (lebar <= 1024px) --- */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
    }
}







/* =============================================== */
/* === 7. MEDIA QUERIES (RESPONSIVE)           === */
/* =============================================== *




/* Tombol Tutup Sidebar ('X') */
.sidebar-close-btn {
    display: none; /* Sembunyikan di desktop secara default */
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.5rem;
}

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

/* File: app/static/css/style.css */

/* ... (CSS yang sudah ada) ... */

/* ===============================================
   PROFILE PAGE STYLES
   =============================================== */

/* Profile Header */
.profile-header {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
}

.profile-cover {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    position: relative;
}

.cover-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(30, 64, 175, 0.9));
}

.profile-info {
    position: relative;
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.profile-avatar-section {
    position: relative;
    margin-top: -60px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--card-bg-color);
    object-fit: cover;
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.profile-details {
    flex: 1;
    margin-top: 1rem;
}

.profile-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.profile-email {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
}

.profile-badges {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.career-badge, .semester-badge, .level-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.career-badge {
    background: var(--primary-light);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.semester-badge {
    background: var(--success-color);
    color: white;
}

.profile-actions {
    display: flex;
    gap: 1rem;
}

/* Profile Stats */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.profile-stats .stat-item {
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-stats .stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.profile-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

/* Profile Content */
.profile-section {
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px var(--shadow-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.section-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

.empty-state h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-weight: 600;
}

.empty-state p {
    margin: 0 0 1.5rem 0;
}


/* =============================================== */
/* ===         ATURAN UNTUK MOBILE             === */
/* =============================================== */

@media (max-width: 768px) {
    /* 1. JANGAN sembunyikan header, tapi atur padding-nya */
    header {
        padding: 0.75rem 1rem;
    }

    /* 2. Sembunyikan HANYA navigasi teks di dalam header */
    .desktop-only-nav {
        display: none;
    }

    /* 3. Pastikan ikon di kanan header tidak terlalu rapat */
    .main-app-nav {
        gap: 0.75rem;
    }

    /* 4. Tampilkan tombol hamburger (menu mobile) */
    .mobile-menu-toggle {
        display: block;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1001;
        background: var(--card-bg-color);
        color: var(--text-primary);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 0.5rem;
        cursor: pointer;
    }
    
    /* 5. Atur ulang layout utama dan beri ruang untuk header & tombol menu */
    .dashboard-layout {
        display: block;
    }
    .dashboard-content {
        padding: 1rem;
        /* Tinggi header (sekitar 60px) + jarak dari atas */
        padding-top: 80px; 
        
    }

    /* 6. Aturan untuk sidebar mobile (tetap sama) */
    .dashboard-sidebar {
        position: fixed;
        height: 100%;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1100;
        width: 280px;
    }
    .dashboard-sidebar.active {
        transform: translateX(0);
    }
    .sidebar-overlay {
        position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        background: var(--overlay-color);
        z-index: 1050;
        display: none;
    }
    .sidebar-overlay.active {
        display: block;
    }
    .sidebar-close-btn {
        display: block;
    }

    /* 7. Penyesuaian lain untuk mobile */
    .stats-overview {
        grid-template-columns: 1fr;
    }
    .message { 
        max-width: 90%; 
    }

    .header-link {
        padding-left: 0px;
    }

    .dashboard-content {
        padding-top: 8px;
    }


    .module-item {
        margin-bottom:  15px;
    }

    .form-select {
        margin: 0px 10px;
    }

    .button-primary, .button-secondary {
        gap: 0.2rem;
        padding: 0.35rem 1.0rem;
        border-radius: 5px;

        margin: 8px 0;

        font-size: 1rem;
        transition: all 0.3s ease;

    }

    .card-actions {
        
        margin-top: 8px
    }

    .project-header h1 {
        font-size: 23px;
    }

    .chat-header a{
        font-size: 12px;
        margin-left: 10px;
    }

    #session-title {
        font-size: 18px;
    }

    .bubble {
        padding: 8px 16px;
        border-radius: 10px;
        font-size: 0.86rem;
        line-height: 1;
        box-shadow: 0 2px 6px var(--shadow-color);
    }

    
}

/* =============================================== */
/* ===         STYLE UNTUK BADGE KESULITAN     === */
/* =============================================== */

.difficulty-badge {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
    display: inline-block;
}

.difficulty-beginner {
    background-color: rgba(34, 197, 94, 0.1); /* Hijau */
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.2);
}

.difficulty-intermediate {
    background-color: rgba(59, 130, 246, 0.1); /* Biru */
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.2);
}

.difficulty-advanced {
    background-color: rgba(249, 115, 22, 0.1); /* Oranye */
    color: #f97316;
    border-color: rgba(249, 115, 22, 0.2);
}

.difficulty-expert {
    background-color: rgba(239, 68, 68, 0.1); /* Merah */
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}


/* === Gaya untuk Tabel di Konten Materi === */
.core-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.core-content th, .core-content td {
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    text-align: left;
}

.core-content th {
    background-color: var(--sidebar-bg); /* Menggunakan warna sidebar untuk header tabel */
    color: var(--text-primary);
    font-weight: 600;
}

.core-content tr:nth-of-type(even) {
    background-color: var(--background-color);
}

.core-content tr:hover {
    background-color: var(--primary-light);
}

/* Tambahkan di mana saja di dalam style.css */

.button-disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    background-color: var(--item-bg, #374151);
    color: var(--text-secondary, #9ca3af);
    cursor: not-allowed;
    opacity: 0.6;
    gap: 0.5rem;
}

.button-primary, .button-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

/* =============================================== */
/* ===      STYLE UNTUK TOAST NOTIFIKASI       === */
/* =============================================== */

.toast {
    position: fixed;
    top: 80px; /* Sedikit lebih ke bawah agar tidak tertutup header */
    right: 20px;
    background-color: var(--success-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.4s ease-in-out;
    font-weight: 500;
}

.toast.show {
    transform: translateX(0);
}

.toast.error {
    background-color: var(--danger-color);
}

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


@media (max-width: 426px) {
    .notification-panel {
        position: absolute;
        top: 180%;
        right: -80px;
        width: 260px;
    }

    .button-primary, .button-secondary ,   .quick-action-btn{
        gap: 0.2rem;
        padding: 0.5rem 1rem;
        border-radius: 7px;
        font-size: 0.7rem;
    }

    p, li,  a,  .lesson-info strong, .lesson-info span , .lesson-actions .button-primary, .lesson-actions .button-secondary , .message{
        font-size: 0.7rem !important;
        line-height: 1.4;
    }
    h4 , .module-title ,   
    .notification-panel-header {
        font-size: 0.85rem !important;
    }

    h3 ,     .header-link {
        font-size: 0.96rem !important;
    } 


    h1 {
        font-size: 1.5rem !important;
    }

    h2 {
        font-size: 1.24rem !important;
    }
      
    .notification-panel-header {
        padding: 0.7rem 1.4rem;
    }

    .main-app-nav a {
        font-size: 0.8rem;
        padding: 0;

    }

    .toast {
        top: 70px;
        right: 0px;
        padding: 0.5rem 1rem;
    }

    .toast-message {
        font-size: 0.8rem;
    }

    .chat-header-left {
        gap: 0rem !important;
    }

    /* ONBOARDING */
    .onboarding-container {
        background: var(--card-bg-color);
        border-radius: 12px;
        padding: 0.65rem;
        text-align: center;
        max-width: 300px;
        box-shadow: 0 10px 30px var(--shadow-color);
    }
    #name-input {
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
        border: 1px solid var(--border-color);
        border-radius: 4px;
        margin: 3px;
    }

    .answer-options button {
        padding: 12px;
        font-size: 0.7rem;
        border: 1px solid var(--border-color);
        border-radius: 6px;
        gap: 6px;

    }

    .career-icon {
        width: 28px;
        height: 28px;
    }

    .career-skill {
        padding: 0.2rem 0.5rem;
        border-radius: 10px;
        font-size: 0.7rem;
        
    }

    .career-salary {
        font-size: 0.7rem;
    }

    .career-details {
        margin-bottom: 0.75rem;
        gap:0.2rem;
    }

    .skill-tag {
        padding: 0.25rem 0.5rem;
        border-radius: 10px;
        font-size: 0.7rem;
 
    }

    .ai-generated-content code {
        font-size: 0.6rem !important;
    }

    .ai-generated-content.card {
        padding: 0.5rem 1rem 1rem 1rem !important;
    }

    .ai-generated-content pre {
        padding: 0.8rem !important;
        margin: 0.4rem 0;
    }

    .project-detail-layout {
        max-width: 1400px;
        margin: 1rem auto;
        padding: 0px 0.1rem;
    }

    .dashboard-content {
        padding: 0rem;
        padding-top: 20px;
    }

    .landing-header nav {
        gap: 0.24rem;
    }

    .visual-card {
        padding: 0.8rem;
        max-width: 250px;
        border-radius: 10px;
    }

    .progress-label {
        display: block;
        font-size: 0.6rem;
        max-width: 250px;
    }

    .mobile-menu-toggle {
        display: block;
        position: fixed;
        top: 3rem;
        left: 1rem;
        z-index: 1001;
        background: var(--card-bg-color);
        color: var(--text-primary);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 0.5rem;
        cursor: pointer;
    }

    

    
}

    


@media (max-width: 400px) {
    .notification-panel {
        position: absolute;
        top: 180%;
        right: -80px;
        width: 260px;
    }

    .button-primary, .button-secondary ,   .quick-action-btn{
        gap: 0.2rem;
        padding: 0.55rem 1.1rem;
        border-radius: 7px;
        font-size: 0.6rem !important;
    }

    p, a,  .lesson-info strong, .lesson-info span , .lesson-actions .button-primary, .lesson-actions .button-secondary , .message{
        font-size: 0.65rem !important;
        line-height: 1.4;
    }
    h4 , .module-title ,   
    .notification-panel-header {
        font-size: 0.75rem !important;
    }

    h3 ,     .header-link {
        font-size: 0.95rem !important;
    }

    .message .avatar , .main-app-nav .profile-link img{
        width: 28px;
        height: 28px;
    }


    h1 {
        font-size: 1.7rem !important;
    }

    h2 {
        font-size: 1.38rem !important;
    }
      
    .notification-panel-header {
        padding: 0.6rem 1.2rem;
    }

    .main-app-nav a {
        font-size: 0.6rem;
        padding: 0;

    }

    .toast {
        top: 70px;
        right: 0px;
        padding: 0.5rem 1rem;
    }

    .toast-message {
        font-size: 0.6rem;
    }

    .chat-header-left {
        gap: 0rem !important;
    }

    .notification-item .timestamp {
        font-size: 0.6rem;
    }

    .mobile-menu-toggle {

        border-radius: 5px;
        padding: 0.3rem;
    }

    svg {
        width: 18px;
        height: 18px;
    }

    .landing-header nav {
        gap: 0.2rem;
    }
}
