:root {
    --iron-dark: #1a1a1a;
    --iron-gray: #2d2d2d;
    --iron-silver: #6c757d;
    --iron-red: #dc3545;
    --iron-orange: #fd7e14;
    --iron-gold: #ffc107;
    --iron-success: #198754;
    --bg-light: #f8f9fa;
    --shadow: rgba(0, 0, 0, 0.15);
}

body {
    background: linear-gradient(135deg, var(--iron-dark) 0%, var(--iron-gray) 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

/* Login Screen */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px var(--shadow);
    width: 100%;
    max-width: 450px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-container {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 1rem 0;
}

.logo-icon {
    font-size: 4rem;
    background: linear-gradient(135deg, var(--iron-red), var(--iron-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.logo-image {
    width: 180px;
    height: 180px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.logo-text {
    font-size: 2rem;
    font-weight: bold;
    color: var(--iron-dark);
    margin-bottom: 0.5rem;
}

.logo-subtitle {
    color: var(--iron-silver);
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Form Styles */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--iron-orange);
    box-shadow: 0 0 0 0.2rem rgba(253, 126, 20, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, var(--iron-red), var(--iron-orange));
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(220, 53, 69, 0.3);
}

/* Main Interface */
.main-container {
    min-height: 100vh;
    background: var(--bg-light);
}

.navbar {
    background: linear-gradient(135deg, var(--iron-dark), var(--iron-gray));
    box-shadow: 0 2px 10px var(--shadow);
}

.navbar-brand {
    font-weight: bold;
    color: white !important;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: white !important;
}

.navbar-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* Sidebar */
.sidebar {
    background: white;
    box-shadow: 2px 0 10px var(--shadow);
    height: calc(100vh - 76px);
    overflow-y: auto;
    transition: all 0.3s ease;
}

.sidebar-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-item:hover {
    background: #f8f9fa;
    color: var(--iron-orange);
}

.sidebar-item.active {
    background: linear-gradient(135deg, var(--iron-red), var(--iron-orange));
    color: white;
}

.sidebar-item i {
    width: 20px;
    text-align: center;
}

/* Submenu Styles */
.submenu {
    display: none;
    background: #f8f9fa;
    border-left: 3px solid var(--iron-orange);
    margin-left: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.submenu.active,
.submenu.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1000 !important;
}

/* Garantir que o submenu seja visível quando ativo */
.sidebar-item.active + .submenu,
.sidebar-item.active ~ .submenu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Forçar ocultação de submenus inativos */
.submenu:not(.active):not(.show) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.submenu-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--iron-silver);
    border-bottom: 1px solid #e9ecef;
}

.submenu-item:hover {
    background: #e9ecef;
    color: var(--iron-orange);
}

.submenu-item.active {
    background: var(--iron-orange);
    color: white;
}

.submenu-arrow {
    transition: transform 0.3s ease;
}

.sidebar-item.active .submenu-arrow,
.submenu-arrow.rotate {
    transform: rotate(180deg);
}

/* Content Area */
.content-area {
    padding: 2rem;
    background: var(--bg-light);
    min-height: calc(100vh - 76px);
}

/* Dashboard Cards */
.stat-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--iron-orange);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow);
}

.stat-icon {
    font-size: 3rem;
    color: var(--iron-orange);
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--iron-dark);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--iron-silver);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Forms */
.form-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px var(--shadow);
    margin-bottom: 2rem;
}

.form-title {
    color: var(--iron-dark);
    font-weight: bold;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

/* Planos */
.tipo-option {
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.tipo-option:hover {
    border-color: var(--iron-orange);
    background: #fff5f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.2);
}

.tipo-option.selected {
    border-color: var(--iron-orange);
    background: linear-gradient(135deg, var(--iron-red), var(--iron-orange));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.3);
}

.tipo-option i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.tipo-option div {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.tipo-option small {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Cards de Estatísticas */
.stats-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 5px solid var(--iron-orange);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--iron-red), var(--iron-orange));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.5rem;
}

