/* ===== PROFILE PAGE STYLES ===== */

.profile-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/* ===== Page Header ===== */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 400;
    color: #2d3e50;
    margin-bottom: 8px;
}

.page-header h1 span {
    font-weight: 600;
    color: #00bcd4;
}

.page-header p {
    color: #6c757d;
    font-size: 1.1rem;
}

/* ===== Profile Container ===== */
.profile-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    background: white;
    border-radius: 16px;
    border: 1px solid #edf2f7;
    padding: 30px;
}

/* ===== Profile Sidebar ===== */
.profile-sidebar {
    text-align: center;
    padding-right: 30px;
    border-right: 1px solid #edf2f7;
}

.profile-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #00bcd4;
}

.change-photo {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 35px;
    height: 35px;
    background: #00bcd4;
    border: 2px solid white;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.change-photo:hover {
    background: #0097a7;
    transform: scale(1.1);
}

.profile-sidebar h2 {
    color: #2d3e50;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.profile-email {
    color: #8f9bb3;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

/* Profile Stats */
.profile-stats {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 15px 0;
    border-top: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
}

.stat {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: #00bcd4;
}

.stat-text {
    font-size: 0.85rem;
    color: #8f9bb3;
}

/* ===== Profile Form ===== */
.profile-form {
    padding-left: 10px;
}

.profile-form h3 {
    color: #2d3e50;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2d3e50;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: 0.2s;
    background: #f8fafc;
    font-family: 'Inter', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00bcd4;
    background: white;
}

.form-group textarea {
    resize: vertical;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.save-btn {
    padding: 12px 30px;
    background: #00bcd4;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.save-btn:hover {
    background: #0097a7;
}

.cancel-btn {
    padding: 12px 30px;
    background: white;
    color: #6c757d;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.2s;
}

.cancel-btn:hover {
    background: #f8fafc;
    border-color: #00bcd4;
    color: #00bcd4;
}

/* ===== Password Section ===== */
.password-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #edf2f7;
}

.password-section h3 {
    color: #2d3e50;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.update-btn {
    padding: 12px 30px;
    background: #2d3e50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 10px;
}

.update-btn:hover {
    background: #1a2632;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .profile-page {
        padding: 30px 15px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .profile-container {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .profile-sidebar {
        border-right: none;
        border-bottom: 1px solid #edf2f7;
        padding-right: 0;
        padding-bottom: 20px;
    }

    .profile-form {
        padding-left: 0;
        padding-top: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-actions {
        flex-direction: column;
    }

    .save-btn,
    .cancel-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .profile-stats {
        gap: 15px;
    }

    .stat-num {
        font-size: 1.1rem;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
    }
}