/* Variáveis globais */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --font-size-base: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-xxl: 24px;
    --primary-600: #4F46E5;
    --primary-700: #4338CA;
    --secondary-600: #10B981;
    --secondary-700: #059669;
    --accent-600: #F59E0B;
    --accent-700: #D97706;
    --link-color: #2563eb; /* Cor padrão para links */
    --link-hover-color: #1d4ed8; /* Cor para hover em links */
}

/* Reset de fonte base */
body {
    font-size: var(--font-size-base);
    line-height: 1.6;
    font-family: 'Roboto', sans-serif;
}

/* Estilos para links */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

/* Topbar styles */
.topbar {
    background-color: rgba(33, 37, 41, 0.98);
    transition: all 0.3s ease;
    padding: 12px 0;
    font-size: var(--font-size-base);
}

.topbar.transparent {
    background-color: rgba(33, 37, 41, 0.85);
    backdrop-filter: blur(5px);
}

.topbar .nav-link {
    font-size: var(--font-size-base);
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.topbar .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Category Navbar styles */
.category-navbar {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 0;
}

.category-navbar .nav-link {
    color: var(--dark-color);
    font-size: var(--font-size-base);
    font-weight: 500;
    padding: 1.2rem 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.category-navbar .nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.category-navbar .nav-link:hover {
    color: var(--primary-color);
}

.category-navbar .nav-link:hover:after {
    width: 100%;
}

/* Dropdown styles */
.category-navbar .dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.category-navbar .dropdown-item {
    font-size: var(--font-size-base);
    padding: 0.7rem 1.5rem;
    transition: all 0.3s ease;
}

.category-navbar .dropdown-item:hover {
    background-color: rgba(0,123,255,0.1);
    color: var(--primary-color);
    padding-left: 2rem;
}

/* Sidebar styles */
#sidebar-left, #sidebar-right {
    border-right: 1px solid rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

#sidebar-right {
    border-right: none;
    border-left: 1px solid rgba(0,0,0,0.1);
}

.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    font-weight: 600;
    color: var(--dark-color);
}

.sidebar-content {
    padding: 1rem;
}

/* Mobile sidebar styles */
#mobile-sidebar-left, #mobile-sidebar-right {
    transition: transform 0.3s ease-in-out;
}

#mobile-sidebar-left {
    transform: translateX(-100%);
}

#mobile-sidebar-right {
    transform: translateX(100%);
}

#mobile-sidebar-left.active {
    transform: translateX(0);
}

#mobile-sidebar-right.active {
    transform: translateX(0);
}

/* Footer styles */
.footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 4rem 0;
    margin: 0;
    width: 100%;
}

.footer-content {
    margin: 0;
    padding: 0 15px;
}

.footer h5 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.footer h5:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer p {
    font-size: var(--font-size-base);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer ul li {
    margin-bottom: 1rem;
}

.footer ul li a {
    font-size: var(--font-size-base);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer ul li a:hover {
    color: var(--primary-color) !important;
    padding-left: 10px;
}

.footer .contact-info li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer .contact-info i {
    width: 30px;
    font-size: var(--font-size-lg);
    color: var(--primary-color);
}

/* Responsividade */
@media (max-width: 768px) {
    :root {
        --font-size-base: 14px;
        --font-size-lg: 16px;
        --font-size-xl: 18px;
        --font-size-xxl: 20px;
    }

    .category-navbar .nav-link {
        padding: 1rem;
    }

    .footer {
        padding: 2rem 0;
    }
    
    #sidebar-left, #sidebar-right {
        display: none;
    }
}

/* Animações suaves */
.transition-smooth {
    transition: all 0.3s ease-in-out;
}

/* Melhorias de acessibilidade */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Ajustes para o carousel */
.carousel-item img {
    object-fit: cover;
    object-position: center;
}

/* Ajustes para o menu mobile */
@media (max-width: 768px) {
    .mobile-menu {
        display: none;
    }
    
    .mobile-menu.active {
        display: block;
    }
}

/* Efeitos de hover */
.hover-scale {
    transition: transform 0.3s ease;
}

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

/* Sombras personalizadas */
.shadow-custom {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-custom-hover:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Gradientes */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--secondary-600) 0%, var(--secondary-700) 100%);
}

/* Botões personalizados */
.btn-custom {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-custom-primary {
    background-color: var(--primary-600);
    color: white;
}

.btn-custom-primary:hover {
    background-color: var(--primary-700);
}

/* Cards personalizados */
.card-custom {
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Badges personalizados */
.badge-custom {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-custom-primary {
    background-color: var(--primary-600);
    color: white;
}

.badge-custom-secondary {
    background-color: var(--secondary-600);
    color: white;
}

/* Utilitários */
.text-shadow {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.backdrop-blur {
    backdrop-filter: blur(8px);
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease-in-out;
}

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

.animate-slideInUp {
    animation: slideInUp 0.5s ease-out;
}

/* Responsividade */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Melhorias de acessibilidade para foco */
*:focus {
    outline: 2px solid var(--primary-600);
    outline-offset: 2px;
}

/* Estilos para formulários */
input:focus, textarea:focus, select:focus {
    border-color: var(--primary-600);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* Estilos para links */
a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Estilos para listas */
ul, ol {
    padding-left: 1.5rem;
}

/* Estilos para imagens */
img {
    max-width: 100%;
    height: auto;
}

/* Estilos para tabelas */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

th {
    font-weight: 600;
    text-align: left;
    background-color: #f9fafb;
}

/* Estilos para blockquotes */
blockquote {
    border-left: 4px solid var(--primary-600);
    padding-left: 1rem;
    margin-left: 0;
    font-style: italic;
    color: #4b5563;
}

/* Estilos para código */
code {
    background-color: #f3f4f6;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: monospace;
    font-size: 0.875rem;
}

/* Estilos para pre */
pre {
    background-color: #1f2937;
    color: #f3f4f6;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    font-family: monospace;
    font-size: 0.875rem;
    line-height: 1.5;
} 