:root {
    --bg-color: #fdfdfd;
    --sidebar-color: #ffffff;
    --input-area-color: rgba(253, 253, 253, 0.95);
    --user-msg-bg: #fff9c4; /* Sticky Note Yellow */
    --ai-msg-bg: #ffffff;
    --text-color: #2c3e50;
    --accent-color: #3498db; /* Educational Blue */
    --border-color: #e0e0e0;
    --shadow-color: rgba(0,0,0,0.08);
    --grid-color: #e5e5e5;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
    border: 2px solid var(--bg-color); /* Creates a padding effect */
}

::-webkit-scrollbar-thumb:hover {
    background: #bdc3c7;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    /* Whiteboard Grid Pattern */
    background-image: radial-gradient(var(--grid-color) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    color: var(--text-color);
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--sidebar-color);
    display: flex;
    flex-direction: column;
    padding: 10px;
    border-right: 1px solid var(--border-color);
    box-shadow: 2px 0 15px var(--shadow-color);
    z-index: 10;
}

.sidebar-logo {
    margin-bottom: 20px;
    padding: 5px;
}

.sidebar-logo a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 800;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.2s;
}

.sidebar-logo a:hover {
    color: var(--accent-color);
}

.logo-icon {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.new-chat-btn {
    border: 2px dashed var(--accent-color);
    border-radius: 8px;
    padding: 12px;
    background: #f0f8ff;
    color: var(--accent-color);
    text-align: left;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.new-chat-btn:hover {
    background-color: #e1f0fa;
}

/* Main Chat Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 160px; /* Space for input area */
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.message {
    padding: 16px 20px;
    display: flex;
    gap: 15px;
    border-bottom: none;
    line-height: 1.6;
    max-width: 85%;
    width: fit-content;
    box-shadow: 0 4px 6px var(--shadow-color);
    animation: slideIn 0.3s ease-out;
}

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

.message.ai {
    background-color: var(--ai-msg-bg);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-color); /* Textbook style */
    border-radius: 4px;
    margin-right: auto;
}

.message.user {
    background: var(--user-msg-bg);
    color: #333;
    margin-left: auto;
    border-radius: 2px 12px 2px 12px; /* Sticky note shape */
    border: 1px solid #f9e79f;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    flex-direction: row-reverse;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.avatar.user { background: #f1c40f; color: white; }
.avatar.ai { background: var(--accent-color); color: white; }

.message-content {
    max-width: 100%;
    width: 100%;
}

/* Visual Workspace (New Chat Response Style) */
.visual-workspace {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.workspace-header {
    background: #f8f9fa;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.workspace-title {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.workspace-actions button {
    background: transparent;
    border: 1px solid var(--border-color);
    color: #7f8c8d;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 5px;
    transition: all 0.2s;
}

.workspace-actions button:hover {
    background: #f0f8ff;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.workspace-canvas {
    padding: 20px;
    background-color: #ffffff;
    /* Graph Paper Effect */
    background-image: linear-gradient(#e5e5e5 1px, transparent 1px), linear-gradient(90deg, #e5e5e5 1px, transparent 1px);
    background-size: 20px 20px;
    position: relative;
    text-align: center;
}

.generated-diagram {
    max-width: 100%;
    border-radius: 4px;
    border: 2px solid #333; /* Sketchy border */
    box-shadow: 5px 5px 0px rgba(0,0,0,0.1); /* Pop shadow */
}

.workspace-footer {
    padding: 15px;
    background: #fff;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    color: #555;
}

/* Step by Step Graphics Styling */
.step-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.step-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    display: block;
}

.step-image {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 10px 0;
    border: 1px solid #ddd;
}

code {
    background-color: #f8f9fa;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: monospace;
    border: 1px solid var(--border-color);
    color: #e74c3c;
}

pre {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 10px 0;
    border: 1px solid var(--border-color);
}

/* Input Area */
.input-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, transparent, var(--bg-color) 30%);
    backdrop-filter: blur(3px);
    padding: 40px 20px;
    display: flex;
    justify-content: center;
}

.input-box-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
}

textarea {
    width: 100%;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-color);
    padding: 14px 45px 14px 15px;
    font-family: inherit;
    resize: none;
    height: 50px;
    max-height: 200px;
    outline: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

textarea:focus {
    background-color: white;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
    transform: translateY(-2px);
}

.send-btn {
    position: absolute;
    right: 17px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #95a5a6;
    cursor: pointer;
    transition: color 0.2s;
    font-size: 16px;
}

.send-btn:hover {
    color: var(--accent-color);
}

/* =========================================
   Landing Page Styles
   ========================================= */

body.landing-page {
    display: block;
    height: auto;
    overflow-y: auto;
    background: white;
    background-image: radial-gradient(#bdc3c7 1px, transparent 1px);
    background-size: 30px 30px;
}

.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
}

