/* =========================================================
   GUIDANCE - MY PROFILE
   ========================================================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family:
        "Segoe UI",
        Arial,
        sans-serif;
    background: #f7f8fc;
    color: #1f2937;
}


/* =========================================================
   PAGE
   ========================================================= */

.profile-page {

    margin-left: 275px;

    width: calc(100% - 275px);

    min-height: 100vh;

    padding: 32px;

    background: #f7f8fc;
}


/* =========================================================
   HEADER
   ========================================================= */

.page-header {

    margin-bottom: 24px;
}

.page-eyebrow {

    display: inline-block;

    margin-bottom: 6px;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1.2px;

    color: #6b7280;
}

.page-header h1 {

    margin: 0;

    font-size: 30px;

    font-weight: 750;

    color: #111827;
}

.page-header p {

    margin: 7px 0 0;

    color: #6b7280;

    font-size: 14px;
}


/* =========================================================
   ALERT
   ========================================================= */

.profile-alert {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 14px 16px;

    margin-bottom: 20px;

    border-radius: 12px;

    font-size: 14px;

    font-weight: 600;
}

.success-alert {

    background: #ecfdf3;

    color: #18794e;

    border: 1px solid #bbf7d0;
}

.error-alert {

    background: #fff1f2;

    color: #be123c;

    border: 1px solid #fecdd3;
}

.profile-alert > i {

    font-size: 18px;
}

.profile-alert span {

    flex: 1;
}

.alert-close {

    border: 0;

    background: transparent;

    color: inherit;

    cursor: pointer;

    font-size: 15px;
}


/* =========================================================
   PROFILE HERO
   ========================================================= */

.profile-hero {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 24px;

    padding: 28px;

    margin-bottom: 22px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 18px;

    box-shadow:
        0 8px 25px rgba(15, 23, 42, 0.05);
}

.profile-identity {

    display: flex;

    align-items: center;

    gap: 20px;

    min-width: 0;
}


/* =========================================================
   PHOTO
   ========================================================= */

.profile-photo-wrapper {

    position: relative;

    flex-shrink: 0;
}

.profile-photo {

    width: 112px;

    height: 112px;

    overflow: hidden;

    border-radius: 50%;

    background: linear-gradient(
        135deg,
        #e8eefc,
        #dbe5ff
    );

    border: 4px solid #ffffff;

    box-shadow:
        0 5px 18px rgba(15, 23, 42, 0.12);
}

.profile-photo img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;
}

.profile-initials {

    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 32px;

    font-weight: 800;

    color: #3154c6;
}

.photo-upload-form {

    position: absolute;

    right: 1px;

    bottom: 1px;
}

.change-photo-button {

    width: 36px;

    height: 36px;

    border-radius: 50%;

    border: 3px solid #ffffff;

    background: #3154c6;

    color: #ffffff;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.18);

    transition:
        transform .15s ease,
        background .15s ease;
}

.change-photo-button:hover {

    background: #2445b0;

    transform: scale(1.05);
}


/* =========================================================
   IDENTITY
   ========================================================= */

.profile-identity-info {

    min-width: 0;
}

.profile-identity-info h2 {

    margin: 0 0 8px;

    font-size: 25px;

    line-height: 1.2;

    color: #111827;

    word-break: break-word;
}

.profile-role {

    display: flex;

    align-items: center;

    gap: 7px;

    color: #3154c6;

    font-size: 14px;

    font-weight: 700;
}

.profile-employee {

    margin-top: 8px;

    font-size: 13px;

    color: #6b7280;
}

.profile-employee strong {

    color: #374151;

    margin-left: 4px;
}

.profile-status {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    margin-top: 11px;

    padding: 5px 10px;

    border-radius: 999px;

    background: #ecfdf3;

    color: #15803d;

    font-size: 12px;

    font-weight: 700;
}

.status-dot {

    width: 7px;

    height: 7px;

    border-radius: 50%;

    background: #22c55e;
}


/* =========================================================
   REMOVE PHOTO
   ========================================================= */

.remove-photo-form {

    flex-shrink: 0;
}

.remove-photo-button {

    border: 1px solid #fecaca;

    background: #fff;

    color: #dc2626;

    padding: 10px 14px;

    border-radius: 9px;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

    display: inline-flex;

    align-items: center;

    gap: 7px;

    transition:
        background .15s ease,
        border-color .15s ease;
}