.stats-content {
    flex: 1;
}

.stats-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--iron-dark);
    line-height: 1;
}

.stats-label {
    font-size: 0.9rem;
    color: var(--iron-silver);
    margin-top: 0.25rem;
}

.plano-item {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.plano-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    border-color: var(--iron-orange);
}

.plano-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--iron-red), var(--iron-orange));
}

.plano-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.plano-info {
    flex: 1;
}

.plano-nome {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--iron-dark);
    margin-bottom: 0.5rem;
}

.plano-descricao {
    font-size: 0.9rem;
    color: var(--iron-silver);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.plano-valor {
    font-size: 2rem;
    font-weight: bold;
    color: var(--iron-orange);
    margin-bottom: 0.25rem;
}

.plano-periodo {
    font-size: 0.85rem;
    color: var(--iron-silver);
    text-transform: capitalize;
}

.plano-actions {
    display: flex;
    gap: 0.5rem;
}

.plano-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.plano-badge.limitado {
    background: #e3f2fd;
    color: #1976d2;
}

.plano-badge.ilimitado {
    background: #e8f5e8;
    color: #388e3c;
}

.plano-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.plano-detail {
    text-align: center;
    padding: 1.25rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.plano-detail:hover {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-color: #2196f3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.2);
}

.plano-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2196f3, #64b5f6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.plano-detail:hover::before {
    opacity: 1;
}

.plano-detail-label {
    font-size: 0.75rem;
    color: var(--iron-silver);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.plano-detail-value {
    font-weight: bold;
    color: var(--iron-dark);
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Forçar exibição da seção de competições */
#competicoesSection:not(.hidden) {
    display: block !important;
    visibility: visible !important;
}

/* Forçar exibição da seção de competições apenas quando não estiver oculta */
#competicoesSection:not(.hidden) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Forçar exibição de elementos content-section dentro de competicoesSection apenas quando a seção estiver visível */
#competicoesSection:not(.hidden) .content-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

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

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

/* Mobile Responsive */
@media (max-width: 768px) {
    #adminSidebar,
    #coachSidebar,
    #atletaSidebar {
        position: fixed;
        left: -100%;
        top: 76px;
        width: 280px;
        height: calc(100vh - 76px);
        z-index: 1000;
        transition: left 0.3s ease;
        background: #2c3e50;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    }

    #adminSidebar.show,
    #coachSidebar.show,
    #atletaSidebar.show {
        left: 0;
    }

    .mobile-toggle {
        display: block !important;
        background: none;
        border: none;
        color: white;
        font-size: 1.2rem;
        padding: 0.5rem;
        cursor: pointer;
    }

    .mobile-toggle:hover {
        color: var(--iron-orange);
    }

    .content-area {
        padding: 1rem;
        margin-left: 0;
        width: 100%;
    }

    .stat-card {
        margin-bottom: 1rem;
    }

    .plano-details {
        grid-template-columns: 1fr;
    }
    
    /* Overlay para fechar o sidebar ao clicar fora */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
}

@media (min-width: 769px) {
    .mobile-toggle {
        display: none !important;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--iron-orange);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    animation: slideIn 0.3s ease;
}

.notification.success {
    background: var(--iron-success);
}

.notification.error {
    background: var(--iron-red);
}

.notification.warning {
    background: var(--iron-gold);
    color: var(--iron-dark);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Tables */
.table-custom {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
}

.table-custom th {
    background: linear-gradient(135deg, var(--iron-dark), var(--iron-gray));
    color: white;
    border: none;
    padding: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table-custom td {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.table-custom tbody tr:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.table-custom .btn-group {
    display: flex;
    gap: 0.25rem;
}

.table-custom .btn-group .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

.badge {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.text-success {
    background: rgba(25, 135, 84, 0.1);
    color: var(--iron-success);
}

.badge.text-danger {
    background: rgba(220, 53, 69, 0.1);
    color: var(--iron-red);
}

/* Buttons */
.btn-custom {
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    transform: translateY(-1px);
}

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

.btn-danger {
    background: var(--iron-red);
    border-color: var(--iron-red);
}

.btn-warning {
    background: var(--iron-gold);
    border-color: var(--iron-gold);
    color: var(--iron-dark);
}

/* Alert Lists for Coach Dashboard */
.alert-list {
    max-height: 300px;
    overflow-y: auto;
}

.alert-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid var(--iron-orange);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.alert-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.alert-item.urgent {
    border-left-color: var(--iron-red);
    background: linear-gradient(135deg, #fff5f5, #fff);
}

.alert-item.warning {
    border-left-color: var(--iron-gold);
    background: linear-gradient(135deg, #fffbf0, #fff);
}

.alert-item.info {
    border-left-color: var(--iron-silver);
    background: linear-gradient(135deg, #f8f9fa, #fff);
}

.alert-item-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.alert-item-title {
    font-weight: 600;
    color: var(--iron-dark);
    margin: 0;
}

.alert-item-date {
    font-size: 0.8rem;
    color: var(--iron-silver);
    background: rgba(108, 117, 125, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.alert-item-content {
    color: var(--iron-silver);
    font-size: 0.9rem;
    margin: 0;
}

.alert-item-actions {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
}

.alert-item-actions .btn {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
}

/* Badge colors for dashboard sections */
.badge.bg-warning {
    background: var(--iron-gold) !important;
    color: var(--iron-dark);
}

.badge.bg-danger {
    background: var(--iron-red) !important;
}

.badge.bg-info {
    background: var(--iron-silver) !important;
}

.badge.bg-primary {
    background: var(--iron-dark) !important;
}

.badge.bg-success {
    background: var(--iron-success) !important;
}

/* Badge Colors */
.badge.bg-purple {
    background-color: #6f42c1 !important;
    color: white;
}

.badge.bg-purple:hover {
    background-color: #5a32a3 !important;
}

/* Dieta Section */
#dietaSection {
    padding: 20px;
}

#dietaSection .form-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

#dietaSection .form-section:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

#dietaSection .form-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 15px;
}

#dietaSection .h3 {
    font-weight: 700;
    margin-bottom: 5px;
}

#dietaSection .text-primary {
    color: #007bff !important;
}

#dietaSection .text-success {
    color: #28a745 !important;
}

#dietaSection .text-warning {
    color: #ffc107 !important;
}

#dietaSection .text-danger {
    color: #dc3545 !important;
}

#dietaSection .list-unstyled li {
    padding: 2px 0;
    font-size: 0.9rem;
}

#dietaSection .badge {
    font-size: 0.8rem;
    padding: 5px 10px;
}

/* Badge de percentual de conclusão */
#dietaSection .badge.bg-info {
    background: linear-gradient(135deg, #17a2b8, #138496) !important;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(23, 162, 184, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 2px 4px rgba(23, 162, 184, 0.3);
    }
    50% {
        box-shadow: 0 2px 8px rgba(23, 162, 184, 0.5);
    }
    100% {
        box-shadow: 0 2px 4px rgba(23, 162, 184, 0.3);
    }
}

