:root {
    --color-primary: #3553bc !important; /* Azul principal */
    --color-primary-light: #b0bff5; /* Azul claro */
    --color-primary-hover: #4a6ae0 !important; /* Azul hover */

    --color-accent: #b769e0 !important; /* Roxo secundário */
    --color-accent-light: #d7a9f3; /* Roxo claro */

    --color-background: #f5f6fa; /* Fundo neutro claro */
    --color-surface: #ffffff; /* Superfícies brancas */

    --color-text: #1f1f1f;
    --color-text-muted: #6b6b6b;

    --color-success: #7c5fd0 !important; /* Verde substituído por roxo de destaque */
    --color-warning: #ffa973 !important; /* Laranja suave */
    --color-error: #ff5249 !important; /* Vermelho alaranjado vibrante */

    --font-serif: "Poppins", sans-serif;
    --font-sans: "Poppins", sans-serif;

    /* Brand gradient mantido */
    --brand-gradient-start: #064baf;
    --brand-gradient-end: #6c0392;
    --gradient-bg: linear-gradient(
        135deg,
        var(--brand-gradient-start) 0%,
        var(--brand-gradient-end) 100%
    );

    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;

    --border-radius-sm: 20px;
    --border-radius-md: 20px;
    --border-radius-lg: 20px;

    --shadow-soft: 0 2px 4px rgba(0, 0, 0, 0.06);

    --accent-purple: #b769e0;
    --accent-purple-light: #d7a9f3;
    --accent-purple-dark: #7c5fd0;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: "Poppins", sans-serif !important;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Brand gradient background class */
.gradient-bg {
    background: var(--gradient-bg);
    min-height: 100vh;
    background-attachment: fixed;
}

.text-primary {
    color: var(--brand-gradient-end) !important;
}

/* Brand gradient header class */
.gradient-header {
    background: var(--gradient-bg);
    color: var(--white);
    border: none;
}

/* Brand gradient button class */
.gradient-btn {
    background: var(--gradient-bg);
    color: var(--white);
    border: none;
    transition: all 0.3s ease;
}

.gradient-btn:hover {
    background: linear-gradient(135deg, var(--color-primary-hover), var(--color-accent));
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Brand gradient outline button class */
.gradient-btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    transition: all 0.3s ease;
}

.gradient-btn-outline:hover {
    background: var(--gradient-bg);
    color: var(--white);
    border-color: var(--color-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Brand gradient text class */
.text-gradient {
    background: var(--gradient-bg);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* ===== NAVBAR STYLES ===== */
.custom-navbar {
    background: var(--white);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-primary-light);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: var(--space-md);
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease;
    gap: 8px;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-icon {
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
}

.logo-link:hover .logo-icon {
    box-shadow: var(--shadow-md);
}

/* Text-based logo styles */
.logo-text {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.logo-text-footer {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-purple-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-logo:hover .logo-text-footer {
    color: var(--accent-purple-dark);
}

.logo-text-email {
    font-family: var(--font-sans);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-purple-dark);
    text-align: center;
    display: block;
    margin-bottom: 1rem;
}

/* Logo image styles */
.logo-image {
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
}

.logo-link:hover .logo-image {
    box-shadow: var(--shadow-md);
}

.footer-logo-image {
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
}

.footer-logo:hover .footer-logo-image {
    box-shadow: var(--shadow-md);
}

.email-logo-image {
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
    margin-bottom: 1rem;
}

.email-logo:hover .email-logo-image {
    box-shadow: var(--shadow-md);
}

.login-logo-image {
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
}

.signup-logo-image {
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.nav-outline,
.nav-solid {
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.nav-outline {
    color: var(--color-primary);
    background: transparent;
    border: 1px solid var(--color-primary-light);
}

.nav-outline:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary);
    color: var(--color-primary-hover);
    transform: translateY(-1px);
}

.nav-solid {
    background: var(--gradient-bg);
    color: var(--white);
    border: 1px solid var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.nav-solid:hover {
    background: linear-gradient(135deg, var(--color-primary-hover), var(--color-accent));
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Profile Dropdown */
.profile-dropdown {
    position: relative;
    cursor: pointer;
}

.avatar-icon {
    border-radius: 50%;
    border: 2px solid var(--color-primary-light);
    transition: all 0.3s ease;
}

.profile-dropdown:hover .avatar-icon {
    border-color: var(--color-primary);
    transform: scale(1.05);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border: 1px solid var(--color-primary-light);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    min-width: 200px;
    padding: 8px 0;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.profile-dropdown.active .dropdown-menu,
.mobile-profile.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: var(--color-primary-light);
    color: var(--color-primary-hover);
}

.dropdown-menu a:first-child {
    border-radius: 12px 12px 0 0;
}

.dropdown-menu a:last-child {
    border-radius: 0 0 12px 12px;
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--color-accent);
    color: var(--white);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border: 2px solid var(--white);
}

/* Mobile Profile */
.mobile-profile {
    display: none;
    position: relative;
    cursor: pointer;
}

.mobile-login {
    display: none;
    padding: 10px 16px;
    background: var(--gradient-bg);
    color: var(--white);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.mobile-login:hover {
    background: linear-gradient(135deg, var(--color-primary-hover), var(--color-accent));
    transform: translateY(-1px);
}

/* ===== FOOTER STYLES ===== */
.custom-footer {
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
    color: var(--white);
    padding: 0;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.custom-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-md);
    position: relative;
    z-index: 1;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-col {
    flex: 1;
}

.company-info {
    max-width: 300px;
}

.logo-copyright-container {
    margin-bottom: var(--space-md);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.1);
}

.logo-icon-footer {
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.copyright {
    color: var(--gray-400);
    font-size: 14px;
    margin: var(--space-md) 0 0 0;
    line-height: 1.5;
}

.footer-links-container {
    display: flex;
    gap: var(--space-xl);
    flex: 2;
}

.footer-col.links h3 {
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 var(--space-md) 0;
    position: relative;
}

.footer-col.links h3::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 65%;
    height: 2px;
    background: var(--accent-purple);
    border-radius: 1px;
}

.footer-col.links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col.links li {
    margin-bottom: var(--space-sm);
}

.footer-col.links a {
    color: var(--gray-300);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col.links a:hover {
    color: var(--accent-purple-light);
    transform: translateX(4px);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--accent-purple);
    transform: translateY(-2px);
}

.programmer-credit {
    text-align: center;
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--gray-700);
    color: var(--gray-400);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.programmer-link {
    color: var(--accent-purple-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.programmer-link::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-purple);
    transition: width 0.3s ease;
    border-radius: 1px;
}

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

.programmer-link:hover::after {
    width: 100%;
}

.bi-code-slash {
    color: var(--accent-purple);
    transition: transform 0.3s ease;
}

.programmer-credit:hover .bi-code-slash {
    transform: rotate(360deg);
}

/* Synchronize both animations when hovering over the entire credit section */
.programmer-credit:hover .programmer-link::after {
    width: 100%;
}

/* Mobile Footer Menu */
.mobile-footer-menu {
    display: none;
    background: var(--gray-800);
    border-top: 1px solid var(--gray-700);
    padding: var(--space-md);
    position: sticky;
    bottom: 0;
    z-index: 999;
}

.mobile-footer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--gray-400);
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
    padding: var(--space-sm);
    border-radius: 8px;
}

.mobile-footer-item:hover,
.mobile-footer-item.active {
    color: var(--color-primary);
    background: rgba(53, 83, 188, 0.1);
}

.mobile-footer-item svg {
    width: 20px;
    height: 20px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 var(--space-sm);
        height: 60px;
    }

    .nav-buttons {
        display: none;
    }

    .mobile-profile,
    .mobile-login {
        display: block;
    }

    .footer-main {
        flex-direction: column;
        gap: var(--space-lg);
        text-align: center;
    }

    .footer-links-container {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .footer-col.links h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .mobile-footer-menu {
        display: flex;
        justify-content: space-around;
    }

    .footer-container {
        padding: var(--space-lg) var(--space-sm);
    }
}

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

    .logo-icon {
        width: 32px;
        height: 32px;
    }

    .footer-links-container {
        gap: var(--space-md);
    }

    .footer-col.links h3 {
        font-size: 16px;
    }

    .footer-col.links a {
        font-size: 13px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-navbar,
.custom-footer {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.nav-outline:focus,
.nav-solid:focus,
.dropdown-menu a:focus,
.footer-col.links a:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .custom-navbar {
        border-bottom: 2px solid var(--color-primary);
    }

    .nav-outline {
        border: 2px solid var(--color-primary);
    }

    .dropdown-menu {
        border: 2px solid var(--color-primary);
    }
}
