/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*BODY */
html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    min-height: 100vh;

    font-family: 'Signika Negative', 'Segoe UI', Tahoma, sans-serif;

    background-color: #579268;

    background-image: url("../images/background.jpg");

    background-size: cover;

    background-position: center center;

    background-repeat: no-repeat;

    background-attachment: fixed;

    overflow-x: hidden;
}

/* TOP BAR */
.top-bar {
    width: 100%;
    height: 63px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    z-index: 10;
}

/* MENU */
.menu-btn {
    position: absolute;

    left: 17px;
    top: 18px;

    width: 30px;
    height: 30px;

    border: none;
    background: transparent;

    color: white;

    font-size: 26px;

    cursor: pointer;

    z-index: 20;
}

/* LOGO */
.logo {
    color: white;

    font-family: 'Signika Negative', 'Segoe UI', Tahoma, sans-serif;

    font-size: 33px;
    font-weight: bold;

    display: flex;
    align-items: center;

    gap: 7px;

    text-shadow: 0 2px 2px rgba(0,0,0,0.15);
}

/* PROFILE CONTAINER */
.profile-container {
    width: 100%;

    display: flex;
    justify-content: center;

    /* side padding matches .feedback-container */
    padding: 0 35px 30px;

    position: relative;
    z-index: 2;
}

/* PROFILE CARD */
.profile-card {

    /* same footprint as .feedback-card */
    width: 100%;

    /* fills the page like the admin cards */
    max-width: none;

    min-height: 620px;

    background: #ffffff;

    /* rounded on all four corners */
    border-radius: 22px;

    padding: 18px 35px 35px;

    position: relative;

    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

/* BACK BUTTON */
.back-btn {

    border: none;

    background: transparent;

    color: #405749;

    font-size: 23px;

    cursor: pointer;

    display: block;

    margin-bottom: 4px;
}


/*GREETING*/

.greeting {

    text-align: center;

    color: #587261;

    font-size: 17px;

    font-weight: 600;

    margin-bottom: 3px;
}


/* TITLE */

.profile-card h1 {

    text-align: center;

    font-family: 'Signika Negative', 'Segoe UI', Tahoma, sans-serif;

    color: #3f594a;

    font-size: 55px;

    line-height: 1;

    margin-bottom: 27px;

    text-shadow: 1px 2px 0 rgba(0,0,0,0.08);
}


/* INFO BOX */

/* PROFILE INFORMATION GRID */
.profile-info-grid {
    display: grid;

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

    gap: 8px 12px;

    width: 100%;
}


.profile-info-grid .info-box {
    margin-bottom: 0;
}

.profile-info-grid .full-width {
    grid-column: 1 / -1;
}

.info-box {

    width: 100%;

    height: 50px;

    background: #ffffff;

    border: 1px solid #dde5de;

    border-radius: 5px;

    display: flex;

    align-items: center;

    margin-bottom: 8px;

    padding: 5px 12px;
}


/*ICON */

.info-icon {

    width: 40px;

    display: flex;

    justify-content: center;

    align-items: center;

    color: #3d5a49;

    font-size: 25px;
}


/* INFO TEXT */

.info-text {

    display: flex;

    flex-direction: column;

    margin-left: 5px;

    overflow: hidden;
}

.info-text small {

    font-size: 10px;

    color: #728273;

    font-weight: 600;
}

.info-text span {

    color: #405749;

    font-size: 16px;

    font-weight: 600;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


/* SIGNOUT */

.signout-btn {

    display: block;

    width: 200px;
    height: 48px;

    margin: 26px auto 0;

    border: none;

    border-radius: 10px;

    background: #62786a;

    color: white;

    font-family: 'Signika Negative', 'Segoe UI', Tahoma, sans-serif;

    font-size: 18px;

    font-weight: bold;

    cursor: pointer;
}

.signout-btn:hover {
    background: #4f6558;
}

/* SIDEBAR */
.sidebar {
    position: fixed;

    top: 0;
    left: -320px;

    width: 300px;
    height: 100vh;

    background: #3B5643 url("../images/bg-dark.jpg") center center / cover no-repeat;

    padding: 25px;

    z-index: 99999;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    transition: left 0.3s ease;
}


/* OPEN SIDEBAR */

.sidebar.open {
    left: 0;
}


/* LOGO */

.sidebar-logo {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 40px;
}

.sidebar-logo i {
    font-size: 34px;
}

.sidebar-logo h1 {

    font-family: 'Signika Negative', 'Segoe UI', Tahoma, sans-serif;

    font-size: 37px;
}


/* NAVIGATION */

.sidebar nav {

    display: flex;

    flex-direction: column;

    gap: 10px;
}

.sidebar nav a {

    color: white;

    text-decoration: none;

    display: flex;

    align-items: center;

    gap: 14px;

    padding: 14px;

    border-radius: 12px;

    transition: 0.2s;
}

.sidebar nav a:hover {

    background: rgba(255,255,255,0.15);
}


/* ACTIVE */

.sidebar nav a.active {

    background: white;

    color: #4f805d;

    font-weight: bold;
}


/* LOGOUT */

#sidebarLogout {

    border: none;

    background: #b65b5b;

    color: white;

    padding: 14px;

    border-radius: 12px;

    cursor: pointer;

    font-weight: bold;

    font-size: 16px;
}

#sidebarLogout:hover {

    background: #a44e4e;
}

