/* ================================================
   PROFILE.CSS - Dashboard, Forms, Submitted Angels
   ================================================ */

/* Profile Dashboard Container */
#profile_details {
    background-color: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--apald-darkpurple);
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 600px;
    margin: 1.5rem auto;
}

#profile_greetings {
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Profile Image */
#profile_image_display,
#current_profile_image {
    border-radius: 8px;
    border: 3px solid var(--apald-litepurple);
    max-width: 160px;
    height: auto;
    display: block;
    margin: 0.8rem auto;
}

/* Profile Update Form */
#edit_profile_form {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--apald-darkpurple);
    border-radius: 12px;
    padding: 1.8rem;
    max-width: 620px;
    margin: 1.5rem auto;
}

#update_profile_form .register_row,
#update_profile_form div {
    margin-bottom: 1rem;
}

#update_profile_form label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--apald-honeydew);
}

#update_profile_form input[type="text"],
#update_profile_form input[type="email"],
#update_profile_form input[type="tel"],
#update_profile_form select {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    color: white;
}

/* Status Badges */
.status {
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.status-pending  { background: #f57f17; color: white; }
.status-approved { background: #2e7d32; color: white; }
.status-rejected { background: #c62828; color: white; }

/* Angel Cards in Profile */
.angel-card {
    background-color: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--apald-darkpurple);
    border-radius: 10px;
    padding: 1.2rem;
    margin: 1rem 0;
    text-align: center;
}

.angel-card h3 {
    margin: 0.6rem 0;
    color: var(--apald-honeydew);
}

.angel-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
}

/* Form Feedback Messages */
#profile_message,
#update_message,
#submission_success,
#angel_errors {
    padding: 1rem;
    border-radius: 8px;
    margin: 1.2rem auto;
    max-width: 620px;
    text-align: center;
}

#submission_success,
#update_message[style*="rgb(5, 180, 60)"] {
    background-color: rgba(46, 125, 50, 0.2);
    border: 1px solid #4caf50;
    color: #c8e6c9;
}

#angel_errors,
#update_message[style*="rgb(242, 174, 174)"] {
    background-color: rgba(198, 40, 40, 0.2);
    border: 1px solid #ef5350;
    color: #ffcdd2;
}

/* Level Request Modal */
#levelRequestModal {
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(4px);
}

/* Profile Navigation Menu */
.profile_menu_container {
    margin: 2rem auto;
    text-align: center;
}

.profile_menu {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.profile_menu li a,
.profile_menu li button {
    padding: 0.8rem 1.4rem;
    border-radius: 8px;
    background: linear-gradient(var(--apald-litepurple), var(--apald-darkpurple));
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.profile_menu li a:hover,
.profile_menu li button:hover {
    background: var(--apald-peach);
    color: var(--apald-black);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .angel-card {
        margin: 1rem auto;
        width: 95%;
    }
    
    .profile_menu {
        flex-direction: column;
        align-items: center;
    }
    
    #edit_profile_form,
    #profile_details {
        margin: 1rem auto;
        width: 95%;
    }
}