/* Modal Diário Alimentar */
#modalDiarioAlimentar .form-check {
    margin-bottom: 10px;
}

#modalDiarioAlimentar .form-check-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

#modalDiarioAlimentar .badge {
    font-size: 0.9rem;
    padding: 8px 12px;
}

/* Estilos adicionais para dieta */
.dieta-macro-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.dieta-macro-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.dieta-macro-card.calorias {
    border-color: #007bff;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

.dieta-macro-card.carboidratos {
    border-color: #28a745;
    background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
}

.dieta-macro-card.proteinas {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
}

.dieta-macro-card.gorduras {
    border-color: #dc3545;
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
}

.refeicao-card {
    border-left: 4px solid var(--iron-orange);
    transition: all 0.3s ease;
}

.refeicao-card:hover {
    border-left-color: var(--iron-red);
    transform: translateX(5px);
}

.refeicao-status {
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Treino Section */
#treinoSection {
    padding: 20px;
}

#treinoSection .form-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

#treinoSection .form-section:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.exercicio-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    border-left: 4px solid var(--iron-orange);
    transition: all 0.3s ease;
}

.exercicio-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transform: translateX(5px);
    border-left-color: var(--iron-red);
}

.exercicio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.exercicio-nome {
    font-weight: 600;
    color: var(--iron-dark);
    margin: 0;
}

