/* 
 * Modern Profile Editor CSS
 */

:root {
    --prof-primary: #123D0B;
    --prof-primary-hover: #0a2507;
    --prof-bg: #f8fafc;
    --prof-card-bg: #ffffff;
    --prof-border: #e2e8f0;
    --prof-text-main: #0f172a;
    --prof-text-muted: #64748b;
    --prof-radius: 24px;
    --prof-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-dashboard {
    max-width: 900px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
    font-family: 'Inter', -apple-system, sans-serif;
}

.profile-section-card {
    background: var(--prof-card-bg);
    border-radius: var(--prof-radius);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: var(--prof-transition);
}

.profile-section-card:hover {
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.profile-section-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--prof-primary), #34d399);
    opacity: 0.8;
}

.profile-section-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--prof-border);
}

.profile-section-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: var(--prof-text-main);
    letter-spacing: -0.5px;
}

.profile-section-header p {
    margin: 5px 0 0;
    font-size: 14px;
    color: var(--prof-text-muted);
}

.profile-section-footer {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid var(--prof-border);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

/* Button */
.btn-save-section {
    background: var(--prof-text-main);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: var(--prof-transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-save-section:hover {
    background: var(--prof-primary);
    box-shadow: 0 10px 20px -5px rgba(18, 61, 11, 0.4);
    transform: translateY(-2px);
}

/* Messages */
.section-msg {
    flex-grow: 1;
    font-size: 14px;
    font-weight: 600;
    display: none;
    padding: 12px 20px;
    border-radius: 10px;
}

.section-msg.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.section-msg.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Loader */
.btn-loader {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: profSpin 1s linear infinite;
    display: none;
}

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

/* Grid & Inputs (Inherits some from registration-form.css but refines them) */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.form-group.full {
    grid-column: span 2;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: var(--prof-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    font-size: 16px;
    color: var(--prof-text-main);
    transition: var(--prof-transition);
    box-sizing: border-box;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    background: #fff;
    border-color: var(--prof-primary);
    outline: none;
    box-shadow: 0 0 0 4px rgba(18, 61, 11, 0.1);
}

@media (max-width: 768px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-group.full { grid-column: span 1; }
    .profile-dashboard { padding: 0 15px; }
    .profile-section-card { padding: 25px; }
    .profile-section-footer { flex-direction: column-reverse; }
    .btn-save-section { width: 100%; justify-content: center; }
    .section-msg { width: 100%; text-align: center; }
}
