:root {
    --bg-base: #1A1C2E;
    --bg-card: rgba(16, 17, 26, 0.7);
    --accent: #00D2FF;
    --accent-hover: #00B8E6;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --border: rgba(255, 255, 255, 0.05);
    --border-light: rgba(255, 255, 255, 0.1);
    --shadow: rgba(0, 0, 0, 0.3);
    --glass-blur: blur(20px);
}

[data-theme="light"] {
    --bg-base: #F8FAFC;
    --bg-card: rgba(255, 255, 255, 0.7);
    --text-primary: #1A1C2E;
    --text-secondary: #64748B;
    --border: rgba(0, 0, 0, 0.05);
    --border-light: rgba(0, 0, 0, 0.1);
    --shadow: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.circle-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #00D2FF, #0066FF);
    top: -200px;
    left: -200px;
    animation: float1 20s ease-in-out infinite;
}

.circle-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #7C3AED, #00D2FF);
    bottom: -100px;
    right: -100px;
    animation: float2 25s ease-in-out infinite;
}

.circle-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #00D2FF, #06B6D4);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float3 18s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(100px, 50px) scale(1.1); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-80px, -40px) scale(1.15); }
}

@keyframes float3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: 0 8px 32px var(--shadow);
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-icon {
    color: var(--accent);
}

.subheading {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

#login-signup-view {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 2rem;
}

.landing-header {
    text-align: center;
    padding: 3rem 0;
}

.landing-header .logo {
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.landing-header .logo-icon {
    width: 70px;
    height: 50px;
}

.landing-header .subheading {
    font-size: 1rem;
}

.auth-section {
    display: flex;
    justify-content: center;
    padding: 2rem 0 4rem;
    opacity: 0;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    background: var(--border);
    border-radius: 10px;
    padding: 4px;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.auth-tab.active {
    background: var(--accent);
    color: white;
}

.auth-tab:hover:not(.active) {
    color: var(--text-primary);
}

.auth-form {
    display: none;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-form.active {
    display: flex;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 1rem;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.input-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.input-group input::placeholder {
    color: var(--text-secondary);
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.15);
}

.input-group input:focus + i,
.input-group:focus-within i {
    color: var(--accent);
}

.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 2rem;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.auth-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.3);
}

.auth-help {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.auth-help:hover {
    color: var(--accent);
}

.landing-section {
    max-width: 900px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.section-content {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
}

.section-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--accent), #0066FF);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-icon i {
    font-size: 1.75rem;
    color: white;
}

.section-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.section-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

.feature-points {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.feature-point {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-point:hover {
    background: var(--accent);
    color: #000;
}

.feature-point:hover i {
    color: #000;
}

.feature-point i {
    color: var(--accent);
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.feature-point span {
    font-weight: 500;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
    margin-top: 2rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--border);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.step:hover {
    background: rgba(0, 210, 255, 0.1);
    transform: translateX(10px);
}

.step-number {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: var(--accent);
    color: #000;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    text-align: left;
}

.benefits-list {
    list-style: none;
    text-align: left;
    margin-top: 2rem;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.benefits-list li:hover {
    color: var(--text-primary);
    padding-left: 1rem;
}

.benefits-list li:last-child {
    border-bottom: none;
}

.benefit-num {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
}

.developers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.developer-card {
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.developer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow);
}

.developer-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--accent), #0066FF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.developer-avatar i {
    font-size: 2rem;
    color: white;
}

.developer-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.developer-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.faq-container {
    text-align: left;
    margin-top: 2rem;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-question span {
    font-size: 1.1rem;
    font-weight: 500;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding-bottom: 1.25rem;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    text-align: left;
}

#app-dashboard-view {
    position: relative;
    z-index: 1;
}

.dashboard-container {
    display: grid;
    grid-template-columns: 280px 1fr 350px;
    min-height: 100vh;
}

.left-sidebar {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--border-light);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.sidebar-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.sidebar-header .logo {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.sidebar-header .logo-icon {
    width: 45px;
    height: 30px;
}

.sidebar-header .subheading {
    font-size: 0.7rem;
    margin-left: 55px;
}

.subjects-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.subjects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--border);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.subjects-header:hover {
    background: rgba(0, 210, 255, 0.1);
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.subjects-header.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.subjects-container {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

.subjects-container::-webkit-scrollbar {
    width: 6px;
}

.subjects-container::-webkit-scrollbar-track {
    background: transparent;
}

.subjects-container::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

.subject-list {
    list-style: none;
    transition: max-height 0.3s ease;
}

.subject-list.collapsed {
    max-height: 0;
    overflow: hidden;
}

.subject-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    cursor: pointer;
    border-radius: 10px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.subject-list li:hover {
    background: rgba(0, 210, 255, 0.1);
}

.subject-list li.active {
    background: var(--accent);
    color: #000;
}

.subject-list li.active i {
    color: #000;
}

.subject-list li.active .badge {
    background: #000;
    color: var(--accent);
}

.subject-list li i {
    color: var(--accent);
    width: 20px;
    text-align: center;
    transition: color 0.3s ease;
}

.subject-list li span:first-of-type {
    flex: 1;
    font-weight: 500;
}

.badge {
    background: var(--accent);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    min-width: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.add-subject-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem;
    background: transparent;
    border: 2px dashed var(--border-light);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-subject-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 210, 255, 0.05);
}

.sidebar-actions {
    margin-top: auto;
}

.upload-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.3);
}

.center-area {
    padding: 1.5rem 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.recording-section {
    padding: 1.5rem;
}

.recording-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.record-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    color: #000;
    font-size: 1.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.record-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0;
    transition: all 0.3s ease;
}

.record-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 210, 255, 0.4);
}