.exercicio-status {
    animation: statusPulse 2s infinite;
}

.treino-dia-info {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 4px solid #2196f3;
}

.treino-dia-info .alert {
    background: transparent;
    border: none;
    margin: 0;
    padding: 0;
}

.treino-dia-info .alert-primary {
    color: #1565c0;
}

.treino-macro-info {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    margin-bottom: 20px;
}

.treino-macro-info .h4 {
    color: var(--iron-orange);
    font-weight: 700;
    margin-bottom: 5px;
}

.serie-registro {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid #e9ecef;
}

.serie-header {
    font-weight: 600;
    color: var(--iron-dark);
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--iron-orange);
}

.descanso-info {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    color: #e65100;
    font-weight: 600;
    margin-top: 10px;
}

.observacoes-info {
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
    border-left: 3px solid #9c27b0;
}

.observacoes-info small {
    color: #6a1b9a;
    font-weight: 500;
}

/* EAS Section */
#easSection {
    padding: 20px;
}

#easSection .form-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

#easSection .form-section:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.eas-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    border-left: 4px solid #6f42c1;
    transition: all 0.3s ease;
}

.eas-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transform: translateX(5px);
    border-left-color: #5a32a3;
}

.eas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.eas-nome {
    font-weight: 600;
    color: var(--iron-dark);
    margin: 0;
}

.eas-status {
    animation: statusPulse 2s infinite;
}

.eas-info {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

.eas-periodicidade {
    font-weight: 600;
    color: #6f42c1;
    font-size: 1.1rem;
}

.eas-dosagem {
    font-weight: 600;
    color: #dc3545;
    font-size: 1.1rem;
}

.eas-protocolo-info {
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    border-left: 4px solid #9c27b0;
}

.eas-protocolo-info .alert {
    background: transparent;
    border: none;
    margin: 0;
    padding: 0;
}

.eas-protocolo-info .alert-primary {
    color: #6a1b9a;
}

.eas-suplemento-info {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    border: 1px solid #dee2e6;
}

.eas-suplemento-info small {
    color: #6c757d;
    font-size: 0.8rem;
}

.eas-suplemento-info .fw-bold {
    color: var(--iron-dark);
    font-size: 1rem;
}

.eas-observacoes-info {
    background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
    border-left: 3px solid #4caf50;
}

.eas-observacoes-info small {
    color: #2e7d32;
    font-weight: 500;
}

.eas-horario-info {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    color: #e65100;
    font-weight: 600;
}

/* Responsive adjustments for EAS */
@media (max-width: 768px) {
    .eas-info {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .eas-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .eas-card {
        padding: 15px;
    }
}
#treinoSection {
    padding: 20px;
}

#treinoSection .form-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

#treinoSection .form-section:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

#treinoSection .form-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 15px;
}

#treinoSection .h3 {
    font-weight: 700;
    margin-bottom: 5px;
}

#treinoSection .text-primary {
    color: #007bff !important;
}

#treinoSection .text-success {
    color: #28a745 !important;
}

#treinoSection .text-warning {
    color: #ffc107 !important;
}

#treinoSection .text-danger {
    color: #dc3545 !important;
}

#treinoSection .list-unstyled li {
    padding: 2px 0;
    font-size: 0.9rem;
}

#treinoSection .badge {
    font-size: 0.8rem;
    padding: 5px 10px;
}

/* Badge de percentual de conclusão do treino */
#treinoSection .badge.bg-info {
    background: linear-gradient(135deg, #17a2b8, #138496) !important;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(23, 162, 184, 0.3);
    animation: pulse 2s infinite;
}

