/* Estilos gerais */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Cabeçalho */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-text {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

/* Carrossel */
.carousel-container {
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.carousel {
    width: 100%;
}

.carousel-item {
    position: relative;
    height: 400px;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 5px;
    padding: 15px;
    bottom: 20px;
    transform: translateX(-50%);
}

.carousel-caption h3 {
    color: white;
    margin-bottom: 10px;
    font-weight: 600;
}

.carousel-caption p {
    color: white;
    margin-bottom: 0;
}

/* Cards */
.card {
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-title {
    color: var(--primary-color);
    font-weight: 600;
}

/* Estilo específico para links no card de Notícias e Eventos */
/*
.card .card-header:has(h5:contains("Notícias")) + .card-body a,
.card .card-header h5:contains("Notícias") ~ .card-body a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.card .card-header:has(h5:contains("Notícias")) + .card-body a:hover,
.card .card-header h5:contains("Notícias") ~ .card-body a:hover {
    color: var(--primary-color);
}

/* Seletor mais simples e compatível com todos os navegadores */
/*
.card-header:contains("Notícias") ~ .card-body a,
.card-header h5:contains("Notícias") ~ .card-body a {
    text-decoration: none !important;
    color: #333 !important;
    transition: color 0.3s ease;
}

.card-header:contains("Notícias") ~ .card-body a:hover,
.card-header h5:contains("Notícias") ~ .card-body a:hover {
    color: var(--primary-color) !important;
}*/

/* Seletor específico para o card de notícias */
.quick-access-card a {
    text-decoration: none !important;
    color: #333 !important;
    transition: color 0.3s ease;
}

.quick-access-card a:hover {
    color: var(--primary-color) !important;
}

/* Botões */
.btn {
    border-radius: 4px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s;
}

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

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Formulários */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.input-group-text {
    background-color: var(--light-color);
}

/* Rodapé */
footer {
    background-color: var(--dark-color);
}

footer a {
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--info-color) !important;
}

/* Responsividade */
@media (max-width: 767.98px) {
    .carousel-item {
        height: 250px;
    }
    
    .carousel-caption {
        padding: 10px;
    }
    
    .carousel-caption h3 {
        font-size: 1.2rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .carousel-item {
        height: 200px;
    }
}

/* Estilos para autenticação */
.auth-card {
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.auth-card .card-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
}

/* Estilos para área administrativa */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background-color: var(--dark-color);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    transition: all 0.3s;
    z-index: 1000;
}

.sidebar-header {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-user {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.user-info {
    overflow: hidden;
}

.user-name {
    margin: 0;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.8;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin: 0;
}

.sidebar-menu li a {
    display: block;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-menu li.active a {
    background-color: var(--primary-color);
    color: white;
}

.sidebar-menu li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.admin-content {
    flex: 1;
    margin-left: 250px;
    padding: 20px;
    transition: all 0.3s;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.toggle-sidebar {
    background: none;
    border: none;
    color: var(--dark-color);
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
}

.close-sidebar {
    color: white;
    cursor: pointer;
    display: none;
}

.stat-card .card-body {
    display: flex;
    align-items: center;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 1.5rem;
}

.stat-details {
    flex: 1;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.stat-label {
    margin: 0;
    color: var(--secondary-color);
}

.quick-actions .btn {
    text-align: left;
    padding: 0.75rem 1rem;
}

.quick-actions .btn i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Responsividade para área administrativa */
@media (max-width: 767.98px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    
    .admin-content {
        margin-left: 0;
    }
    
    .toggle-sidebar, .close-sidebar {
        display: block;
    }
    
    .admin-sidebar.show {
        transform: translateX(0);
    }
}

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

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