/* DARK OVERLAY */
.sidebar-overlay {
    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.35);

    z-index: 9999;

    opacity: 0;

    pointer-events: none;

    transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
    opacity: 1;

    pointer-events: auto;
}

/* MOBILE */
@media (max-width: 600px) {

    .profile-info-grid .full-width {
    grid-column: auto;
    }

    .profile-info-grid {
    grid-template-columns: 1fr;
    }

    .logo {
        font-size: 29px;
    }

    .profile-card {

        width: calc(100% - 30px);

        min-height: 500px;

        padding-left: 25px;
        padding-right: 25px;
    }

    .profile-card h1 {
        font-size: 48px;
    }
}

/* VERY SMALL SCREEN */
@media (max-width: 350px) {

    .logo {
        font-size: 25px;
    }

    .profile-card h1 {
        font-size: 41px;
    }
}

.sidebar-logo,
.admin-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.sidebar-logo .brand-icon,
.admin-logo .brand-icon {
    width: 54px;
    height: auto;
    display: block;
}

.sidebar-logo .brand-name,
.admin-logo .brand-name {
    width: 140px;
    max-width: 100%;
    height: auto;
    display: block;
}

header .logo,
.top-bar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

header .logo .brand-icon,
.top-bar .logo .brand-icon {
    width: 34px;
    height: auto;
    display: block;
}

header .logo .brand-name,
.top-bar .logo .brand-name {
    width: 120px;
    height: auto;
    display: block;
}

html,
body,
button,
input,
select,
textarea {
    font-family: 'Signika Negative', 'Segoe UI', Tahoma, sans-serif;

    /* SemiBold is the base weight for this design */
    font-weight: 600;
}


/* PHONES: sidebar uses the visible height so Logout is never under the browser bar */
@supports (height: 100dvh) {
    .sidebar {
        height: 100dvh;
    }
}

.sidebar {
    overflow-y: auto;
    padding-bottom: calc(25px + env(safe-area-inset-bottom, 0px));
}


/* =====================================================
   PHONE VIEW: My Profile, Travel History and Feedback &
   Report share one card size, and the card fills the screen
===================================================== */
@media (max-width: 700px) {

    .profile-container,
    .history-container,
    .feedback-container {
        min-height: 0;
        padding: 0 12px 12px;
        align-items: stretch;
    }

    .profile-card,
    .history-card,
    .feedback-card {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        min-height: calc(100vh - 75px);
        min-height: calc(100dvh - 75px);
        max-height: none;
        margin: 0;
        padding: 16px 16px 24px;
        border-radius: 18px;
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    }
}
