/* Our Global/ Shared Styles
   Used across multiple pages.
   Do NOT put page-specific styles here. */


/* ---------- Our Base / Reset ---------- */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    text-align: center;
}

h1 {
    margin-bottom: 15px;
}

button {
    padding: 10px 16px;
    margin: 8px;
    font-size: 16px;
    cursor: pointer;
}

/* ---The top Navigation Bar----- */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #BAD67F;
    padding: 10px 30px;
}

.logo {
    margin-left: -19px;
}

.logo img {
    height: 100px;
    width: auto;
    display: block;
    border-radius: 10px;
}

/* -----My Account Button----- */
.account-btn {
    display: flex;
    align-items: center;
    gap: 2px;
    background-color: #f4b942;
    padding: 0 20px;
    height: 40px;
    border-radius: 999px;

    text-decoration: none;
    color: #000;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

/* ---My Account button Icon---- */
.account-btn img {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
    transform: translateX(-6px);
}

.account-btn span {
    margin-left: -25px;
}

.account-btn:hover {
    background-color: #cfa13f;
}

/* ---Welcome Banner--- */
.welcome-banner {
    background-color: #36c5c9;
    color: white;
    padding: 20px 40px;
    border-radius: 40px;
    font-size: 38px;
    margin-bottom: 75px;
    white-space: nowrap;
}

/* -----Shared login / Authenticaion card----*/
.login-card {
    background-color: #BAD67F;
    padding: 30px;
    border-radius: 25px;
    height: 360px;
    width: 370px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-card input {
    padding: 10px;
    border: none;
    border-radius: 6px;
}

/* ----Shared Button Row (Login/Create Acount)---- */
.login-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}


.login-actions button {
    background-color: #31C3C9;
    border: none;
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: -10px;
}

.login-actions button:hover {
    background-color: #28aeb3;
}


/* ----App Layout wrapper for pages with a sidebar----- */
.app-layout {
    display: flex;
    min-height: calc(100vh - 70px);
}

/* ---Left sidebar navigation--- */
.side-nav {
    width: 200px;
    background-color: #BAD67F;
    padding: 24px 12px;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ---Nav sidebar links--- */
.nav-item {
    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
    text-decoration: none;
    color: #000000;
    font-weight: 600;
    font-size: 14px;

    padding: 10px 10px;
    border-radius: 14px;
    white-space: nowrap;
}


/* ---Nav Sidebar hover + active state--- */
.nav-item:hover {
    background: rgba(255, 255, 255, 0.18);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.26);
    font-weight: 700;
}


/* ---Main content area next to sidebar--- */
.app-layout>main {
    flex: 1;
}

/* ----Shared back button------ */
.back-btn {
    position: absolute;
    top: 0;
    left: 30px;


    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;

    background-color: #31C3C9;
    color: #fff;
    font-size: 28px;
    cursor: pointer;

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

    transition: background-color 0.2s ease;
}

.back-btn:hover {
    background-color: #28aeb3;
}

/* ---Shared card styling for profile/edit profile--- */
.profile-card {
    background-color: #31C3C9;
    border-radius: 30px;
    padding: 28px;
    width: 680px;
    max-width: 100%;
    margin-bottom: 28px;
    box-sizing: border-box;
}


/* ---Shared profile/edit profile buttons (orange)--- */
.profile-btn-primary {
    background-color: #FFD15C;
    border: none;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.profile-btn-primary:hover {
    background-color: #e6bc52;
}

.profile-btn-secondary {
    background-color: #FFD15C;
    border: none;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}


.profile-btn-secondary:hover {
    background-color: #e6bc52;
}

/* ---Action buttons for inside profile cards--- */
.profile-actions button {
    background-color: #31C3C9;
    border: none;
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
}



/* ---Shared profile pic components---- */
.photo-circle {
    width: 130px;
    height: 130px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;

    background: rgba(255, 255, 255, 0.35);
    margin: 0 auto 15px auto;

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

/* ---Button inside photo circle--- */
.photo-btn {
    background: rgba(255, 255, 255, 0.75);
    border: none;
    border-radius: 999px;
    padding: 8px 10px;
    font-size: 12px;
    cursor: pointer;
}

/* Search bar stuff */
/* Top header search bar (shared) */
.top-bar {
    gap: 16px;
}

.top-search {
    flex: 1;
    display: flex;
    justify-content: left;
}

.top-search input {
    width: 100%;
    max-width: 520px;
    height: 38px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 0 12px;
    outline: none;
}

.top-search input:focus {
    border-color: #6b7676;
}