.record-btn.recording {
    background: #EF4444;
}

.record-btn.recording::before {
    animation: recordPulse 1.5s ease-in-out infinite;
}

@keyframes recordPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.recording-info {
    flex: 1;
}

#recording-status {
    display: block;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.waveform {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 40px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.waveform.active {
    opacity: 1;
    visibility: visible;
}

.wave-bar {
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 4px;
    transition: height 0.1s ease;
}

.waveform.active .wave-bar {
    animation: wave 0.6s ease-in-out infinite;
}

.waveform.active .wave-bar:nth-child(1) { animation-delay: 0s; }
.waveform.active .wave-bar:nth-child(2) { animation-delay: 0.1s; }
.waveform.active .wave-bar:nth-child(3) { animation-delay: 0.2s; }
.waveform.active .wave-bar:nth-child(4) { animation-delay: 0.3s; }
.waveform.active .wave-bar:nth-child(5) { animation-delay: 0.4s; }
.waveform.active .wave-bar:nth-child(6) { animation-delay: 0.5s; }
.waveform.active .wave-bar:nth-child(7) { animation-delay: 0.4s; }
.waveform.active .wave-bar:nth-child(8) { animation-delay: 0.3s; }
.waveform.active .wave-bar:nth-child(9) { animation-delay: 0.2s; }
.waveform.active .wave-bar:nth-child(10) { animation-delay: 0.1s; }
.waveform.active .wave-bar:nth-child(11) { animation-delay: 0s; }
.waveform.active .wave-bar:nth-child(12) { animation-delay: 0.1s; }

@keyframes wave {
    0%, 100% { height: 8px; }
    50% { height: 35px; }
}

.transcription-box {
    overflow: hidden;
}

.transcription-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}

.transcription-header i {
    color: var(--accent);
}

.transcription-content {
    padding: 1.5rem;
    min-height: 80px;
    max-height: 150px;
    overflow-y: auto;
}

.transcription-content .placeholder {
    color: var(--text-secondary);
    font-style: italic;
}

.generate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: calc(100% - 3rem);
    margin: 0 1.5rem 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent), #0066FF);
    color: #000;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.4);
}

.editor-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.editor-title-input {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.editor-title-input input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
    font-family: inherit;
    transition: all 0.3s ease;
}

.editor-title-input input::placeholder {
    color: var(--text-secondary);
}

.editor-title-input input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.15);
}

#quill-toolbar {
    border: none !important;
    border-bottom: 1px solid var(--border) !important;
    background: var(--bg-card) !important;
    padding: 0.75rem 1rem !important;
}

