/* ==============================
   GLOBAL STYLES
============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: "Inter", Arial, sans-serif;
    color: #001f3f;
}

/* ==============================
   HEADER
============================== */
.top-header {
    width: 100%;
    padding: 25px 20px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: transparent;
    box-shadow: none;
}

.logo {
    text-align: center;
    font-family: "Montserrat", sans-serif;
    color: #001f3f;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    margin: 25px 0 5px;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(0, 31, 63, 0.12);
}

/* ==============================
   MAIN CONTAINER
============================== */
.profile-container {
    width: 100%;
    padding: 10px 20px 40px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* ==============================
   PROFILE CARD
============================== */
.profile-card {
    width: 100%;
    max-width: 650px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.96);
    border: 1.5px solid #ffcc00;
    border-radius: 24px;
    box-shadow: 0 10px 35px rgba(0, 31, 63, 0.15);
}

/* ==============================
   PAGE HEADING
============================== */
.profile-heading {
    text-align: center;
    margin-bottom: 28px;
}

.profile-heading h1 {
    color: #155a9f;
    font-size: 25px;
    font-weight: 700;
    margin-bottom: 8px;
}

.profile-heading p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

/* ==============================
   FORM FIELDS
============================== */
.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #001f3f;
    font-size: 16px;
    font-weight: 600;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-wrapper input {
    display: block;
    width: 100%;
    height: 61px;
    padding: 0 45px 0 14px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    color: #001f3f;
    font-family: "Inter", Arial, sans-serif;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input-wrapper input::placeholder {
    color: #888888;
    opacity: 1;
}

.input-wrapper input:read-only {
    background: #f8fafc;
    cursor: default;
}

.input-wrapper input:not(:read-only) {
    background: #ffffff;
    border-color: #155a9f;
    box-shadow: 0 0 0 3px rgba(21, 90, 159, 0.10);
}

.input-wrapper input:focus {
    border-color: #155a9f;
}

/* ==============================
   EDIT ICON
============================== */
.edit-btn {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 25px;
    height: 25px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 5px;
    background: transparent;
    color: #155a9f;
    font-family: Arial, sans-serif;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.edit-btn:hover {
    background: #e6f1ff;
    color: #001f3f;
}

.edit-btn.active {
    background: #155a9f;
    color: #ffffff;
}

/* ==============================
   STATUS MESSAGES
============================== */
.message {
    display: none;
    padding: 12px 14px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.message.success {
    display: block;
    background: #e8f8ee;
    color: #176b38;
    border: 1px solid #b7e5c5;
}

.message.error {
    display: block;
    background: #fff0f0;
    color: #a61b1b;
    border: 1px solid #f1c0c0;
}

.message.info {
    display: block;
    background: #eaf3ff;
    color: #174c86;
    border: 1px solid #c7defa;
}

/* ==============================
   SAVE AND RESET BUTTONS
============================== */
.button-group {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.save-btn,
.reset-btn {
    flex: 1;
    min-height: 50px;
    padding: 12px 18px;
    border-radius: 9px;
    font-family: "Inter", Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.save-btn {
    color: #ffffff;
    background: linear-gradient(135deg, #001f3f, #155a9f);
    border: none;
    box-shadow: 0 5px 14px rgba(0, 31, 63, 0.15);
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 31, 63, 0.2);
}

.reset-btn {
    color: #001f3f;
    background: #ffffff;
    border: 1px solid #cbd5e1;
}

.reset-btn:hover {
    background: #eef2f7;
}

/* ==============================
   BACK TO HOME CONTAINER
============================== */
.back-home-container {
    width: 100%;
    margin-bottom: 20px;
    text-align: left;
}

/* ==============================
   RESPONSIVE DESIGN
============================== */
@media (max-width: 600px) {
    .top-header { padding: 25px 15px 10px; flex-direction: column; }
    .logo { font-size: 2rem; }
    .profile-container { padding: 10px 12px 30px; }
    .profile-card { padding: 25px 18px; border-radius: 18px; }
    .profile-heading h1 { font-size: 23px; }
    .form-group label { font-size: 15px; }
    .input-wrapper input { height: 55px; font-size: 15px; padding-left: 10px; padding-right: 42px; }
    .edit-btn { right: 10px; }
    .button-group { flex-direction: column; }
    .back-home-container { margin-bottom: 15px; }
}

/* =========================================================
   DARK MODE OVERRIDES FOR UPDATE PROFILE
========================================================= */
[data-theme="dark"] .profile-card {
    background: #1e293b !important;
    border-color: #ffcc00 !important;
}

[data-theme="dark"] .profile-heading h1,
[data-theme="dark"] .profile-heading p,
[data-theme="dark"] .form-group label,
[data-theme="dark"] .logo {
    color: #ffffff !important;
}

[data-theme="dark"] .input-wrapper input {
    background-color: #0f172a !important;
    color: #ffffff !important;
    border-color: #475569 !important;
}

[data-theme="dark"] .input-wrapper input:read-only {
    background-color: #1e293b !important;
    color: #94a3b8 !important;
}

[data-theme="dark"] .edit-btn {
    color: #ffcc00 !important;
}

[data-theme="dark"] .reset-btn {
    background-color: #0f172a !important;
    color: #ffffff !important;
    border-color: #475569 !important;
}