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

:root {
    --primary: #00d4d4;
    --secondary: #00a8a8;
    --dark: #0a0a0a;
    --darker: #000;
    --light: #f0f0f0;
    --text: #e5e5e5;
    --border: #222;
}

html {
    scroll-behavior: smooth;
}

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

body.dashboard-body {
    background: var(--dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== NAVBAR ===== */
.navbar {
    background: var(--darker);
    border-bottom: 1px solid var(--border);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

.btn-login {
    color: var(--text);
    text-decoration: none;
    padding: 0.6rem 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

.btn-signup {
    background: #fff;
    color: #000;
    padding: 0.6rem 1.5rem;
    border-radius: 0.3rem;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-signup:hover {
    background: var(--primary);
    color: #000;
}

/* ===== BUTTONS ===== */
.btn-primary {
    background: var(--primary);
    color: #000;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

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

.btn-secondary {
    background: transparent;
    color: var(--text);
    padding: 0.75rem 2rem;
    border: 1px solid var(--border);
    border-radius: 0.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

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

.btn-upload {
    background: transparent;
    color: var(--primary);
    padding: 0.75rem 2rem;
    border: 2px solid var(--primary);
    border-radius: 0.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

.btn-upload:hover {
    background: var(--primary);
    color: #000;
}

.btn-start {
    background: transparent;
    color: var(--text);
    padding: 0.75rem 2rem;
    border: 1px solid var(--border);
    border-radius: 0.3rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 2rem;
}

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

/* ===== HERO SECTION ===== */
.hero {
    padding: 6rem 0;
    text-align: center;
}

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

.badge {
    display: inline-block;
    background: rgba(0, 212, 212, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #fff;
}

.hero p {
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.upload-area {
    border: 2px dashed var(--border);
    border-radius: 0.5rem;
    padding: 3rem;
    background: rgba(0, 212, 212, 0.02);
    margin: 3rem 0;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(0, 212, 212, 0.05);
}

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

.upload-area h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.upload-area p {
    color: #999;
    margin-bottom: 1.5rem;
}

.category-tags {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(0, 212, 212, 0.1);
    border: 1px solid var(--primary);
    color: var(--text);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary);
    color: #000;
}

/* ===== PRICING PAGE ===== */
.pricing-page {
    padding: 6rem 0;
}

.pricing-header {
    text-align: center;
    margin-bottom: 4rem;
}

.pricing-header h1 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.pricing-header p {
    color: #999;
    font-size: 1.1rem;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto 4rem;
}

.pricing-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: 0.5rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: var(--primary);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.08);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #000;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.plan-price span {
    font-size: 0.8rem;
    color: #999;
    margin-left: 0.5rem;
}

.plan-features {
    list-style: none;
    text-align: left;
    margin: 2rem 0;
    color: #aaa;
}

.plan-features li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
}

.plan-features li:last-child {
    border: none;
}

.faq-section {
    max-width: 700px;
    margin: 4rem auto 0;
    text-align: center;
}

.faq-section h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 2rem;
}

.faq-items {
    text-align: left;
}

.faq-item {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid var(--border);
    padding: 2rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
}

.faq-item h3 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: #aaa;
}

/* ===== FEATURES PAGE ===== */
.features-page {
    padding: 6rem 0;
}

.features-header {
    text-align: center;
    margin-bottom: 4rem;
}

.features-header h1 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.features-header p {
    color: #999;
}

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

.feature-item {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--primary);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 0.8rem;
}

.feature-item p {
    color: #aaa;
    font-size: 0.95rem;
}

/* ===== EXAMPLES PAGE ===== */
.examples-page {
    padding: 6rem 0;
}

.examples-header {
    text-align: center;
    margin-bottom: 4rem;
}

.examples-header h1 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.examples-header p {
    color: #999;
}

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

.example-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.example-card:hover {
    border-color: var(--primary);
}

.example-preview {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.example-card h3 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.example-card p {
    color: #aaa;
    font-size: 0.9rem;
}

/* ===== MODAL ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--dark);
    border: 1px solid var(--border);
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    position: relative;
    border-radius: 0.5rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
    transition: color 0.3s ease;
}

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

.auth-form {
    animation: fadeIn 0.3s ease;
}

.auth-form.hidden {
    display: none;
}

.auth-form h2 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

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

.auth-form input {
    background: rgba(50, 50, 50, 0.5);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.8rem;
    border-radius: 0.3rem;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.auth-form input::placeholder {
    color: #666;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    font-size: 0.9rem;
    cursor: pointer;
}

.checkbox input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.auth-form button {
    margin-top: 1rem;
}

.auth-switch {
    text-align: center;
    margin-top: 1rem;
    color: #999;
    font-size: 0.9rem;
}

.auth-switch a {
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* ===== DASHBOARD ===== */
.dashboard {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--darker);
    border-right: 1px solid var(--border);
    padding: 2rem 1.5rem;
    position: fixed;
    height: 100vh;
    width: 250px;
    overflow-y: auto;
}

.sidebar-logo {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    color: #fff;
}

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

.nav-item {
    color: var(--text);
    text-decoration: none;
    padding: 0.8rem;
    border-radius: 0.3rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: block;
}

.nav-item:hover {
    background: rgba(0, 212, 212, 0.1);
    color: var(--primary);
}

.nav-item.active {
    background: rgba(0, 212, 212, 0.2);
    color: var(--primary);
}

.btn-logout {
    width: 100%;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.8rem;
    border-radius: 0.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.dashboard-main {
    grid-column: 2;
    background: var(--dark);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid var(--border);
    background: rgba(20, 20, 20, 0.8);
}

.dashboard-header h1 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.3rem;
}

.dashboard-header p {
    color: #999;
    font-size: 0.9rem;
}

.header-user {
    color: var(--text);
}

.dashboard-content {
    padding: 2rem;
}

.tab-content {
    animation: fadeIn 0.3s ease;
}

.tab-content.hidden {
    display: none;
}

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

.stat-box {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
}

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

.stat-label {
    color: #999;
    font-size: 0.9rem;
}

.quick-actions {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 0.5rem;
}

.quick-actions h2 {
    color: #fff;
    margin-bottom: 1.5rem;
}

.quick-actions button {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
}

.upload-form {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 0.5rem;
    max-width: 600px;
}

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

.form-group label {
    display: block;
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    background: rgba(50, 50, 50, 0.5);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.8rem;
    border-radius: 0.3rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.file-input {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: 0.3rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-input:hover {
    border-color: var(--primary);
}

.file-input input {
    display: none;
}

.file-input span {
    color: #999;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-item {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-info h4 {
    color: #fff;
    margin-bottom: 0.3rem;
}

.project-info p {
    color: #999;
    font-size: 0.85rem;
}

.settings-box {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.settings-box h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.settings-box p {
    color: #aaa;
    margin-bottom: 0.5rem;
}

.settings-box button {
    margin-top: 1rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #999;
}

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

/* ===== ICON STYLES ===== */
.icon-check,
.icon-warning {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* Icon colors */
.icon-check {
    color: var(--primary);
}

.icon-warning {
    color: #ff6b6b;
}

/* Make sure SVGs in buttons size properly */
.btn-primary svg,
.btn-secondary svg {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* Sidebar nav icon sizing */
.sidebar-nav svg {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    vertical-align: middle;
}

/* Feature icon sizing */
.feature-icon,
.example-preview {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    display: block;
}

.feature-icon svg,
.example-preview svg {
    width: 100%;
    height: 100%;
}

/* Empty state icon sizing */
.empty-state svg {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    display: block;
    opacity: 0.5;
}

/* Upload area icon */
.upload-area .upload-icon svg {
    width: 48px;
    height: 48px;
}

/* Auth modal close button */
.modal-close {
    font-size: 1.5rem;
}

/* Replace the close button with our SVG close icon */
.modal-close::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 6L6 18M6 6l12 12' stroke='%23e5e5e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* Override the close button text */
.modal-close {
    text-indent: -9999px;
    width: 24px;
    height: 24px;
    padding: 0;
}

.modal-close:hover::before {
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 6L6 18M6 6l12 12' stroke='%2300d4d4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

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

    .sidebar {
        position: fixed;
        left: -250px;
        width: 250px;
        height: 100vh;
        z-index: 999;
        transition: left 0.3s ease;
    }

    .sidebar.active {
        left: 0;
    }

    .dashboard-main {
        grid-column: 1;
    }

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

    .pricing-card.featured {
        transform: scale(1);
    }

    .nav-links {
        gap: 1rem;
    }

    .auth-buttons {
        gap: 0.5rem;
    }

    .category-tags {
        gap: 0.5rem;
    }

    .pricing-cards,
    .features-grid,
    .examples-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 20px;
    }
}