.logo {
    font-weight: 800;
    font-size: 24px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    color: #555;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--accent-color);
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 0px #2980b9; /* Button depth */
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0px #2980b9;
}

.btn-secondary {
    color: #555;
    text-decoration: none;
    font-weight: 600;
    margin-right: 10px;
}

.btn-secondary-outline {
    background: transparent;
    color: var(--accent-color);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--accent-color);
}

.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 40px;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero-content h1 {
    font-size: 48px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 800;
    color: #2c3e50;
}

.text-gradient {
    color: var(--accent-color);
    position: relative;
    z-index: 1;
}

/* Highlighter effect */
.text-gradient::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 15px;
    background: #fff9c4;
    z-index: -1;
    transform: rotate(-1deg);
}

.hero-content p {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-primary.large {
    padding: 15px 30px;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.sub-cta {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 300px;
}

.code-window {
    width: 100%;
    max-width: 400px;
    height: 300px;
    background: white;
    border: 2px solid #333;
    border-radius: 12px;
    position: relative;
    box-shadow: 10px 10px 0px rgba(0,0,0,0.1); /* Pop shadow */
}

.window-header {
    padding: 15px;
    background: #f1f1f1;
    display: flex;
    gap: 8px;
    border-radius: 12px 12px 0 0;
    border-bottom: 2px solid #333;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.window-body {
    padding: 20px;
    position: relative;
}

.code-line {
    height: 10px;
    background: #e0e0e0;
    margin-bottom: 10px;
    border-radius: 4px;
    width: 80%;
}

.visual-arrow-connector {
    text-align: center;
    color: var(--accent-color);
    margin: 15px 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

.floating-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 5px 5px 0px rgba(52, 152, 219, 0.2);
    color: #333;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.features-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 40px;
    text-align: center;
}

.features-section h2 {
    font-size: 32px;
    margin-bottom: 50px;
    color: #2c3e50;
}

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

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: left;
    transition: transform 0.3s;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.feature-card i {
    font-size: 32px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 20px;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.5;
}

/* How It Works */
.how-it-works {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 40px;
    text-align: center;
}

.how-it-works h2 {
    font-size: 32px;
    margin-bottom: 50px;
    color: #2c3e50;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.step-item {
    flex: 1;
    min-width: 250px;
    position: relative;
    padding: 20px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.3);
}

.step-item h3 {
    margin-bottom: 10px;
    font-size: 20px;
    color: #333;
}

.step-item p {
    color: #666;
    line-height: 1.5;
}

/* Footer */
.landing-footer {
    background: white;
    border-top: 1px solid var(--border-color);
    padding: 60px 40px;
    margin-top: 100px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.copyright {
    color: #999;
    font-size: 14px;
}

/* Trusted Section */
.trusted-section {
    text-align: center;
    padding: 40px 20px;
    border-bottom: 1px solid var(--border-color);
    background: #f9f9f9;
}

.trusted-section p {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logos-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    opacity: 0.5;
}

.logos-grid span {
    font-weight: 800;
    font-size: 20px;
    color: #333;
}

/* Testimonials */
.testimonials-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 40px;
    text-align: center;
}

.testimonials-section h2 {
    font-size: 32px;
    margin-bottom: 50px;
    color: #2c3e50;
}

.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: left;
    position: relative;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.testimonial-text {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

/* FAQ Section */
.faq-section {
    max-width: 800px;
    margin: 80px auto;
    padding: 0 40px;
}

.faq-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 20px;
}

.faq-question {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    color: #666;
    line-height: 1.6;
    font-size: 15px;
    display: none;
}

/* Pricing Section */
.pricing-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 40px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center;
}

.pricing-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.pricing-card.featured {
    border-color: var(--accent-color);
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(52, 152, 219, 0.15);
}

.featured-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.pricing-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.price {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #2c3e50;
}

.price sup {
    font-size: 24px;
    font-weight: 600;
    top: -15px;
}

.price span {
    font-size: 16px;
    font-weight: 400;
    color: #7f8c8d;
}

.pricing-description {
    color: #666;
    margin-bottom: 30px;
    min-height: 40px;
}

.features-list {
    list-style: none;
    text-align: left;
    margin-bottom: 40px;
    color: #555;
}

.features-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list .fa-check-circle {
    color: #27c93f;
}

.features-list .fa-times-circle {
    color: #ff5f56;
    opacity: 0.5;
}

.pricing-card .btn-primary, .pricing-card .btn-secondary-outline {
    width: 100%;
    display: block;
}

/* CTA Section */
.cta-section {
    max-width: 1200px;
    margin: 100px auto;
    padding: 60px 40px;
    text-align: center;
    background: var(--accent-color);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.3);
}

