:root {
    --preto-principal: #1a1a1a;
    --preto-secundario: #2d2d2d;
    --cinza-escuro: #3a3a3a;
    --cinza-medio: #555555;
    --cinza-claro: #cccccc;
    --branco: #ffffff;
    --branco-suave: #f5f5f5;
}

body {
    background-color: var(--branco-suave);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--preto-principal);
}

.navbar {
    background: linear-gradient(135deg, var(--preto-principal) 0%, var(--preto-secundario) 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    padding: 0.8rem 0;
}

.navbar-brand {
    font-weight: bold;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Logos pequenos na navbar */
.logo-mini {
    height: 35px;
    width: auto;
}

/* Logos médios no login */
.logo-medio {
    height: 50px;
    width: auto;
}

/* Logos na carteirinha */
.logo-carteirinha {
    height: 45px;
    width: auto;
}

.card {
    border: 2px solid var(--cinza-claro);
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    background: white;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.card-header {
    background: linear-gradient(135deg, var(--preto-principal) 0%, var(--preto-secundario) 100%);
    color: white;
    border-radius: 13px 13px 0 0 !important;
    padding: 1rem 1.5rem;
}

.btn-principal {
    background-color: var(--preto-principal);
    border-color: var(--preto-principal);
    color: white;
    font-weight: 500;
}

.btn-principal:hover {
    background-color: var(--preto-secundario);
    border-color: var(--preto-secundario);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-light {
    background-color: white;
    border-color: var(--cinza-claro);
    color: var(--preto-principal);
}

.btn-light:hover {
    background-color: var(--branco-suave);
    border-color: var(--cinza-medio);
    color: var(--preto-principal);
}

.foto-atleta {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--preto-principal);
}

.foto-perfil {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--preto-principal);
}

.foto-preview {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--preto-principal);
}

.usuario-info {
    color: white;
}

.bi {
    font-size: 1.5rem;
}

.table {
    background: white;
}

.table thead {
    background-color: var(--cinza-escuro);
    color: white;
}

.table-hover tbody tr:hover {
    background-color: var(--branco-suave);
}

.alert {
    border-radius: 10px;
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.graduacao-badge {
    background-color: var(--preto-principal);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    margin: 0.25rem;
    font-weight: 500;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: var(--branco-suave);
    border-radius: 10px;
    border-left: 4px solid var(--preto-principal);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--preto-principal);
    margin-right: 1rem;
}

.timeline-item {
    border-left: 3px solid var(--preto-principal);
    padding-left: 1.5rem;
    padding-bottom: 1rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    width: 15px;
    height: 15px;
    background: var(--preto-principal);
    border-radius: 50%;
    position: absolute;
    left: -9px;
    top: 0;
}

.dropdown-menu {
    border: 2px solid var(--cinza-claro);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.dropdown-item:hover {
    background-color: var(--branco-suave);
}

/* Login */
.login-card {
    max-width: 450px;
    width: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, var(--preto-principal) 0%, var(--preto-secundario) 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.login-body {
    padding: 2rem;
}

.logos-login {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
    background-color: #ffffff;
    padding: 10px;
    border-radius: 20px;
}

.carteirinha-link {
    text-align: center;
    margin-top: 1rem;
}

.carteirinha-link a {
    color: var(--preto-principal);
    text-decoration: none;
    font-weight: bold;
}

.carteirinha-link a:hover {
    text-decoration: underline;
}

/* Carteirinha */
.carteirinha {
    max-width: 500px;
    margin: 2rem auto;
    border: 3px solid var(--preto-principal);
    border-radius: 20px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    overflow: hidden;
}

.carteirinha-header {
    background: linear-gradient(135deg, var(--preto-principal) 0%, var(--preto-secundario) 100%);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.logos-carteirinha {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    background-color: #ffffff;
    padding: 10px;
    border-radius: 20px;
}

.carteirinha-foto {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 5px solid white;
    object-fit: cover;
    margin: -60px auto 1rem;
    display: block;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    background-color: var(--branco-suave);
}

.carteirinha-body {
    padding: 2rem;
    background: white;
}

.busca-card {
    max-width: 500px;
    margin: 2rem auto;
}

/* Responsivo */
@media (max-width: 768px) {
    .bi {
        font-size: 1.2rem;
    }

    .logo-mini {
        height: 28px;
    }

    .logo-medio {
        height: 40px;
    }

    .logo-carteirinha {
        height: 35px;
    }

    .navbar-brand {
        font-size: 0.9rem;
    }

    .logo-container {
        gap: 0.5rem;
    }

    .logos-login, .logos-carteirinha {
        gap: 1rem;
    }
}

@media print {
    .navbar, .btn, .alert {
        display: none !important;
    }

    .carteirinha {
        border: 2px solid black;
        box-shadow: none;
    }
}
