:root {
    --primary: #7c3aed;
    --primary-dark: #6d28d9;
    --dark: #111827;
    --gray-dark: #374151;
    --gray: #6b7280;
    --gray-light: #e5e7eb;
    --gray-lighter: #f9fafb;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 8px;
}

html {
    scroll-behavior: smooth;
}

.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 40px;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
}

.nav-brand i {
    color: var(--primary);
    font-size: 1.8rem;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.brand-pro {
    color: var(--primary);
    font-weight: 800;
    margin-left: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-dark);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px 2px 0 0;
}

.auth-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-link {
    text-decoration: none;
    color: var(--gray-dark);
    font-weight: 500;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.auth-link:hover {
    color: var(--primary);
}

.auth-btn {
    background-color: var(--primary);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: var(--radius);
    transition: background-color 0.2s ease;
}

.auth-btn:hover {
    background-color: var(--primary-dark);
}

.auth-separator {
    color: var(--gray-light);
}

.logout-btn {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background-color: var(--gray-lighter);
    color: var(--primary);
}

.profile-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--gray-lighter);
    border-radius: 30px;
    text-decoration: none;
    color: var(--gray-dark);
    transition: all 0.2s ease;
}

.profile-chip:hover {
    background: var(--gray-light);
    color: var(--primary);
}

.profile-chip.active {
    background: var(--primary);
    color: white;
}

.profile-chip.active .settings-icon-inline {
    color: white;
}

.settings-icon-inline {
    font-size: 14px;
    color: var(--gray);
    transition: all 0.2s ease;
}

.profile-chip:hover .settings-icon-inline {
    color: var(--primary);
    transform: rotate(30deg);
}

.user-name {
    font-weight: 500;
    font-size: 18px;
}

.logout-form {
    margin-right: 5px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 1000px) {
    .nav-links {
        gap: 20px;
        overflow-x: auto;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links::-webkit-scrollbar {
        height: 3px;
    }

    .nav-links::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 3px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        height: 60px;
    }

    .nav-brand {
        font-size: 1.3rem;
    }

    .nav-brand i {
        font-size: 1.5rem;
    }

    .brand-name {
        font-size: 1.3rem;
    }

    .profile-chip .user-name {
        display: none;
    }

    .profile-chip {
        padding: 8px;
    }
}

.footer {
    background-color: var(--dark);
    color: var(--white);
    padding-top: 50px;
    margin-top: 60px;
}

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

.footer-links-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.footer-links-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links-row a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.footer-links-row a:hover {
    color: #4a6bff;
}

.footer-brand .nav-brand {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--white);
}

.brand-name-bottom {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.footer-tagline {
    color: #9ca3af;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding: 25px 0;
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-locale {
    font-size: 0.85rem;
    color: #6b7280;
}

@media (max-width: 768px) {
    .footer-links-row {
        gap: 15px;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .footer-links-row a {
        white-space: normal;
        text-align: center;
        font-size: 13px;
    }
}