#quill-editor {
    flex: 1;
    min-height: 350px;
}

.ql-toolbar.ql-snow {
    border: none;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
}

.ql-container.ql-snow {
    border: none;
    font-family: 'Times New Roman', serif;
    font-size: 14px;
}

.ql-editor {
    font-family: 'Times New Roman', serif !important;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-primary);
    min-height: 300px;
    padding: 1.5rem;
}

.ql-editor.ql-blank::before {
    color: var(--text-secondary);
    font-style: italic;
}

.ql-snow .ql-stroke {
    stroke: var(--text-primary);
}

.ql-snow .ql-fill {
    fill: var(--text-primary);
}

.ql-snow .ql-picker {
    color: var(--text-primary);
}

.ql-snow .ql-picker-options {
    background: var(--bg-base);
    border-color: var(--border-light);
}

.ql-snow .ql-picker-label:hover,
.ql-snow .ql-picker-item:hover {
    color: var(--accent);
}

.ql-snow .ql-picker-label:hover .ql-stroke,
.ql-snow .ql-picker-item:hover .ql-stroke {
    stroke: var(--accent);
}

.ql-snow.ql-toolbar button:hover,
.ql-snow .ql-toolbar button:hover,
.ql-snow.ql-toolbar button:focus,
.ql-snow .ql-toolbar button:focus,
.ql-snow.ql-toolbar button.ql-active,
.ql-snow .ql-toolbar button.ql-active {
    color: var(--accent);
}

.ql-snow.ql-toolbar button:hover .ql-stroke,
.ql-snow .ql-toolbar button:hover .ql-stroke,
.ql-snow.ql-toolbar button:focus .ql-stroke,
.ql-snow .ql-toolbar button:focus .ql-stroke,
.ql-snow.ql-toolbar button.ql-active .ql-stroke,
.ql-snow .ql-toolbar button.ql-active .ql-stroke {
    stroke: var(--accent);
}

.ql-snow.ql-toolbar button:hover .ql-fill,
.ql-snow .ql-toolbar button:hover .ql-fill,
.ql-snow.ql-toolbar button:focus .ql-fill,
.ql-snow .ql-toolbar button:focus .ql-fill,
.ql-snow.ql-toolbar button.ql-active .ql-fill,
.ql-snow .ql-toolbar button.ql-active .ql-fill {
    fill: var(--accent);
}

.editor-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
}

.save-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.3);
}

.right-sidebar {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border-left: 1px solid var(--border-light);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
}

.switch {
    position: relative;
    width: 60px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border);
    border-radius: 30px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
}

.slider i {
    font-size: 0.75rem;
    color: var(--text-secondary);
    z-index: 1;
}

.slider::before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background: var(--accent);
    border-radius: 50%;
    transition: 0.3s;
}

input:checked + .slider::before {
    transform: translateX(30px);
}

.ai-assistant {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ai-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}

