/* Frontend User Profile Page Styles */
.profile-container {
    max-width: 850px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.profile-card {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 35px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
}

.profile-header-badge {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 25px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--glass-border);
}

.profile-avatar-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    cursor: pointer;
}

.profile-avatar-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, #f3c64d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #0f172a;
    font-weight: 800;
    box-shadow: 0 0 25px rgba(212, 163, 42, 0.4);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: all 0.3s ease;
}

.profile-avatar-wrapper:hover .profile-avatar-circle {
    transform: scale(1.05);
    box-shadow: 0 0 35px rgba(212, 163, 42, 0.7);
}

.avatar-upload-label {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent);
    color: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile-avatar-wrapper:hover .avatar-upload-label,
.avatar-upload-label:hover {
    transform: scale(1.25) rotate(10deg);
    background: #ffffff;
    color: #000000;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.profile-user-info h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    color: #f8fafc;
}

.profile-user-info p {
    margin: 4px 0 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.profile-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group-full {
    grid-column: 1 / -1;
}

.profile-field-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.profile-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(10, 15, 26, 0.75);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: #f8fafc;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: all 0.25s ease;
}

/* High Contrast Datepicker Inputs */
input[type="date"].profile-input {
    color: #ffffff !important;
    text-transform: uppercase !important;
    font-weight: 600;
    letter-spacing: 0.05em;
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(212, 163, 42, 0.4);
}

input[type="date"].profile-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
    opacity: 0.9;
    transition: transform 0.2s ease;
}

input[type="date"].profile-input::-webkit-calendar-picker-indicator:hover {
    transform: scale(1.2);
}

.profile-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(212, 163, 42, 0.3);
}

.btn-save-profile {
    background: linear-gradient(135deg, var(--accent) 0%, #f3c64d 100%);
    color: #0f172a;
    border: none;
    border-radius: 12px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 6px 20px rgba(212, 163, 42, 0.3);
}

.btn-save-profile:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 163, 42, 0.45);
}

@media (max-width: 640px) {
    .profile-card {
        padding: 20px;
    }
    .profile-header-badge {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .profile-form-grid {
        grid-template-columns: 1fr;
    }
}