/* Estilos para exercícios */
.exercicio-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #007bff;
    transition: all 0.3s ease;
}

.exercicio-card:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.exercicio-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 10px;
}

.exercicio-nome {
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.exercicio-status {
    font-size: 0.8rem;
}

.serie-item {
    background: white;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 8px;
    border: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.serie-info {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
}

.serie-peso {
    font-weight: 600;
    color: #007bff;
}

/* Modal Registro de Treino */
#modalRegistroTreino .form-check {
    margin-bottom: 10px;
}

#modalRegistroTreino .form-check-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

#modalRegistroTreino .badge {
    font-size: 0.9rem;
    padding: 8px 12px;
}

#modalRegistroTreino .serie-registro {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid #dee2e6;
}

#modalRegistroTreino .serie-header {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

#modalRegistroTreino .peso-input {
    max-width: 100px;
}

/* EAS Section */
#easSection {
    padding: 20px;
}

#easSection .form-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

#easSection .form-section:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

#easSection .form-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Estilos para cards de EAS */
.eas-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #28a745;
    transition: all 0.3s ease;
}

.eas-card:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.eas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.eas-nome {
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.eas-status {
    font-size: 0.8rem;
}

.eas-info {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.eas-periodicidade {
    font-weight: 600;
    color: #28a745;
}

.eas-dosagem {
    font-weight: 600;
    color: #007bff;
}

/* Badge de percentual de conclusão do EAS */
#easSection .badge.bg-info {
    background: linear-gradient(135deg, #17a2b8, #138496) !important;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(23, 162, 184, 0.3);
    animation: pulse 2s infinite;
}

/* Cards de Ação do Dashboard */
.card-action {
    padding: 2rem 1.5rem;
    border-radius: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-action:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--iron-orange);
}

.card-icon {
    margin-bottom: 1.5rem;
}

.card-icon i {
    transition: all 0.3s ease;
}

.card-action:hover .card-icon i {
    transform: scale(1.1);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--iron-dark);
}

.card-text {
    color: var(--iron-silver);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.card-action .btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

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

/* Estilos para os gráficos */
.chart-container {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.chart-container:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.form-section h5.form-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
}

.form-section .text-muted {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Estilos para registro de EAS */
.eas-registro {
    background: white;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 8px;
    border: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.eas-data {
    font-weight: 600;
    color: #6c757d;
}

.eas-tomado {
    font-weight: 600;
    color: #28a745;
}

.eas-nao-tomado {
    font-weight: 600;
    color: #dc3545;
}

/* Avaliação Section */
#avaliacaoSection {
    padding: 20px;
}

#avaliacaoSection .form-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

#avaliacaoSection .form-section:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

#avaliacaoSection .form-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Estilos para cards de avaliação */
/* Modal Protocolo EAS */
.suplemento-item {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6 !important;
    transition: all 0.3s ease;
}

.suplemento-item:hover {
    border-color: var(--iron-orange) !important;
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.1);
}

.suplemento-item .btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

#semSuplementos {
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
}

.avaliacao-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #007bff;
    transition: all 0.3s ease;
}

.avaliacao-card:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.avaliacao-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.avaliacao-data {
    font-weight: 600;
    color: #007bff;
    font-size: 1.1rem;
}

.avaliacao-status {
    font-size: 0.8rem;
}

.avaliacao-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.avaliacao-peso {
    background: white;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
}

.avaliacao-peso-valor {
    font-size: 1.5rem;
    font-weight: 700;
    color: #28a745;
}

.avaliacao-peso-label {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
}