.ai-header i {
    color: var(--accent);
    font-size: 1.25rem;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ai-message,
.user-message {
    display: flex;
    gap: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.6;
    animation: fadeInUp 0.3s ease;
}

.ai-message {
    align-items: flex-start;
}

.message-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: linear-gradient(135deg, var(--accent), #0066FF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-avatar i {
    font-size: 0.85rem;
    color: white;
}

.message-content {
    background: var(--border);
    padding: 1rem;
    border-radius: 0 12px 12px 12px;
    max-width: calc(100% - 44px);
}

.message-content p {
    margin-bottom: 0.5rem;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content ul {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
}

.message-content li {
    margin-bottom: 0.25rem;
    color: var(--text-secondary);
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-content {
    background: var(--accent);
    color: #000;
    border-radius: 12px 0 12px 12px;
}

.chat-input {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    border-top: 1px solid var(--border);
}

.chat-input input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.chat-input input::placeholder {
    color: var(--text-secondary);
}

.chat-input input:focus {
    outline: none;
    border-color: var(--accent);
}

.chat-input button {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent);
    border: none;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-input button:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.dashboard-footer {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--border-light);
    padding: 3rem 2rem 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.375rem 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.footer-section li:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

@media (max-width: 1400px) {
    .dashboard-container {
        grid-template-columns: 260px 1fr 320px;
    }
}

@media (max-width: 1200px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }
    
    .left-sidebar,
    .right-sidebar {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .developers-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-points {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .section-content {
        padding: 2rem 1.5rem;
    }
}
/* --- NEW GRID LAYOUT UPDATES --- */
.landing-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.grid-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.grid-col {
    display: flex;
    flex-direction: column;
}

/* Removing watery effect dynamically */
.no-glass {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 1.5rem 0 !important; 
}

.no-glass h2 {
    text-align: left !important;
    margin-bottom: 1.5rem;
}

.intro-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: left;
}

.feature-points.compact {
    justify-content: flex-start;
    gap: 1rem;
}

/* Merged Horizontal Section */
.merged-card {
    grid-column: 1 / -1;
    display: flex;
    align-items: stretch;
    padding: 2.5rem;
}

.merged-half {
    flex: 1;
    padding: 0 2rem;
}

.merged-half h3 {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.vertical-divider {
    width: 1px;
    background: var(--border-light);
    margin: 0 1rem;
}

/* Compact Lists to save vertical space */
.compact-steps {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.c-step {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.c-num {
    background: var(--accent);
    color: #000;
    font-weight: 700;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.c-step p {
    font-size: 0.95rem;
    margin: 0;
    color: var(--text-secondary);
}
.c-step p strong {
    color: var(--text-primary);
}

.compact-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}

.compact-benefits li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.compact-benefits li i {
    color: var(--accent);
    font-size: 1.1rem;
}

/* New Developers List */
.dev-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dev-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--bg-card); /* Add individual card background back since container has no-glass */
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.dev-pic {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.dev-info {
    text-align: left;
}

.dev-info h4 {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.dev-info span {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.25rem;
}

.dev-bio {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0 !important;
}

/* Responsive Fixes for smaller screens */
@media (max-width: 900px) {
    .grid-row {
        grid-template-columns: 1fr;
    }
    .merged-card {
        flex-direction: column;
    }
    .vertical-divider {
        width: 100%;
        height: 1px;
        margin: 2rem 0;
    }
    .merged-half {
        padding: 0;
    }
}
/* --- PERFECT SIZING FOR DEVELOPERS SECTION --- */
.developers-col .section-content {
    max-width: 340px;
    margin: 0;
    padding: 0 !important;
    text-align: left;
}

.dev-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.dev-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.2rem;
    padding: 1rem;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
}

.dev-pic {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
}

.dev-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.dev-info h4 {
    font-size: 1.1rem;
    color: #FFFFFF;
    font-weight: 700;
    margin-bottom: 0.2rem;
    letter-spacing: 0.5px;
}

.dev-info span {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 1px;
}

/* --- FOOTER & MODAL UPDATES --- */

/* Removes watery glass effect */
.dashboard-footer.no-glass {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-top: 1px solid var(--border-light);
}

/* Centers the two remaining columns */
.footer-content.centered-footer {
    display: flex;
    justify-content: center;
    gap: 8rem; /* Space between Developers and Help */
    max-width: 800px;
}

/* Mini Developer Pics Styling */
.footer-dev-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-dev-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0 !important;
}

.footer-dev-pic {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--accent);
}

/* Contact Support Dropdown */
.support-wrapper {
    position: relative;
}

.support-dropdown {
    display: none;
    position: absolute;
    bottom: 120%; /* Pops up ABOVE the text */
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--accent);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    z-index: 100;
}

.support-dropdown.show {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.support-dropdown p {
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.support-dropdown p:last-child {
    margin-bottom: 0;
}

.support-dropdown i {
    color: var(--accent);
    font-size: 1rem;
}

/* FAQ Modal Popup */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    width: 100%;
    max-width: 600px;
    padding: 2.5rem;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--accent);
}

/* --- FIX FOR SHARP CORNERS (RED CIRCLES) --- */
.left-sidebar {
    border-bottom-right-radius: 24px;
}

.right-sidebar {
    border-bottom-left-radius: 24px;
}

/* Enhancing the hover effects for the new Study Tools items */
.study-tools-section .subject-list li {
    margin-bottom: 2px;
    padding: 0.6rem 0.8rem;
}