/* Estilos Frontend - Escola Taekwondo Pohlmann */

.tkd-frontend {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.tkd-frontend h2 {
    color: #1e3a5f;
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
}

/* Alunos Grid */
.tkd-alunos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.tkd-aluno-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

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

.tkd-aluno-foto {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3a5f 0%, #0d1b2a 100%);
}

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

.tkd-aluno-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    font-weight: bold;
    color: rgba(255,255,255,0.3);
}

.tkd-aluno-info {
    padding: 15px;
}

.tkd-aluno-info h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
}

.tkd-aluno-faixa {
    margin: 0;
}

/* Faixas */
.tkd-faixa {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.tkd-faixa-branca { background: #f5f5f5; color: #333; border: 1px solid #ddd; }
.tkd-faixa-cinza { background: #d3d3d3; color: #333; }
.tkd-faixa-amarela { background: #fff3cd; color: #856404; }
.tkd-faixa-laranja { background: #ffe0b2; color: #e65100; }
.tkd-faixa-verde-claro { background: #c8e6c9; color: #2e7d32; }
.tkd-faixa-verde-escuro { background: #a5d6a7; color: #1b5e20; }
.tkd-faixa-azul-claro { background: #bbdefb; color: #1565c0; }
.tkd-faixa-azul-escuro { background: #90caf9; color: #0d47a1; }
.tkd-faixa-vermelha-claro { background: #ffcdd2; color: #c62828; }
.tkd-faixa-vermelho-escuro { background: #ef9a9a; color: #b71c1c; }
.tkd-faixa-preta-1ª-dan { background: #333; color: #fff; }
.tkd-faixa-preta-2ª-dan { background: #222; color: #fff; }
.tkd-faixa-preta-3ª-dan { background: #111; color: #fff; }

/* Status */
.tkd-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.tkd-status-pendente { background: #fff3cd; color: #856404; }
.tkd-status-pago { background: #d4edda; color: #155724; }
.tkd-status-atrasado { background: #f8d7da; color: #721c24; }

/* Cadastro Form */
.tkd-cadastro-form {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.tkd-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.tkd-form-group {
    flex: 1;
    margin-bottom: 20px;
}

.tkd-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.tkd-form-group input[type="text"],
.tkd-form-group input[type="email"],
.tkd-form-group input[type="tel"],
.tkd-form-group input[type="date"],
.tkd-form-group input[type="file"],
.tkd-form-group select,
.tkd-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.tkd-form-group input:focus,
.tkd-form-group select:focus,
.tkd-form-group textarea:focus {
    outline: none;
    border-color: #1e3a5f;
}

.tkd-btn {
    display: inline-block;
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.tkd-btn-primary {
    background: linear-gradient(135deg, #1e3a5f 0%, #0d1b2a 100%);
    color: #fff;
}

.tkd-btn-primary:hover {
    background: linear-gradient(135deg, #0d1b2a 0%, #1e3a5f 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30,58,95,0.3);
}

#tkd-fe-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

#tkd-fe-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#tkd-fe-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Mensalidades */
.tkd-aluno-profile {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.tkd-profile-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #1e3a5f;
}

.tkd-profile-info h3 {
    margin: 0 0 5px 0;
    font-size: 20px;
}

.tkd-profile-info p {
    margin: 0;
    color: #666;
}

.tkd-table-responsive {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.tkd-table-responsive th,
.tkd-table-responsive td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.tkd-table-responsive th {
    background: #1e3a5f;
    color: #fff;
    font-weight: 600;
}

.tkd-table-responsive tr:last-child td {
    border-bottom: none;
}

.tkd-table-responsive tr:hover {
    background: #f8f9fa;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .tkd-frontend {
        padding: 15px;
    }
    
    .tkd-frontend h2 {
        font-size: 24px;
    }
    
    .tkd-alunos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .tkd-aluno-foto {
        height: 140px;
    }
    
    .tkd-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .tkd-cadastro-form {
        padding: 20px;
    }
    
    .tkd-aluno-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .tkd-table-responsive {
        display: block;
        overflow-x: auto;
    }
}

@media screen and (max-width: 480px) {
    .tkd-alunos-grid {
        grid-template-columns: 1fr;
    }
    
    .tkd-btn {
        width: 100%;
        text-align: center;
    }
}