.avaliacao-fotos {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.avaliacao-foto {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    object-fit: cover;
    border: 2px solid #dee2e6;
    cursor: pointer;
    transition: all 0.3s ease;
}

.avaliacao-foto:hover {
    border-color: #007bff;
    transform: scale(1.05);
}

.avaliacao-resumo {
    background: white;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.avaliacao-resumo-titulo {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.avaliacao-resumo-texto {
    color: #6c757d;
    line-height: 1.6;
}

.avaliacao-aspectos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.aspecto-item {
    background: white;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}

.aspecto-titulo {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.aspecto-nota {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.aspecto-nota.excelente {
    color: #28a745;
}

.aspecto-nota.bom {
    color: #17a2b8;
}

.aspecto-nota.regular {
    color: #ffc107;
}

.aspecto-nota.ruim {
    color: #fd7e14;
}

.aspecto-nota.muito-ruim {
    color: #dc3545;
}

.aspecto-label {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
}

/* Estilos para grupos de rating */
.rating-group {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-top: 10px;
}

.rating-group input[type="radio"] {
    display: none;
}

.rating-group label {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
}

.rating-group label:hover {
    background: #007bff;
    border-color: #007bff;
    color: white;
    transform: scale(1.1);
}

.rating-group input[type="radio"]:checked + label {
    background: #007bff;
    border-color: #007bff;
    color: white;
    transform: scale(1.1);
}

/* Estilos para preview de fotos */
#modalNovaAvaliacao .img-fluid {
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
}

#modalNovaAvaliacao .img-fluid:hover {
    border-color: #007bff;
    transform: scale(1.02);
}

/* Estilos para avaliações pendentes no dashboard do coach */
.avaliacao-pendente {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 4px solid #ffc107;
    transition: all 0.3s ease;
}

.avaliacao-pendente:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.avaliacao-pendente-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.avaliacao-pendente-atleta {
    font-weight: 600;
    color: #2c3e50;
}

.avaliacao-pendente-data {
    font-size: 0.8rem;
    color: #6c757d;
}

.avaliacao-pendente-peso {
    font-weight: 600;
    color: #28a745;
    margin-bottom: 5px;
}

.avaliacao-pendente-resumo {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.4;
    margin-bottom: 10px;
}

.avaliacao-pendente-fotos {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.avaliacao-pendente-foto {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid #dee2e6;
    cursor: pointer;
    transition: all 0.3s ease;
}

.avaliacao-pendente-foto:hover {
    border-color: #007bff;
    transform: scale(1.1);
}

.avaliacao-pendente-acoes {
    display: flex;
    gap: 10px;
}

.btn-avaliar {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-avaliar:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Profile Edit Button and Photo Styles */
#profileEditButton {
    margin-left: 1rem;
}

#profileEditButton .btn {
    border-radius: 20px;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

#profileEditButton .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.profile-photo-container {
    position: relative;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--iron-orange);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.profile-photo-container .btn {
    border-radius: 20px;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    transition: all 0.3s ease;
}

.profile-photo-container .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

/* Anamnese Styles */
#anamneseSection {
    padding: 2rem;
}

#anamneseContent .form-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

#anamneseContent .form-title {
    color: var(--iron-dark);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--iron-orange);
}

#anamneseContent .row {
    margin-bottom: 1rem;
}

#anamneseContent .row:last-child {
    margin-bottom: 0;
}

#anamneseContent strong {
    color: var(--iron-dark);
    font-weight: 600;
}

#anamneseContent p {
    margin: 0;
    line-height: 1.6;
}

/* Modal Anamnese Styles */
#modalAnamnese .modal-xl {
    max-width: 1200px;
}

#modalAnamnese .form-label {
    font-weight: 600;
    color: var(--iron-dark);
    margin-bottom: 0.5rem;
}

#modalAnamnese .form-check {
    margin-bottom: 0.5rem;
}

#modalAnamnese .form-check-input:checked {
    background-color: var(--iron-orange);
    border-color: var(--iron-orange);
}

#modalAnamnese .form-text {
    font-size: 0.8rem;
    color: var(--iron-silver);
    margin-top: 0.25rem;
}

/* Anamnese Photo Preview */
.anamnese-photo-preview {
    max-width: 200px;
    border-radius: 8px;
    border: 2px solid var(--iron-orange);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.anamnese-photo-preview:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Responsive adjustments for anamnese */
@media (max-width: 768px) {
    #anamneseSection {
        padding: 1rem;
    }
    
    #anamneseContent .form-section {
        padding: 1rem;
    }
    
    #modalAnamnese .modal-xl {
        max-width: 95%;
        margin: 1rem;
    }
}

