
body {
    position: relative;
    margin: 0;
    padding: 20px;
    font-family: Arial, sans-serif;
    background: #f5f6f7;
}

.form-box {
    background: #fff;
    padding: 18px;
    border-radius: 8px;
    max-width: 420px;
    margin: auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

h2 {
    margin: 0 0 12px;
    font-size: 20px;
}

.field {
    margin-bottom: 12px;
}

label {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

input, select {
    width: 100%;
    padding: 2.5%;
    border: 1px solid #d0d4db;
    border-radius: 6px;
    font-size: 14px;
}

input {
    width: 95%;
}

button {
    width: 100%;
    padding: 10px;
    background: #007bff;
    border: none;
    color: #fff;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
}

#user-id {
    color: ;
}

/* CARD */
/* .card {
    background: #ffffff;
    padding: 22px;
    border-radius: 14px;
    margin-bottom: 28px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transition: 0.25s;
}

.card:hover {
    box-shadow: 0 5px 18px rgba(0,0,0,0.12);
} */

/* PROFILE HEADER */
.profile-header {
    /* display: flex;
    align-items: center;
    gap: 24px; */
    margin: 6px;
}

#profile-pic {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(#ddd, #ccc);
    object-fit: cover;
    border: 3px solid #e5e5e5;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

#popup {
    background: #ffffff;
    width: 320px;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    text-align: center;
    animation: popupIn 0.25s ease;
}

#popup > div:last-child {
    margin-top: 12px;
}

@keyframes popupIn {
    from {
        transform: scale(0.92);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

#img-preview {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e5e7eb;
    margin-bottom: 16px;
}

.edit-btn {
    width: 90px;
    padding: 8px;
    margin: 6px;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
}

.edit-btn:hover {
    opacity: 0.9;
}

#cancel {
    background: #f1f5f9;
    color: #333;
    border: 1px solid #d0d4db;
}

#edit {
    background: #e0f2fe;
    color: #0369a1;
    border: none;
}

#save {
    background: #007bff;
    color: #fff;
    border: none;
}

#popup {
    min-height: 225px
}

#login-popup p:first-of-type {
    font-size: 40px;
}

#login-popup p:last-of-type {
    font-size: 1.3rem;
    color: red;
}
    
#login-popup button {
    background: green;
    min-width: 150px;
    max-width: 200px;
}

/* ==== Loader ==== */

.loader {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0000ff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}