/* Google Fonts - Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Premium Color Palette */
    --bg-dark: #0a0a0c;
    --bg-panel: #141419;
    --primary: #6c5ce7;
    --primary-hover: #5b4cc4;
    --secondary: #00cec9;
    --accent: #fd79a8;

    --text-main: #ffffff;
    --text-muted: #b2b2b2;

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    --font-main: 'Inter', sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

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

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

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



/* Components */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #fff;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.6);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--glass-bg);
    border-color: var(--primary);
}

.btn-block {
    width: 100%;
    margin-bottom: 16px;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-text {
    border: none !important;
    padding-left: 0;
}

.card {
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(108, 92, 231, 0.3);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
}

/* Form Elements */
input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-dark);
    /* Slightly darker than panel */
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

input:focus {
    border-color: var(--primary);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.register-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.register-grid label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

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

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* --- Layout & Responsive --- */

.sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: var(--bg-panel);
    border-right: 1px solid var(--glass-border);
    padding: 30px;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.3s ease;
}

.main-content {
    margin-left: 260px;
    padding: 40px;
    transition: margin-left 0.3s ease;
}

/* Nav Items */
.nav-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    margin-bottom: 4px;
    transition: all 0.2s;
    text-decoration: none;
}

.nav-item:hover,
.nav-item.active {
    background: var(--glass-bg);
    color: var(--text-main);
}

.nav-icon {
    margin-right: 12px;
    font-size: 1.2rem;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 101;
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    padding: 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

/* Landing Page Styles */
.navbar {
    padding: 20px 0;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 10;
}

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

.navbar .logo {
    font-weight: 800;
    font-size: 1.5rem;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    /* Space for navbar */
    padding-bottom: 40px;
}

.hero-bg-globe {
    position: absolute;
    width: 500px;
    height: 500px;
    opacity: 0.15;
    filter: blur(100px);
    border-radius: 50%;
    z-index: 0;
}

.globe-primary {
    top: -100px;
    left: -100px;
    background: var(--primary);
}

.globe-secondary {
    bottom: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: var(--secondary);
    opacity: 0.1;
    filter: blur(120px);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-login-wrapper {
    animation-delay: 0.2s;
}

.login-card {
    padding: 40px;
}

.login-card h2 {
    margin-bottom: 8px;
}

.login-card .subtitle {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.auth-toggle-text {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-toggle-text a {
    color: var(--primary);
}

/* Footer */
.footer-tech {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 20px;
    z-index: 10;
}

.footer-tech a {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-decoration: underline;
}

.doc-header {
    padding-top: 40px;
    padding-bottom: 60px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
    }

    .mobile-toggle {
        display: block;
    }

    /* Adjust Grids for Mobile */
    .stat-card {
        margin-bottom: 16px;
    }

    /* Stack Grids */
    div[style*="display: grid"] {
        grid-template-columns: 1fr !important;
    }

    /* Adjust Flex-between headers */
    div[style*="display: flex; justify-content: space-between"] {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 20px;
    }

    div[style*="align-items: flex-end"] {
        align-items: flex-start !important;
    }

    /* Content Page Layout */
    .content-container>div[style*="grid-template-columns: 2fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    .video-wrapper {
        margin-bottom: 20px;
        box-shadow: none;
    }

    /* Responsive Typography Overrides */
    h1[style] {
        font-size: 2.5rem !important;
    }

    /* Landing Page Mobile */
    .navbar {
        position: absolute;
        width: 100%;
        top: 0;
        padding: 20px 0;
    }

    .navbar-container {
        justify-content: center !important;
    }

    .navbar .logo {
        font-size: 1.8rem;
        /* Increased size from 1.5rem */
        text-align: center;
    }

    .hero-section {
        align-items: flex-start;
        /* Move content up */
        padding-top: 140px;
        /* Increased padding to clear larger header */
        padding-bottom: 40px;
        min-height: 100vh;
        /* Maintain full height */
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        /* Reduced gap from 40px */
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        text-wrap: balance;
    }

    /* .hero-content p moved to grouped selector below */

    .hero-buttons {
        justify-content: center;
    }

    .register-grid {
        grid-template-columns: 1fr;
    }

    .hero-bg-globe {
        width: 300px;
        height: 300px;
    }

    .footer-tech {
        position: relative;
        bottom: auto;
        padding: 20px;
        margin-top: 20px;
        text-align: center;
        width: 100%;
    }

    .doc-header {
        text-align: center;
    }

    .doc-header h1 {
        text-wrap: balance;
    }

    .doc-header p,
    .doc-text,
    .doc-section li,
    .hero-content p {
        text-align: justify;
        -webkit-hyphens: auto;
        -moz-hyphens: auto;
        hyphens: auto;
    }
}