/* ==========================================================
   TIPA MART
   MY PROFILE
========================================================== */

.profile-page {
    background: #f5f5f5;
    padding: 60px 0 80px;
    min-height: 700px;
}


/* ==========================================================
   HEADER
========================================================== */

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 35px;
}

.profile-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0d5cb6;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.profile-header h1 {
    margin: 0 0 8px;
    font-size: 38px;
    color: #222;
}

.profile-header p {
    margin: 0;
    color: #666;
    font-size: 15px;
}

.profile-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #082c6c;
    color: #fff;
    padding: 13px 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: 0.2s ease;
}

.profile-back:hover {
    background: #0d5cb6;
}


/* ==========================================================
   MESSAGES
========================================================== */

.profile-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    margin-bottom: 25px;
    border: 1px solid;
    font-size: 14px;
}

.profile-message p {
    margin: 0;
}

.profile-message--error {
    background: #fff3f3;
    border-color: #e5b8b8;
    color: #a12626;
}

.profile-message--success {
    background: #f1faf4;
    border-color: #b8dfc2;
    color: #24733a;
}


/* ==========================================================
   LAYOUT
========================================================== */

.profile-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    align-items: start;
}


/* ==========================================================
   SIDEBAR
========================================================== */

.profile-sidebar {
    background: #fff;
    border: 1px solid #e5e5e5;
}

.profile-sidebar__customer {
    text-align: center;
    padding: 30px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.profile-avatar {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #0d5cb6;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
}

.profile-sidebar__customer h2 {
    margin: 0 0 6px;
    color: #222;
    font-size: 18px;
}

.profile-sidebar__customer span {
    color: #777;
    font-size: 13px;
    font-weight: 600;
}


/* ==========================================================
   MENU
========================================================== */

.profile-menu {
    display: flex;
    flex-direction: column;
}

.profile-menu__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: #444;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    transition: 0.2s ease;
}

.profile-menu__item:hover {
    background: #f5f8fc;
    color: #0d5cb6;
}

.profile-menu__item.active {
    background: #0d5cb6;
    color: #fff;
}

.profile-menu__item i {
    width: 18px;
    text-align: center;
}

.profile-menu__logout {
    color: #b32626;
}

.profile-menu__logout:hover {
    color: #b32626;
    background: #fff5f5;
}


/* ==========================================================
   CONTENT
========================================================== */

.profile-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.profile-panel {
    background: #fff;
    border: 1px solid #e5e5e5;
}


/* ==========================================================
   PANEL HEADER
========================================================== */

.profile-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid #e5e5e5;
}

.profile-panel__header span {
    display: block;
    margin-bottom: 5px;
    color: #0d5cb6;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.profile-panel__header h2 {
    margin: 0;
    color: #222;
    font-size: 22px;
}

.profile-panel__header > i {
    color: #0d5cb6;
    font-size: 22px;
}


/* ==========================================================
   FORM
========================================================== */

.profile-form {
    padding: 28px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.profile-grid--password {
    grid-template-columns: repeat(3, 1fr);
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-field label {
    color: #333;
    font-size: 13px;
    font-weight: 700;
}

.profile-field input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #dcdcdc;
    background: #fff;
    color: #222;
    font-size: 14px;
    outline: none;
    transition: 0.2s ease;
}

.profile-field input:focus {
    border-color: #0d5cb6;
    box-shadow: 0 0 0 3px rgba(13, 92, 182, 0.08);
}


/* ==========================================================
   FORM FOOTER
========================================================== */

.profile-form__footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.profile-button {
    border: 0;
    background: #0d5cb6;
    color: #fff;
    padding: 14px 22px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    transition: 0.2s ease;
}

.profile-button:hover {
    background: #082c6c;
}


/* ==========================================================
   ACCOUNT INFORMATION
========================================================== */

.profile-information {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.profile-information > div {
    padding: 25px 28px;
    border-right: 1px solid #eee;
}

.profile-information > div:last-child {
    border-right: 0;
}

.profile-information span {
    display: block;
    margin-bottom: 7px;
    color: #777;
    font-size: 12px;
}

.profile-information strong {
    display: block;
    color: #222;
    font-size: 15px;
}

.profile-status {
    color: #23803c !important;
}


/* ==========================================================
   PASSWORD NOTE
========================================================== */

.profile-password-note {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 20px;
    padding: 13px 15px;
    background: #f5f8fc;
    color: #555;
    font-size: 13px;
}

.profile-password-note i {
    color: #0d5cb6;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1000px) {

    .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        width: 100%;
    }

    .profile-menu {
        flex-direction: row;
    }

    .profile-menu__item {
        flex: 1;
        justify-content: center;
        border-bottom: 0;
        border-right: 1px solid #eee;
    }

    .profile-menu__item:last-child {
        border-right: 0;
    }

    .profile-grid--password {
        grid-template-columns: 1fr 1fr;
    }

    .profile-information {
        grid-template-columns: 1fr;
    }

    .profile-information > div {
        border-right: 0;
        border-bottom: 1px solid #eee;
    }

    .profile-information > div:last-child {
        border-bottom: 0;
    }

}


@media (max-width: 700px) {

    .profile-page {
        padding: 40px 0 60px;
    }

    .profile-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-header h1 {
        font-size: 30px;
    }

    .profile-grid,
    .profile-grid--password {
        grid-template-columns: 1fr;
    }

    .profile-form {
        padding: 20px;
    }

    .profile-panel__header {
        padding: 20px;
    }

    .profile-menu {
        flex-direction: column;
    }

    .profile-menu__item {
        justify-content: flex-start;
        border-right: 0;
        border-bottom: 1px solid #eee;
    }

    .profile-information > div {
        padding: 20px;
    }

    .profile-form__footer {
        justify-content: stretch;
    }

    .profile-button {
        width: 100%;
        justify-content: center;
    }

}