* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* HEADER */
.header {
    background: linear-gradient(135deg, #1e3a8a 0%, #1565c0 100%);
    padding: 1rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* SAUDAÇÃO DO USUÁRIO */
.user-welcome {
    display: flex;
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 2px solid rgba(255, 133, 0, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.8s ease-out;
    z-index: 100;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.user-welcome i {
    font-size: 2rem;
    color: #ff8500;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.welcome-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.welcome-greeting {
    font-size: 1rem;
    color: #ffffff;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.welcome-greeting strong {
    color: #ff8500;
    font-weight: 700;
}

.welcome-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.logo i {
    font-size: 2rem;
    color: #ff8500;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.nav-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: #ff8500;
    border-color: #ff8500;
    box-shadow: 0 4px 15px rgba(255, 133, 0, 0.4);
}

.tab-btn i {
    font-size: 1.1rem;
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.tab-content.active {
    display: block;
}

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

.section-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.1) 0%, rgba(255, 133, 0, 0.05) 100%);
    border-radius: 16px;
    border-left: 5px solid #ff8500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 133, 0, 0.03) 50%, 
        transparent 100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.section-header h2 {
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    position: relative;
    z-index: 1;
    line-height: 1.3;
}

.section-header h2 i {
    color: #ff8500;
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.section-header p {
    position: relative;
    z-index: 1;
    margin: 0;
}

/* Responsivo para Mobile - Títulos */
@media (max-width: 768px) {
    .section-header {
        padding: 1rem;
        margin-bottom: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .section-header h2 {
        font-size: 1.25rem;
        gap: 0.5rem;
        width: 100%;
        word-break: break-word;
    }

    .section-header h2 i {
        font-size: 1.25rem;
        flex-shrink: 0;
    }

    .section-header p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .section-header {
        padding: 0.875rem;
        margin-bottom: 1.25rem;
        border-left-width: 4px;
    }

    .section-header h2 {
        font-size: 1.1rem;
        gap: 0.4rem;
    }

    .section-header h2 i {
        font-size: 1.1rem;
    }

    .section-header p {
        font-size: 0.8rem;
    }
}

/* FORMS */
.form-container {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 1px solid #333;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.form-container h3 {
    color: #ff8500;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #cccccc;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #333333;
    border: 2px solid #555555;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1565c0;
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.2);
}

.search-container {
    display: flex;
    gap: 0.5rem;
}

.search-container input {
    flex: 1;
}

.search-container button {
    padding: 0.75rem 1rem;
    background: #1565c0;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-container button:hover {
    background: #1976d2;
    transform: translateY(-1px);
}

/* BUTTONS */
.btn-primary,
.btn-secondary,
.btn-tertiary,
.btn-quaternary,
.btn-avaliacao,
.btn-danger {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(21, 101, 192, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21, 101, 192, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #ff8500 0%, #ff9500 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 133, 0, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 133, 0, 0.4);
}

.btn-tertiary {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    width: 100%;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.btn-tertiary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

.btn-quaternary {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    width: 100%;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.btn-quaternary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.btn-avaliacao {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    color: white;
    width: 100%;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-avaliacao:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.btn-classificacao {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: white;
    width: 100%;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-classificacao:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    filter: brightness(1.1);
}

.btn-classificacao:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

/* ALUNO INFO */
.aluno-info {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 2rem;
    border-radius: 16px;
    margin-top: 2rem;
    border: 1px solid #333;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.aluno-info.hidden {
    display: none;
}

.aluno-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.botoes-treino {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Garantir que todos os botões na seção de treino tenham o mesmo tamanho */
.botoes-treino .btn-primary,
.botoes-treino .btn-secondary,
.botoes-treino .btn-tertiary,
.botoes-treino .btn-quaternary,
.botoes-treino .btn-avaliacao,
.botoes-treino .btn-classificacao {
    flex: 1;
    min-width: 150px;
    max-width: 200px;
    justify-content: center;
    text-align: center;
}

/* Estado inicial dos botões (desabilitados até selecionar aluno) */
.botoes-treino button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    filter: grayscale(50%);
}

.aluno-header h3 {
    color: #ff8500;
    font-size: 1.8rem;
}

.aluno-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(21, 101, 192, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(21, 101, 192, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.stat-card i {
    font-size: 2rem;
    color: #1565c0;
}

.stat-label {
    color: #cccccc;
    font-size: 0.9rem;
}

.stat-card span:last-child {
    color: #ff8500;
    font-weight: 600;
    font-size: 1.2rem;
}

.historico-treinos h4 {
    color: #1565c0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* EXERCÍCIOS */
.search-exercicios {
    margin-bottom: 2rem;
}

.search-exercicios input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #333333;
    border: 2px solid #555555;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
}

.exercicios-lista {
    display: grid;
    gap: 1rem;
}

.exercicio-item {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.exercicio-info {
    flex: 1;
    min-width: 200px;
}

.exercicio-nome {
    color: #ff8500;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.exercicio-dados {
    color: #cccccc;
    font-size: 0.9rem;
}

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

.btn-small {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.3s ease;
}

.btn-edit {
    background: #1565c0;
    color: white;
}

.btn-edit:hover {
    background: #1976d2;
}

.btn-delete {
    background: #dc2626;
    color: white;
}

.btn-delete:hover {
    background: #ef4444;
}

/* TREINO */
.treino-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ff8500;
    font-size: 1.5rem;
    font-weight: 600;
}

.treino-container.hidden {
    display: none;
}

.aluno-treino {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.aluno-treino h3 {
    color: #ff8500;
    font-size: 1.8rem;
}

.cronometro-descanso {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 1px solid #333;
}

.cronometro-descanso h4 {
    color: #1565c0;
    margin-bottom: 1rem;
    text-align: center;
}

.cronometro-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-timer {
    padding: 0.75rem 1.5rem;
    background: #333333;
    border: 2px solid #555555;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-timer:hover {
    background: #1565c0;
    border-color: #1565c0;
}

.btn-timer.active {
    background: #ff8500;
    border-color: #ff8500;
}

.timer-display {
    background: #000000;
    padding: 1rem 2rem;
    border-radius: 12px;
    border: 2px solid #ff8500;
}

.timer-display span {
    font-size: 2rem;
    font-weight: 700;
    color: #ff8500;
    font-family: 'Courier New', monospace;
}

.exercicios-treino {
    display: grid;
    gap: 1rem;
}

.exercicio-treino {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #333;
}

.exercicio-treino h4 {
    color: #ff8500;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* FORMULÁRIO DE EXERCÍCIOS NO TREINO */
.novo-exercicio-container {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #333;
    margin-bottom: 2rem;
}

.novo-exercicio-container h3 {
    color: #ff8500;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row:nth-child(2) {
    grid-template-columns: 2fr 1fr;
}

.form-row:nth-child(3) {
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
}

#form-exercicio-treino .form-group {
    margin-bottom: 0;
}

#form-exercicio-treino input[type="text"],
#form-exercicio-treino input[type="number"] {
    background: #000000;
    border: 2px solid #333;
    color: #ffffff;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 1rem;
}

#form-exercicio-treino input[type="text"]:focus,
#form-exercicio-treino input[type="number"]:focus {
    border-color: #ff8500;
    box-shadow: 0 0 0 3px rgba(255, 133, 0, 0.2);
}

#form-exercicio-treino datalist {
    background: #000000;
}

.exercicios-salvos {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #333;
}

.exercicios-salvos h4 {
    color: #ff8500;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* EXERCÍCIOS SALVOS NO TREINO ATUAL */
.exercicio-salvo {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #2d2d2d 100%);
    margin: 1rem 0;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #1565c0;
    border-right: 1px solid #333;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.exercicio-salvo:hover {
    border-left-color: #ff8500;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.exercicio-salvo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.exercicio-salvo-nome {
    color: #1565c0;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.exercicio-salvo-numero {
    background: linear-gradient(45deg, #1565c0, #ff8500);
    color: #ffffff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.exercicio-salvo-tempo {
    color: #888;
    font-size: 0.9rem;
    font-style: italic;
}

.exercicio-salvo-dados {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.exercicio-dado-item {
    background: rgba(21, 101, 192, 0.15);
    padding: 0.6rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(21, 101, 192, 0.3);
    transition: all 0.3s ease;
}

.exercicio-dado-item.carga {
    background: rgba(21, 101, 192, 0.15);
    border-color: rgba(21, 101, 192, 0.3);
    color: #1565c0;
}

.exercicio-dado-item.series {
    background: rgba(255, 133, 0, 0.15);
    border-color: rgba(255, 133, 0, 0.3);
    color: #ff8500;
}

.exercicio-dado-item.repeticoes {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.exercicio-dado-item i {
    margin-right: 0.5rem;
}

.lista-exercicios-vazia {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px dashed #333;
}

/* INFO ÚLTIMO PESO */
.info-ultimo-peso {
    margin-top: 0.5rem;
}

.info-ultimo-peso small {
    display: block;
    background: rgba(21, 101, 192, 0.1);
    color: #1565c0;
    padding: 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(21, 101, 192, 0.2);
    font-style: italic;
    animation: fadeInUp 0.3s ease;
}

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

.exercicio-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.exercicio-form .form-group {
    margin-bottom: 0;
}

.exercicio-form input {
    padding: 0.5rem;
}

.exercicio-ultimo {
    background: rgba(21, 101, 192, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid rgba(21, 101, 192, 0.3);
}

.exercicio-ultimo h5 {
    color: #1565c0;
    margin-bottom: 0.5rem;
}

.no-treino,
.no-dashboard {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    color: #666666;
}

.no-treino i,
.no-dashboard i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #333333;
}

/* DASHBOARD */
.dashboard-header h3 {
    color: #ff8500;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.dashboard-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.chart-container {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #333;
}

.chart-container h4 {
    color: #1565c0;
    margin-bottom: 1rem;
    text-align: center;
}

.chart-container canvas {
    width: 100%;
    max-width: 400px;
    height: 200px;
    border: 1px solid #333;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    display: block;
    margin: 0 auto;
}

.dashboard-content.hidden {
    display: none;
}

/* ESTILOS PARA ABA TREINO - ALUNOS ATIVOS */
.alunos-ativos-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 133, 0, 0.2);
}

.alunos-ativos-container h3 {
    color: #ff8500;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lista-alunos-ativos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1rem;
}

.aluno-ativo-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 133, 0, 0.3);
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aluno-ativo-card:hover {
    background: linear-gradient(135deg, rgba(255, 133, 0, 0.2) 0%, rgba(255, 133, 0, 0.1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 133, 0, 0.3);
}

.aluno-info h4 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.aluno-stats {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.aluno-stats .stat {
    font-size: 0.85rem;
    color: #cccccc;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.aluno-stats .stat i {
    color: #ff8500;
    width: 12px;
}

.btn-iniciar-treino {
    background: #ff8500;
    color: #ffffff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-iniciar-treino:hover {
    background: #e67300;
    transform: scale(1.05);
}

.loading-alunos, .sem-alunos-ativos {
    text-align: center;
    padding: 2rem;
    color: #cccccc;
}

.loading-alunos i {
    font-size: 2rem;
    color: #ff8500;
    margin-bottom: 1rem;
}

/* NAVEGAÇÃO DOS ALUNOS */
.alunos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.navegacao-alunos {
    display: flex;
    gap: 0.5rem;
}

.btn-navegacao {
    background: rgba(255, 255, 255, 0.1);
    color: #cccccc;
    border: 1px solid rgba(255, 133, 0, 0.3);
    padding: 0.7rem 1.2rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-navegacao:hover {
    background: rgba(255, 133, 0, 0.2);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-navegacao.active {
    background: #ff8500;
    color: #ffffff;
    border-color: #ff8500;
}

/* STATUS DE TREINOS */
.status-treino-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid transparent;
}

.status-treino-card.status-vencido {
    border-left-color: #e74c3c;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.15) 0%, rgba(231, 76, 60, 0.05) 100%);
}

.status-treino-card.status-proximo-vencimento {
    border-left-color: #f39c12;
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.15) 0%, rgba(243, 156, 18, 0.05) 100%);
}

.status-treino-card.status-ativo {
    border-left-color: #27ae60;
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.15) 0%, rgba(39, 174, 96, 0.05) 100%);
}

.status-treino-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.status-info h4 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-detalhes {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.status-detalhes .detalhe {
    font-size: 0.85rem;
    color: #cccccc;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.vencido {
    background: #e74c3c;
    color: #ffffff;
}

.status-badge.proximo-vencimento {
    background: #f39c12;
    color: #ffffff;
}

.status-badge.ativo {
    background: #27ae60;
    color: #ffffff;
}

.semanas-restantes {
    color: #ff8500;
    font-weight: bold;
}

/* Responsividade para navegação */
@media (max-width: 768px) {
    .alunos-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .navegacao-alunos {
        justify-content: center;
    }
    
    .btn-navegacao {
        flex: 1;
        justify-content: center;
    }
    
    /* Saudação responsiva */
    .user-welcome {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        justify-content: center;
        border-radius: 15px;
        padding: 0.6rem 1rem;
    }
    
    .welcome-text {
        align-items: center;
        text-align: center;
    }
    
    .welcome-greeting {
        font-size: 0.9rem;
    }
    
    .welcome-subtitle {
        font-size: 0.75rem;
    }
    
    .user-welcome i {
        font-size: 1.5rem;
    }
    
    /* Ajustes para botões de status no mobile */
    .status-treino-card {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    
    .status-info h4 {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .status-actions {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 0.75rem;
        order: 2;
    }
    
    .badge-status-pagamento {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
        margin-left: 0 !important;
        width: 100%;
        justify-content: center;
        order: 1;
    }
    
    .status-badge {
        font-size: 0.7rem;
        padding: 0.35rem 0.7rem;
        width: 100%;
        text-align: center;
        order: 2;
    }
    
    .status-detalhes {
        order: 0;
    }
}

/* ESTILOS PARA ABA DASHBOARD - EVOLUÇÃO */
.evolucao-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 133, 0, 0.2);
}

.evolucao-container h3 {
    color: #ff8500;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lista-evolucao {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 600px;
    overflow-y: auto;
}

.evolucao-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 133, 0, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.evolucao-card:hover {
    background: linear-gradient(135deg, rgba(255, 133, 0, 0.15) 0%, rgba(255, 133, 0, 0.05) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 133, 0, 0.2);
}

.evolucao-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 133, 0, 0.2);
}

.evolucao-header h4 {
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.data-treino {
    color: #cccccc;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.data-treino i {
    color: #ff8500;
}

.evolucao-exercicios h5 {
    color: #ff8500;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.exercicio-evolucao {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nome-exercicio {
    color: #ffffff;
    font-weight: 500;
}

.dados-exercicio {
    display: flex;
    gap: 1rem;
}

.dados-exercicio .carga,
.dados-exercicio .series {
    color: #cccccc;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dados-exercicio i {
    color: #ff8500;
}

.observacoes {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 133, 0, 0.2);
}

.observacoes h6 {
    color: #ff8500;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.observacoes p {
    color: #cccccc;
    font-style: italic;
}

.sem-exercicios {
    color: #888888;
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

.loading-evolucao, .sem-evolucao {
    text-align: center;
    padding: 2rem;
    color: #cccccc;
}

.loading-evolucao i {
    font-size: 2rem;
    color: #ff8500;
    margin-bottom: 1rem;
}

/* ESTILOS PARA MODAL DE DETALHES */
.modal-detalhes-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-detalhes-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 133, 0, 0.3);
}

.modal-header {
    background: linear-gradient(135deg, #1565c0 0%, #ff8500 100%);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 133, 0, 0.3);
}

.modal-header h3 {
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-fechar-modal {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-fechar-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.loading-detalhes {
    text-align: center;
    padding: 2rem;
    color: #cccccc;
}

.loading-detalhes i {
    font-size: 2rem;
    color: #ff8500;
    margin-bottom: 1rem;
}

/* ESTILOS PARA CONTEÚDO DO MODAL */
.detalhes-resumo {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 133, 0, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 133, 0, 0.2);
}

.detalhes-resumo h4 {
    color: #ff8500;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 133, 0, 0.2);
}

.stat-item i {
    font-size: 1.5rem;
    color: #1565c0;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-valor {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    display: block;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: #cccccc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detalhes-secao {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.detalhes-secao h4 {
    color: #1565c0;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(21, 101, 192, 0.2);
    padding-bottom: 0.5rem;
}

/* EXERCÍCIOS DETALHES */
.exercicios-detalhes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.exercicio-detalhe {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid #1565c0;
}

.exercicio-nome {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.exercicio-dados {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.exercicio-dados span {
    background: rgba(21, 101, 192, 0.2);
    color: #1565c0;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* CARGAS DETALHES */
.cargas-detalhes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.carga-detalhe {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid #ff8500;
}

.carga-exercicio {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.carga-info {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.carga-valor {
    background: rgba(255, 133, 0, 0.2);
    color: #ff8500;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.carga-data {
    color: #cccccc;
    font-size: 0.85rem;
}

.carga-obs {
    color: #ffffff;
    font-style: italic;
    font-size: 0.9rem;
}

/* FICHAS DETALHES */
.fichas-detalhes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ficha-detalhe {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid #28a745;
}

.ficha-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ficha-header h5 {
    color: #28a745;
    margin: 0;
}

.ficha-data, .ficha-tempo {
    color: #cccccc;
    font-size: 0.85rem;
}

.ficha-exercicios {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.ficha-exercicio {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ficha-exercicio .nome {
    color: #ffffff;
    font-weight: 500;
}

.ficha-exercicio .dados {
    color: #cccccc;
    font-size: 0.9rem;
}

.ficha-obs {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 6px;
    border-left: 3px solid #ffc107;
    color: #ffffff;
    font-style: italic;
}

/* BOTÕES ADICIONAIS */
.btn-ver-detalhes {
    background: #1565c0;
    color: #ffffff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 0.5rem;
}

.btn-ver-detalhes:hover {
    background: #0d47a1;
    transform: scale(1.05);
}

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

/* MELHORIAS PARA CARGAS PERSONALIZADAS E TIPOS DE REGISTRO */
.cargas-personalizadas {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 133, 0, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 133, 0, 0.2);
}

.cargas-personalizadas h6 {
    color: #ff8500;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.carga-personalizada {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.valor-carga {
    color: #ff8500;
    font-weight: 600;
}

.obs-carga {
    color: #cccccc;
    font-size: 0.85rem;
    font-style: italic;
}

.evolucao-card.ficha_treino {
    border-left: 4px solid #ff8500;
}

.evolucao-card.treino_sistema {
    border-left: 4px solid #1565c0;
}

.aluno-info-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tipo-registro {
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.treino-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: right;
}

.tempo-treino {
    color: #28a745;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ESTILOS PARA DASHBOARD DE TODOS OS ALUNOS */
.lista-dashboards {
    display: grid;
    gap: 1.5rem;
    margin-top: 1rem;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 133, 0, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 133, 0, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 133, 0, 0.1);
}

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

.dashboard-header h4 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.dashboard-header h4 i {
    color: #ff8500;
    margin-right: 0.5rem;
}

.status-badge {
    background: rgba(255, 133, 0, 0.1);
    color: #ff8500;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 133, 0, 0.2);
}

.status-badge.sem-dados {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.2);
}

.dashboard-stats {
    display: grid;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border-left: 3px solid #ff8500;
}

.stat-item i {
    color: #ff8500;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.stat-item span:first-of-type {
    color: #cccccc;
    font-weight: 500;
    flex: 1;
}

.stat-value {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
}

.stat-value.evolucao {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.loading-dashboards, .sem-dashboards {
    text-align: center;
    padding: 3rem;
    color: #888;
}

.loading-dashboards i, .sem-dashboards i {
    font-size: 2rem;
    color: #ff8500;
    margin-bottom: 1rem;
    display: block;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .header {
        padding: 1.5rem;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .nav-tabs {
        justify-content: center;
        margin-bottom: 1.5rem;
    }
    
    .tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .main-content {
        padding: 0.1rem;
    }
    
    .section-header {
        margin-top: 1rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .search-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .search-container input {
        border-radius: 8px;
    }
    
    .search-container button {
        border-radius: 8px;
        width: 100%;
    }
    
    .aluno-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .aluno-treino {
        flex-direction: column;
        text-align: center;
    }
    
    .cronometro-controls {
        flex-direction: column;
    }
    
    .timer-display span {
        font-size: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr !important;
    }
    
    .exercicio-form {
        grid-template-columns: 1fr;
    }
    
    .dashboard-charts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo {
        flex-direction: column;
        text-align: center;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .nav-tabs {
        margin-bottom: 2rem;
    }
    
    .tab-btn {
        flex: 1;
        justify-content: center;
    }
    
    .section-header {
        margin-top: 1.5rem;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-danger {
        width: 100%;
        justify-content: center;
    }
}

/* LOADING ANIMATION */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* SUCCESS/ERROR MESSAGES */
.message {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #555555;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #666666;
}

/* NOVO EXERCÍCIO NO TREINO */
.novo-exercicio-container {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border: 1px solid #333;
}

.novo-exercicio-container h3 {
    color: #ff8500;
    margin-bottom: 1.5rem;
    text-align: center;
}

.busca-exercicio {
    margin-bottom: 1rem;
    position: relative;
}

.busca-exercicio label {
    display: block;
    margin-bottom: 0.5rem;
    color: #cccccc;
    font-weight: 500;
}

.busca-exercicio input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #333333;
    border: 2px solid #555555;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
}

.sugestoes-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2d2d2d;
    border: 1px solid #555555;
    border-radius: 8px;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.sugestao-item {
    padding: 0.75rem 1rem;
    color: #ffffff;
    cursor: pointer;
    border-bottom: 1px solid #444444;
}

.sugestao-item:hover {
    background: #1565c0;
}

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

.ou-separador {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
    color: #666666;
}

.ou-separador::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #333333;
    z-index: 1;
}

.ou-separador span {
    background: #1a1a1a;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.novo-exercicio-manual {
    margin-bottom: 1.5rem;
}

.novo-exercicio-manual label {
    display: block;
    margin-bottom: 0.5rem;
    color: #cccccc;
    font-weight: 500;
}

.novo-exercicio-manual input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #333333;
    border: 2px solid #555555;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
}

.dados-exercicio {
    background: rgba(21, 101, 192, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(21, 101, 192, 0.3);
    margin-bottom: 1rem;
}

.ultimo-registro {
    margin-bottom: 1rem;
}

.ultimo-registro-card,
.sem-registro-card {
    background: rgba(255, 133, 0, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 133, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ultimo-registro-card i,
.sem-registro-card i {
    color: #ff8500;
    font-size: 1.2rem;
}

.ultimo-registro-card span,
.sem-registro-card span {
    color: #ffffff;
    font-weight: 500;
}

.ultimo-registro-card small {
    color: #cccccc;
    margin-left: auto;
}

.exercicios-salvos {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #333;
}

.exercicios-salvos h4 {
    color: #1565c0;
    margin-bottom: 1rem;
    text-align: center;
}

.sem-exercicios {
    text-align: center;
    color: #666666;
    font-style: italic;
    padding: 2rem;
}

.exercicio-salvo-item {
    background: rgba(21, 101, 192, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(21, 101, 192, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.exercicio-salvo-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.exercicio-salvo-info strong {
    color: #ff8500;
    font-size: 1.1rem;
}

.exercicio-salvo-info span {
    color: #cccccc;
    font-size: 0.9rem;
}

/* ALERTA DE DESCANSO */
.alerta-descanso {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(220, 38, 38, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: alertaEntrada 0.3s ease-out;
}

.alerta-content {
    background: #000000;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    border: 3px solid #dc2626;
    box-shadow: 0 20px 60px rgba(220, 38, 38, 0.5);
    animation: alertaPulso 1s ease-in-out infinite alternate;
}

.alerta-content i {
    font-size: 4rem;
    color: #dc2626;
    margin-bottom: 1rem;
    animation: alertaBalanco 0.5s ease-in-out infinite alternate;
}

.alerta-content h2 {
    color: #dc2626;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
}

.alerta-content p {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.alerta-content button {
    font-size: 1.2rem;
    padding: 1rem 2rem;
}

@keyframes alertaEntrada {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes alertaPulso {
    from {
        box-shadow: 0 20px 60px rgba(220, 38, 38, 0.3);
    }
    to {
        box-shadow: 0 20px 60px rgba(220, 38, 38, 0.7);
    }
}

@keyframes alertaBalanco {
    from {
        transform: rotate(-5deg);
    }
    to {
        transform: rotate(5deg);
    }
}

/* Anamnese Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #333;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 800px;
    max-height: 85vh; /* Define uma altura máxima para o modal */
    display: flex;
    flex-direction: column; /* Organiza os filhos (header, body) em coluna */
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

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

.modal-header h3 {
    color: #ff8500;
    font-size: 1.8rem;
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    color: #ccc;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #ff8500;
}

.modal-body {
    overflow-y: auto;
    padding-right: 1rem; /* para a barra de rolagem não colar no texto */
    flex: 1; /* Permite que o corpo do modal cresça e ocupe o espaço disponível */
    min-height: 0; /* Corrige o bug de overflow do flexbox */
}

.modal-body p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.anamnese-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Reduz a largura mínima para permitir 2 colunas */
    gap: 1.5rem;
}

.anamnese-campo {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid #1565c0;
}

.anamnese-campo strong {
    display: block;
    color: #ff8500;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.anamnese-campo span {
    color: #e0e0e0;
    font-size: 1rem;
}

.modal-body .mensagem-vazia {
    text-align: center;
    padding: 2rem;
    color: #888;
    font-style: italic;
}

@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        padding: 1.5rem;
    }

    .modal-header h3 {
        font-size: 1.5rem;
    }
}

/* LISTAGEM DE ALUNOS */
.lista-alunos-container {
    background: rgba(30, 58, 138, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid rgba(30, 58, 138, 0.3);
}

.lista-alunos-container h3 {
    color: #ff8500;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lista-alunos-container h3::before {
    content: "👥";
    font-size: 1.2rem;
}

.lista-alunos {
    display: grid;
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.aluno-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.aluno-item::before {
    content: '👆 Clique para selecionar';
    position: absolute;
    top: -25px;
    right: 10px;
    background: rgba(255, 133, 0, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.aluno-item:hover::before {
    opacity: 1;
}

.aluno-item:hover {
    background: rgba(255, 133, 0, 0.15);
    border-color: rgba(255, 133, 0, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 133, 0, 0.2);
}

.aluno-item:active {
    transform: translateY(0);
    background: rgba(255, 133, 0, 0.2);
}

.aluno-info-item {
    flex: 1;
}

.aluno-nome {
    font-weight: 600;
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.aluno-email {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.aluno-data {
    color: #64748b;
    font-size: 0.8rem;
}

.btn-copiar-nome {
    background: rgba(255, 133, 0, 0.2);
    border: 1px solid rgba(255, 133, 0, 0.5);
    color: #ff8500;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    min-width: 120px;
    justify-content: center;
}

.btn-copiar-nome:hover {
    background: rgba(255, 133, 0, 0.3);
    border-color: #ff8500;
    transform: scale(1.05);
}

.btn-copiar-nome.copiado {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.5);
    color: #22c55e;
}

.lista-alunos .loading {
    text-align: center;
    color: #94a3b8;
    padding: 2rem;
}

.lista-alunos .sem-alunos {
    text-align: center;
    color: #64748b;
    padding: 2rem;
    font-style: italic;
}

/* Scrollbar personalizada para a lista */
.lista-alunos::-webkit-scrollbar {
    width: 6px;
}

.lista-alunos::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.lista-alunos::-webkit-scrollbar-thumb {
    background: rgba(255, 133, 0, 0.5);
    border-radius: 3px;
}

.lista-alunos::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 133, 0, 0.7);
}

@media (max-width: 768px) {
    .aluno-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .btn-copiar-nome {
        align-self: stretch;
    }
}

/* ========================================
   CONFIGURAR LINK DO ALUNO
   ======================================== */
.config-link-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.url-preview-card,
.config-form-card {
    background: rgba(30, 58, 138, 0.1);
    border: 1px solid rgba(30, 58, 138, 0.3);
    border-radius: 15px;
    padding: 2rem;
}

.url-preview-card h3,
.config-form-card h3 {
    color: #ff8500;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.url-display {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.url-display input {
    flex: 1;
    min-width: 300px;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 133, 0, 0.3);
    border-radius: 10px;
    color: #ff8500;
    font-size: 1rem;
    font-family: 'Courier New', monospace;
}

.btn-copiar-url {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ff8500, #ff6b00);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(255, 133, 0, 0.3);
}

.btn-copiar-url:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 133, 0, 0.5);
}

.btn-copiar-url:active {
    transform: translateY(0);
}

.url-info {
    color: #94a3b8;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group-config {
    margin-bottom: 1.5rem;
}

.form-group-config label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-group-config input,
.form-group-config textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group-config input:focus,
.form-group-config textarea:focus {
    outline: none;
    border-color: #ff8500;
    box-shadow: 0 0 0 3px rgba(255, 133, 0, 0.1);
}

.form-group-config small {
    display: block;
    color: #94a3b8;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.form-group-config small strong {
    color: #ff8500;
}

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

.config-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-salvar-config,
.btn-preview-config {
    flex: 1;
    min-width: 200px;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-salvar-config {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-salvar-config:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-preview-config {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-preview-config:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.config-message {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.config-message.hidden {
    display: none;
}

.config-message.success {
    background: rgba(16, 185, 129, 0.2);
    border: 2px solid rgba(16, 185, 129, 0.5);
    color: #10b981;
}

.config-message.error {
    background: rgba(239, 68, 68, 0.2);
    border: 2px solid rgba(239, 68, 68, 0.5);
    color: #ef4444;
}

/* Seção de configuração */
.config-section {
    margin-bottom: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.config-section-title {
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    color: #60a5fa;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.campo-info {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

@media (max-width: 768px) {
    .url-display {
        flex-direction: column;
    }
    
    .url-display input {
        min-width: 100%;
    }
    
    .precos-grid {
        grid-template-columns: 1fr;
    }
    
    .config-actions {
        flex-direction: column;
    }
    
    .btn-salvar-config,
    .btn-preview-config {
        width: 100%;
    }
}

/* ============================================
   MODAL CLASSIFICAÇÃO
   ============================================ */

#modal-classificacao .modal-container {
    max-width: 700px;
    max-height: 90vh;
    overflow: hidden;
}

#modal-classificacao .modal-body {
    overflow-y: auto;
    max-height: calc(90vh - 150px);
    padding-right: 0.5rem;
}

#modal-classificacao .modal-body::-webkit-scrollbar {
    width: 8px;
}

#modal-classificacao .modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

#modal-classificacao .modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 133, 0, 0.5);
    border-radius: 4px;
}

#modal-classificacao .modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 133, 0, 0.7);
}

.avaliacoes-estrelas {
    margin: 1.5rem 0;
}

.avaliacao-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 133, 0, 0.05);
    border-radius: 8px;
    border-left: 3px solid #ff8500;
}

.avaliacao-item label {
    display: block;
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.avaliacao-item label i {
    color: #ff8500;
    margin-right: 0.5rem;
}

.estrelas-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.estrelas-container input[type="radio"] {
    display: none;
}

.estrelas-container label {
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    opacity: 0.3;
    margin: 0;
}

.estrelas-container input[type="radio"]:checked + label {
    opacity: 1;
    transform: scale(1.1);
}

.estrelas-container label:hover {
    opacity: 0.7;
    transform: scale(1.05);
}