.cta-section h2 {
    font-size: 32px;
    color: white;
    margin-bottom: 15px;
}

.cta-section p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
    font-size: 18px;
}

.cta-section .btn-primary {
    background: white;
    color: var(--accent-color);
    box-shadow: none;
}

/* =========================================
   Chat Interface Enhancements
   ========================================= */

/* Chat Header */
.chat-header {
    height: 60px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    z-index: 5;
}

.model-selector {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background 0.2s;
    color: #333;
}

.model-selector:hover {
    background: #f0f0f0;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    background: transparent;
    border: none;
    color: #7f8c8d;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.action-btn:hover {
    background: #f0f0f0;
    color: var(--accent-color);
}

/* Sidebar Enhancements */
.sidebar-header {
    margin-bottom: 20px;
}

.history-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.history-label {
    font-size: 12px;
    color: #95a5a6;
    padding: 0 10px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.history-item {
    padding: 10px;
    border-radius: 6px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-item:hover {
    background: #f0f8ff;
    color: var(--accent-color);
}

.history-item.active {
    background: #f0f8ff;
    color: var(--accent-color);
    font-weight: 600;
}

.user-profile {
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.user-info {
    flex: 1;
}

.user-info .name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.user-info .plan {
    font-size: 12px;
    color: #7f8c8d;
}

.settings-icon {
    color: #95a5a6;
    cursor: pointer;
    transition: color 0.2s;
}

.settings-icon:hover {
    color: var(--accent-color);
}

/* Welcome Screen */
.welcome-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 20px;
}

.welcome-screen h1 {
    font-size: 32px;
    margin-bottom: 40px;
    font-weight: 600;
    color: #2c3e50;
}

.suggestion-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 600px;
    width: 100%;
}

.suggestion-card {
    background: #fff9c4; /* Sticky Note */
    border: none;
    padding: 15px;
    border-radius: 2px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    transform: rotate(-1deg);
}

.suggestion-card:nth-child(2) { background: #e1f5fe; transform: rotate(1deg); }
.suggestion-card:nth-child(3) { background: #ffccbc; transform: rotate(-1deg); }
.suggestion-card:nth-child(4) { background: #dcedc8; transform: rotate(1deg); }

.suggestion-card:hover {
    transform: scale(1.05) rotate(0deg);
    box-shadow: 5px 5px 10px rgba(0,0,0,0.15);
}

.suggestion-card .icon {
    font-size: 24px;
}

.suggestion-card .text {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

/* =========================================
   Settings Page Styles
   ========================================= */

.settings-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    width: 100%;
    overflow-y: auto;
    height: 100%;
}

.settings-title {
    font-size: 32px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    color: #2c3e50;
}

.settings-section {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.settings-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-control {
    width: 100%;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 12px;
    color: #333;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: var(--accent-color);
}

.form-hint {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 5px;
}

.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px; width: 16px;
    left: 4px; bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider { background-color: var(--accent-color); }
input:checked + .slider:before { transform: translateX(26px); }

/* =========================================
   Auth Page Styles
   ========================================= */

.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: #f0f2f5;
    background-image: radial-gradient(#bdc3c7 1px, transparent 1px);
    background-size: 20px 20px;
    overflow: hidden;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.auth-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header .logo {
    display: inline-block;
    margin-bottom: 10px;
    text-decoration: none;
}

.auth-header p {
    color: #666;
    font-size: 14px;
}

.auth-divider {
    margin: 12px 0;
    text-align: center;
    position: relative;
}

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

.auth-divider span {
    background: white;
    padding: 0 10px;
    color: #999;
    font-size: 12px;
    position: relative;
    z-index: 2;
}

.btn-google {
    width: 100%;
    background: white;
    color: #333;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s;
}

.btn-google:hover {
    background: #f1f1f1;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

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

/* =========================================
   Gallery Page Styles
   ========================================= */

.gallery-container {
    padding: 40px;
    height: 100%;
    overflow-y: auto;
}

.gallery-title {
    font-size: 32px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    color: #2c3e50;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: var(--accent-color);
}

.gallery-image {
    position: relative;
    height: 200px;
    background: #f8f9fa;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-card:hover .gallery-image img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.btn-icon {
    background: white;
    color: #0b0e14;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-icon:hover {
    transform: scale(1.1);
    background: var(--accent-color);
    color: white;
}

.gallery-info {
    padding: 15px;
}

.gallery-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.gallery-info p {
    font-size: 12px;
    color: #7f8c8d;
}

/* =========================================
   Image Modal / Lightbox
   ========================================= */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {transform:scale(0.8); opacity: 0;} 
    to {transform:scale(1); opacity: 1;}
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #fff;
    padding: 20px 0;
    font-size: 18px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.close-modal:hover {
    color: var(--accent-color);
}