/*
candidatos.css
 */
:root {
    --primary-color: #CC0000;
    --primary-dark: #8B0000;
    --primary-light: #FF5555;
    --accent-color: #FFD700;
    --bg-light: #fff5f5;
    --bg-gradient: linear-gradient(135deg, #fff5f5 0%, #ffe6e6 100%);
    --shadow-color: rgba(204, 0, 0, 0.15);
    --text-primary: #343a40;
    --text-secondary: #6c757d;
    --border-color: rgba(204, 0, 0, 0.1);
    --card-radius: 20px;
    --transition: all 0.3s ease;

    --status-active: #28a745;
    --status-inactive: #dc3545;
    --status-neutral: #6c757d;
}

html, body {
    height: 100%;
    background: var(--bg-gradient);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar {
    background-color: white;
    box-shadow: 0 4px 12px var(--shadow-color);
    padding: 0.8rem 1rem;
}

.navbar-brand {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    font-size: 1.6rem;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.main-container {
    min-height: calc(100vh - 70px);
    padding: 2rem 1rem;
}

.content-card {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: var(--card-radius);
    box-shadow: 0 15px 35px var(--shadow-color);
    animation: fadeIn 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.card-header {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 1.8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.section-title i {
    font-size: 1.6rem;
}

.card-body {
    padding: 2rem;
}

/* Stats Cards */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.stat-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Tools Container */
.tools-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-container {
    position: relative;
    flex-grow: 1;
}

.search-container i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.search-input {
    padding-left: 2.5rem;
    border-radius: 50px;
    border: 1px solid #ced4da;
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(204, 0, 0, 0.15);
}

/* Table Styles */
.table-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.table {
    margin-bottom: 0;
}

.table > :not(caption) > * > * {
    padding: 1rem;
}

.table thead {
    background-color: #f8f9fa;
}

.table thead th {
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid #dee2e6;
}

.candidato-row {
    transition: var(--transition);
}

.candidato-row:hover {
    background-color: #f8f9fa;
}

.candidato-associado {
    border-left: 3px solid var(--status-active);
}

.candidato-foto {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.candidato-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sem-foto {
    font-size: 1.8rem;
    color: #adb5bd;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.candidato-nome {
    font-weight: 500;
    color: var(--text-primary);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    gap: 0.4rem;
}

.status-badge.associado {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--status-active);
}

.status-badge.nao-associado {
    background-color: rgba(108, 117, 125, 0.1);
    color: var(--status-neutral);
}

.actions-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.action-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.action-btn i {
    font-size: 1rem;
}

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

.card-footer {
    background: white;
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.btn {
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

/* Modal Customization */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
}

@media (max-width: 768px) {
    .card-header {
        flex-direction: column;
        gap: 1rem;
    }

    .card-footer {
        flex-direction: column;
        gap: 1rem;
    }

    .tools-container {
        flex-direction: column;
    }

    .search-container {
        width: 100%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}