.remove-photo-button:hover {

    background: #fef2f2;

    border-color: #fca5a5;
}


/* =========================================================
   FORM
   ========================================================= */

.profile-form {

    display: flex;

    flex-direction: column;

    gap: 22px;
}


/* =========================================================
   CARD
   ========================================================= */

.profile-card {

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 16px;

    overflow: hidden;

    box-shadow:
        0 6px 20px rgba(15, 23, 42, 0.04);
}


/* =========================================================
   CARD HEADER
   ========================================================= */

.card-header {

    display: flex;

    align-items: center;

    gap: 14px;

    padding: 22px 24px;

    border-bottom: 1px solid #eef0f4;
}

.card-icon {

    width: 42px;

    height: 42px;

    flex-shrink: 0;

    border-radius: 11px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #eef2ff;

    color: #3154c6;

    font-size: 17px;
}

.card-header h2 {

    margin: 0;

    font-size: 17px;

    color: #111827;
}

.card-header p {

    margin: 4px 0 0;

    font-size: 12px;

    color: #6b7280;
}


/* =========================================================
   INFORMATION GRID
   ========================================================= */

.information-grid {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;

    padding: 24px;
}


/* =========================================================
   FIELD
   ========================================================= */

.form-field {

    min-width: 0;
}

.form-field label {

    display: block;

    margin-bottom: 7px;

    font-size: 12px;

    font-weight: 700;

    color: #374151;
}

.form-field input {

    width: 100%;

    min-height: 44px;

    padding: 10px 12px;

    border: 1px solid #d9dde6;

    border-radius: 9px;

    background: #ffffff;

    color: #111827;

    outline: none;

    font-size: 14px;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.form-field input:not([readonly]):focus {

    border-color: #3154c6;

    box-shadow:
        0 0 0 3px rgba(49, 84, 198, 0.10);
}

.form-field input[readonly] {

    background: #f8fafc;

    color: #667085;

    cursor: default;
}

.form-field small {

    display: block;

    margin-top: 5px;

    color: #98a2b3;

    font-size: 11px;
}


/* =========================================================
   INPUT WITH ICON
   ========================================================= */

.input-with-icon {

    position: relative;
}

.input-with-icon > i {

    position: absolute;

    left: 13px;

    top: 50%;

    transform: translateY(-50%);

    color: #98a2b3;

    pointer-events: none;
}

.input-with-icon input {

    padding-left: 38px;
}


/* =========================================================
   SAVE BAR
   ========================================================= */

.profile-save-bar {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 18px 20px;

    margin-bottom: 30px;

    border-radius: 14px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    box-shadow:
        0 6px 20px rgba(15, 23, 42, 0.04);
}

.save-message {

    display: flex;

    align-items: center;

    gap: 8px;

    color: #667085;

    font-size: 12px;
}

.save-message i {

    color: #3154c6;
}

.save-profile-button {

    border: 0;

    background: #3154c6;

    color: #ffffff;

    min-height: 44px;

    padding: 0 20px;

    border-radius: 9px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background .15s ease,
        transform .15s ease;
}

.save-profile-button:hover {

    background: #2445b0;

    transform: translateY(-1px);
}

.save-profile-button:disabled {

    opacity: .65;

    cursor: not-allowed;

    transform: none;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {

    .profile-page {

        padding: 26px;
    }

    .information-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 800px) {

    .profile-page {

        margin-left: 0;

        width: 100%;

        padding: 24px 20px;
    }

    .profile-hero {

        align-items: flex-start;

        flex-direction: column;
    }

    .remove-photo-form {

        width: 100%;
    }

    .remove-photo-button {

        width: 100%;

        justify-content: center;
    }
}


@media (max-width: 650px) {

    .information-grid {

        grid-template-columns: 1fr;

        padding: 20px;
    }

    .card-header {

        padding: 19px 20px;
    }

    .profile-save-bar {

        align-items: stretch;

        flex-direction: column;
    }

    .save-profile-button {

        width: 100%;
    }
}


@media (max-width: 500px) {

    .profile-page {

        padding: 20px 14px;
    }

    .profile-hero {

        padding: 20px;
    }

    .profile-identity {

        align-items: flex-start;

        flex-direction: column;
    }

    .profile-identity-info h2 {

        font-size: 21px;
    }

    .profile-photo {

        width: 96px;

        height: 96px;
    }

    .profile-initials {

        font-size: 28px;
    }

    .page-header h1 {

        font-size: 26px;
    }
}
