/* ================================================
   PERFIL DO ALUNO - PÁGINA DE CONFIGURAÇÃO
   Estilo moderno e responsivo
   ================================================ */

:root {
    --primary-color: #A020F0;
    --primary-gradient: linear-gradient(135deg, #A020F0 0%, #8B00FF 100%);
    --dark-bg: #0F0F0F;
    --card-bg: #1A1A1A;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --border-color: rgba(255, 255, 255, 0.1);
    --success-color: #10B981;
    --danger-color: #EF4444;
}

/* Container Principal */
.ead-student-profile-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    background: var(--dark-bg);
    min-height: 100vh;
}

/* Header com navegação */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
}

.profile-header-content h1 {
    color: var(--text-primary);
    font-size: 36px;
    font-weight: 800;
    margin: 0 0 8px 0;
}

.profile-header-content p {
    color: var(--text-secondary);
    font-size: 16px;
    margin: 0;
}

/* Botões de Navegação */
.profile-nav-buttons {
    display: flex;
    gap: 12px;
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid;
}

.btn-nav-primary {
    background: var(--primary-gradient);
    color: #fff;
    border-color: transparent;
}

.btn-nav-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(160, 32, 240, 0.4);
}

.btn-nav-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-nav-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

/* Layout em 2 Colunas */
.profile-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 32px;
}

/* Coluna Esquerda - Foto e Informações Rápidas */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Coluna Direita - Formulários */
.profile-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Card do Perfil */
.profile-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s;
}

.profile-card:hover {
    border-color: rgba(160, 32, 240, 0.3);
}

.profile-card h2 {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 24px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-card h2 svg {
    color: var(--primary-color);
}

/* Seção de Avatar */
.profile-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.avatar-preview {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    border: 6px solid var(--primary-color);
    box-shadow: 0 8px 32px rgba(160, 32, 240, 0.5);
    position: relative;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Upload de Avatar */
.avatar-upload {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-upload-avatar,
.btn-save-avatar,
.btn-remove-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-upload-avatar {
    background: var(--primary-gradient);
    color: #fff;
    border-color: transparent;
}

.btn-upload-avatar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(160, 32, 240, 0.4);
}

.btn-save-avatar {
    background: var(--success-color);
    color: #fff;
    border-color: transparent;
}

.btn-save-avatar:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-remove-avatar {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-remove-avatar:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--danger-color);
}

.upload-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 8px;
}

.upload-info svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Formulários */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(160, 32, 240, 0.1);
}

.form-group input::placeholder {
    color: var(--text-secondary);
}

/* Botões de Formulário */
.btn-save-info,
.btn-change-password {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
}

.btn-save-info:hover,
.btn-change-password:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(160, 32, 240, 0.5);
}

.btn-save-info:disabled,
.btn-change-password:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Card de Estatísticas Rápidas */
.profile-quick-stats {
    background: linear-gradient(135deg, rgba(160, 32, 240, 0.1) 0%, rgba(139, 0, 255, 0.1) 100%);
    border: 2px solid rgba(160, 32, 240, 0.3);
    border-radius: 16px;
    padding: 24px;
}

.quick-stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.quick-stat-item:last-child {
    border-bottom: none;
}

.quick-stat-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.quick-stat-info {
    flex: 1;
}

.quick-stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 4px;
}

.quick-stat-value {
    display: block;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
}

/* Responsividade */
@media (max-width: 1024px) {
    .profile-content {
        grid-template-columns: 1fr;
    }
    
    .profile-sidebar {
        order: 1;
    }
    
    .profile-main {
        order: 2;
    }
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .profile-nav-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .btn-nav {
        width: 100%;
        justify-content: center;
    }
    
    .profile-header-content h1 {
        font-size: 28px;
    }
    
    .avatar-preview {
        width: 150px;
        height: 150px;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-card {
    animation: fadeIn 0.5s ease-out;
}

.profile-card:nth-child(1) {
    animation-delay: 0.1s;
}

.profile-card:nth-child(2) {
    animation-delay: 0.2s;
}

.profile-card:nth-child(3) {
    animation-delay: 0.3s;
}
