/* Container for the Edit Page */
.edit-profile-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px;
    background: #eeeded;
    box-sizing: border-box;
    width: 100%;
}

/* The Card styling */
.edit-card {
    background: #ffffff;
    width: 100%;
    max-width: 500px;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

.edit-card .btn-save{
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    background-color: #e3b80b;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.edit-card .btn-profile-action{
    background-color: #1f1e1e;
    color: #ffffff;
}

.edit-card h3 {
    margin-bottom: 25px;
    font-size: 20px;
    color: #1a202c;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 11px;
    font-weight: 700;
    color: #a0aec0;
    letter-spacing: 0.05em;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    box-sizing: border-box;
}

/* Gender Selection Styling */
.gender-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 5px;
}

.gender-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #4a5568;
}

.gender-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #000000; /* Makes the radio dot black */
}

/* Action Buttons (Default: Desktop/Large Screens) */
.modal-actions {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 25px;
    width: 100%;
}

.modal-actions > * {
    flex: 1;
}

.btn-save:hover {
    opacity: 0.8;
}

.btn-cancel {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: #718096;
    font-size: 14px;
    font-weight: 500;
    padding: 12px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-sizing: border-box;
}

.btn-profile-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: #f7fafc;
    color: #5d99ff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 13px;
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
}

.btn-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}


/* ==========================================
   RESPONSIVE MEDIA QUERIES FOR ALL SCREENS
   ========================================== */

/* 1. Tablets (Screen widths between 481px and 768px) */
@media screen and (max-width: 768px) {
    .edit-profile-container {
        padding: 20px 15px;
    }
    
    .edit-card {
        padding: 25px 20px;
    }
}

/* 2. Small Screen Phones (Screen widths 480px and below) */
@media screen and (max-width: 480px) {
    .edit-profile-container {
        padding: 10px;
        align-items: flex-start; /* Prevents card from clipping if content is long */
    }

    .edit-card {
        padding: 20px 15px;
        border-radius: 12px;
    }

    .edit-card h3 {
        font-size: 12px;
        margin-bottom: 20px;
    }

    /* Stacks buttons vertically and makes them smaller/compact on mobile */
    .modal-actions {
        flex-direction: row;
        gap: 8px;
    }

     .btn-save .btn-cancel{
        width: 20%;
        height: 10%;
        flex: none;
        padding: 4px; /* Reduced padding for smaller height */
        border-radius: 8px;
    }

    .gender-selection {
        gap: 15px;
    }
}