/*------HEADER------*/
.LogInHeader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, var(--HeaderColor1), var(--HeaderColor2));
    border-bottom: 1px solid #d9d9d9;
    color: var(--TextColor) !important;
}

.header-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-more-dropdown {
    position: relative;
    display: inline-block;
}

.header-more-link {
    cursor: pointer;
    padding: 8px 16px;
    text-decoration: none;
    color: inherit;
    background: transparent;
    border: none;
    font-size: 1rem;
    font-family: inherit;
}

.header-more-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background: #fff;
    color: #000;
    min-width: 180px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 1000;
    border-radius: 4px;
    padding: 4px 0;
}

.header-more-dropdown:hover .header-more-menu {
    display: block;
}

.header-more-menu a {
    display: block;
    padding: 10px 20px;
    color: #000 !important;
    background: #fff !important;
    text-decoration: none;
    white-space: nowrap;
    font-size: 1rem;
    font-family: inherit;
    border: none;
    font-weight: 500;
}

.header-more-menu .more-menu-link {
    color: #000 !important;
    background: #fff !important;
}

.header-more-menu .more-menu-link:hover,
.header-more-menu .more-menu-link:focus {
    background: #e0e0e0 !important;
    color: #000 !important;
}

.header-nav a {
    display: flex;
    align-items: center;
    height: 48px;
    line-height: 48px;
    color: var(--TextColor);
    text-decoration: none;
    font-weight: bold;
    padding: 0 14px;
    font-size: 1.15rem;
    color: var(--TextColor) !important;
}

.header-nav a.active-tab {
    position: relative;
    color: var(--TextColor) !important;
}

.header-nav a.active-tab::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 6px;
    height: 3px;
    background: currentColor;
    border-radius: 2px;
    z-index: 2;
}

.header-left img {
    margin-left: 5px;
    height: 73.6px;
    width: auto;
    max-width: 270px;
    flex-shrink: 0;
    aspect-ratio: auto;
    display: block;
}

.header-center {
    display: flex;
    justify-content: center;
    flex: 0 1 auto;
    margin-right: 60px;
}

.header-user {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 20px;
    color: #fff !important;
}

.user-circle {
    background-color: #ffc107;
    color: black;
    font-weight: bold;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff !important;
}

.profile-dropdown {
    display: none;
    position: absolute;
    top: 48px;
    right: 0;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    min-width: 160px;
    max-width: 200px;
    z-index: 1000;
    padding: 4px 0;
    border: 1.5px solid #111;
}

.profile-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.profile-dropdown li {
    width: 100%;
    border-bottom: 1px solid #e0e0e0;
}

.profile-dropdown li:last-child {
    border-bottom: none;
}

.profile-dropdown a {
    display: block;
    padding: 8px 18px;
    color: #222;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.15s;
}

.profile-dropdown a:hover {
    background: #f5f5f5;
}

.header-user:hover .profile-dropdown,
.header-user:focus-within .profile-dropdown {
    display: none !important;
}

.profile-dropdown-link {
    background: none;
    border: none;
    outline: none;
    width: 100%;
    text-align: left;
    padding: 8px 18px;
    color: #222;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
    display: block;
}

.profile-dropdown-link:hover,
.profile-dropdown-link:focus {
    background: #f5f5f5;
}

.profile-initials-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: #FFD600;
    color: #222;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.5rem;
    text-transform: uppercase;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    margin-left: 0;
    border: 2px solid #fff;
    color: #fff !important;
}

.profile-link {
    text-decoration: none;
}

/*------FOOTER------*/

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    z-index: 1000;
    padding: 15px 20px;
    font-size: 12px;
    color: var(--TextColor);
    background: linear-gradient(to right, var(--HeaderColor1), var(--HeaderColor2));
    border-top: 1px solid #d9d9d9;
    margin-top: 10px;
}

.footer-company-left {
    flex: 1;
    text-align: left;
    min-width: 0;
}

.footer-main {
    flex: 1;
    text-align: center;
    min-width: 0;
}

.footer-spacer {
    flex: 1;
}

footer a {
    text-decoration: none;
    color: var(--TextColor);
    color: var(--TextColor) !important;
}

.footer-company-left {
    float: left;
}

footer::after {
    content: "";
    display: table;
    clear: both;
}

/*------Body------*/

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
}

main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: calc(100vh - 124px);
    box-sizing: border-box;
    padding-bottom: 80px;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: linear-gradient(var(--BackgroundColor1), var(--BackgroundColor2));
    background-attachment: fixed;
    background-size: cover;
    padding-top: 74px;
    padding-bottom: 50px;
}

.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

[id] {
    scroll-margin-top: 74px;
}

.logout {
    margin: 4vh 0px 4vh 0px;
    padding: 10px;
    background-color: #c44543;
    color: white;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.more-menu-link {
    color: #000 !important;
    background: #fff !important;
}

/* Underline for active tab */
.header-nav a.active-tab {
    position: relative;
    color: var(--TextColor) !important;
}

.header-nav a.active-tab::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 6px;
    height: 3px;
    background: currentColor;
    border-radius: 2px;
    z-index: 2;
}

/* Underline for active header group */
.header-more-dropdown.active-group > .header-more-link {
    position: relative;
    color: var(--TextColor) !important;
}

.header-more-dropdown.active-group > .header-more-link::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 6px;
    height: 3px;
    background: currentColor;
    border-radius: 2px;
    z-index: 2;
}

.header-more-menu .active-tab {
    color: #000 !important;
}

.header-more-menu .more-menu-link.active-tab {
    color: #000 !important;
}

/* Style the logout button in the Tools dropdown like a link */
.header-more-menu form {
    margin: 0;
}

.header-more-menu button,
.header-more-menu .logout {
    display: block;
    width: 100%;
    padding: 10px 20px;
    background: #fff !important;
    color: #000 !important;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
    box-sizing: border-box;
}

.header-more-menu button:hover,
.header-more-menu button:focus,
.header-more-menu .logout:hover,
.header-more-menu .logout:focus {
    background: #e0e0e0 !important;
    color: #000 !important;
}

.header-more-menu form,
.profile-dropdown form {
    max-width: none;
    margin: 0;
    padding: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
    font-family: inherit;
}

.main-form {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    font-family: 'Segoe UI', Arial, sans-serif;
}