/* Athlete Grid Styles */
.atleta-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.atleta-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.atleta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--iron-red), var(--iron-orange));
}

.atleta-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.atleta-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--iron-red), var(--iron-orange));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

.atleta-info {
    flex: 1;
}

.atleta-nome {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--iron-dark);
    margin-bottom: 0.25rem;
}

.atleta-email {
    color: var(--iron-silver);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.atleta-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.atleta-status.ativo {
    background: rgba(25, 135, 84, 0.1);
    color: var(--iron-success);
    border: 1px solid rgba(25, 135, 84, 0.3);
}

.atleta-status.inativo {
    background: rgba(108, 117, 125, 0.1);
    color: var(--iron-silver);
    border: 1px solid rgba(108, 117, 125, 0.3);
}

.atleta-status.pendente {
    background: rgba(255, 193, 7, 0.1);
    color: var(--iron-gold);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.atleta-details {
    margin-bottom: 1.5rem;
}

.atleta-detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.atleta-detail-label {
    color: var(--iron-silver);
    font-weight: 500;
}

.atleta-detail-value {
    color: var(--iron-dark);
    font-weight: 600;
}

.atleta-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.atleta-action-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.atleta-action-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.atleta-action-btn.editar {
    background: linear-gradient(135deg, var(--iron-orange), #ff8c42);
    color: white;
}

.atleta-action-btn.editar:hover {
    background: linear-gradient(135deg, #e66a00, #ff8c42);
    box-shadow: 0 4px 8px rgba(253, 126, 20, 0.3);
}

.atleta-action-btn.dieta {
    background: linear-gradient(135deg, var(--iron-success), #20c997);
    color: white;
}

.atleta-action-btn.dieta:hover {
    background: linear-gradient(135deg, #198754, #20c997);
    box-shadow: 0 4px 8px rgba(25, 135, 84, 0.3);
}

.atleta-action-btn.treino {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    color: white;
}

.atleta-action-btn.treino:hover {
    background: linear-gradient(135deg, #0b5ed7, #0a58ca);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

.atleta-action-btn.eas {
    background: linear-gradient(135deg, #6f42c1, #5a32a3);
    color: white;
}

.atleta-action-btn.eas:hover {
    background: linear-gradient(135deg, #5a32a3, #4c2a8a);
    box-shadow: 0 4px 8px rgba(111, 66, 193, 0.3);
}

/* Responsive adjustments for athlete grid */
@media (max-width: 768px) {
    .atleta-card {
        padding: 1rem;
    }
    
    .atleta-header {
        flex-direction: column;
        text-align: center;
    }
    
    .atleta-avatar {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .atleta-actions {
        grid-template-columns: 1fr;
    }
    
    .atleta-action-btn {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 576px) {
    .atleta-card {
        margin-bottom: 1rem;
    }
    
    .atleta-nome {
        font-size: 1.1rem;
    }
    
    .atleta-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Chat Styles */
.chat-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow);
    height: 600px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background: #f8f9fa;
}

.chat-message {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.chat-message.atleta {
    flex-direction: row-reverse;
}

.chat-message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--iron-red), var(--iron-orange));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.chat-message.coach .chat-message-avatar {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
}

.chat-message-content {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: 15px;
    position: relative;
    word-wrap: break-word;
}

.chat-message.atleta .chat-message-content {
    background: linear-gradient(135deg, var(--iron-red), var(--iron-orange));
    color: white;
    border-bottom-right-radius: 5px;
}

.chat-message.coach .chat-message-content {
    background: white;
    color: var(--iron-dark);
    border: 1px solid #e9ecef;
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.chat-message-time {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 0.25rem;
    text-align: right;
}

.chat-message.atleta .chat-message-time {
    text-align: left;
}

.chat-input-container {
    padding: 1rem;
    background: white;
    border-top: 1px solid #e9ecef;
}

.chat-input-container .input-group {
    margin-bottom: 0.5rem;
}

.chat-input-container .form-control {
    border-radius: 20px 0 0 20px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
}

.chat-input-container .btn {
    border-radius: 0 20px 20px 0;
    border: 2px solid var(--iron-orange);
    background: linear-gradient(135deg, var(--iron-red), var(--iron-orange));
    color: white;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.chat-input-container .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.chat-typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--iron-silver);
    font-style: italic;
    font-size: 0.9rem;
}

.chat-typing-dots {
    display: flex;
    gap: 0.25rem;
}

.chat-typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--iron-silver);
    animation: typing 1.4s infinite ease-in-out;
}

.chat-typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.chat-typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.chat-system-message {
    text-align: center;
    margin: 1rem 0;
    padding: 0.5rem;
    background: rgba(108, 117, 125, 0.1);
    border-radius: 10px;
    color: var(--iron-silver);
    font-size: 0.9rem;
}

/* Responsive chat adjustments */
@media (max-width: 768px) {
    .chat-container {
        height: 500px;
    }
    
    .chat-message-content {
        max-width: 85%;
    }
    
    .chat-messages {
        padding: 1rem;
    }
    
    .chat-input-container {
        padding: 0.75rem;
    }
}

/* Estilos específicos para o submenu de treinos */
#treinosSubmenu {
    display: none;
}

#treinosSubmenu.active {
    display: block;
}

/* Garantir que o submenu seja visível quando ativo */
.submenu.active {
    display: block !important;
}

/* Melhorar a visibilidade do submenu */
.submenu {
    background: #f8f9fa;
    border-left: 3px solid var(--iron-orange);
    margin-left: 20px;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ===== ESTILOS PARA VISÃO 360º ===== */

/* Estilos para o modal da Visão 360º */
.modal-xl {
    max-width: 1200px;
}

.info-item {
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--iron-dark);
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.info-value {
    color: var(--iron-silver);
    font-size: 1rem;
}

.progress-item {
    margin-bottom: 1.5rem;
}

.progress-label {
    font-weight: 600;
    color: var(--iron-dark);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.progress {
    height: 8px;
    border-radius: 10px;
    background-color: #e9ecef;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.6s ease;
    border-radius: 10px;
}

.resumo-content {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    min-height: 100px;
    border-left: 4px solid var(--iron-orange);
}

.feedback-content {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    min-height: 120px;
    border-left: 4px solid var(--iron-success);
}

/* Estilos para o botão Visão 360º */
.atleta-action-btn.visao360 {
    background: linear-gradient(135deg, #6f42c1, #8e44ad);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.atleta-action-btn.visao360:hover {
    background: linear-gradient(135deg, #5a32a3, #7d3c98);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(111, 66, 193, 0.3);
}

/* Responsividade para o modal */
@media (max-width: 768px) {
    .modal-xl {
        max-width: 95%;
        margin: 1rem;
    }
    
    .info-item {
        margin-bottom: 0.75rem;
    }
    
    .progress-item {
        margin-bottom: 1rem;
    }
    
    .resumo-content,
    .feedback-content {
        min-height: 80px;
        padding: 0.75rem;
    }
}

/* ===== ESTILOS PARA CONTATOS ===== */

.avatar-contato {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--iron-red), var(--iron-orange));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.table-hover tbody tr:hover {
    background-color: rgba(253, 126, 20, 0.1);
    transition: background-color 0.3s ease;
}

.btn-group .btn {
    margin-right: 0.25rem;
}

.btn-group .btn:last-child {
    margin-right: 0;
}

/* Estilos para os filtros de contatos */
.form-section {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.form-title {
    color: var(--iron-dark);
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--iron-orange);
    padding-bottom: 0.5rem;
}

/* Responsividade para contatos */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.9rem;
    }
    
    .btn-group .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .avatar-contato {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
}

/* Container da lista de contatos */
.contatos-lista-container {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
}