/*
 * ---------------------------------------------
 * 1 - Fonts and Scrollbar
 * ---------------------------------------------
 */

 @font-face {
    font-family: 'Roboto Condensed';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url(../fonts/Roboto-Condensed-Light.woff2) format('woff2');
}

@font-face {
    font-family: 'Roboto Condensed';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/Roboto-Condensed-Regular.woff2) format('woff2');
}

@font-face {
    font-family: 'Roboto Condensed';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(../fonts/Roboto-Condensed-Bold.woff2) format('woff2');
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #101e2e; /* deeper navy blue */
}

::-webkit-scrollbar-thumb {
    background: #7dd3fc; /* icy blue */
}

::-moz-selection {
    color: #e0f7fa; /* frosted white-blue */
    background: #144b75; /* cool, darker blue */
}

::selection {
    color: #e0f7fa;
    background: #144b75;
}

/*
 * ---------------------------------------------
 * Body
 * ---------------------------------------------
 */
 
body.etn-body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    margin: 0;
    background-color: #0c1015; /* very dark blue-gray */
    color: #e5f3f8; /* cold, clean white */
    font-family: "Roboto Condensed", Arial, sans-serif;
    overflow-x: hidden;
}

.etn-main {
    flex: 1;
    position: relative;
    display: flex;
    overflow-y: auto;
    overflow-x: hidden;
}

.etn-background {
    position: absolute;
    inset: 0;
    background-image: url('/assets/ETN_rust_banner_1080.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #141814;
    z-index: 0;
}

.etn-gradient {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(12, 18, 28, 0.8));
}

.etn-content {
    position: relative;
    z-index: 10;
    width: 100%;
    overflow-x: hidden;
}

/*
 * ---------------------------------------------
 * Header
 * ---------------------------------------------
 */

.etn-header {
    height: 64px;
    width: 100%;
    background-color: #08111d; /* deep navy */
    position: relative;
    z-index: 1001;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    overflow: visible;
    box-sizing: content-box !important;
}

.etn-container {
    width: 95%;
}

.etn-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.etn-logo-container {
    display: flex;
    align-items: center;
}

.etn-logo {
    height: 96px;
}

.etn-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #7dd3fc; /* bright icy blue */
}

/*
 * ---------------------------------------------
 * Header
 * ---------------------------------------------
 */

.etn-header-nav {
    display: flex;
}

.etn-header-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    color: #b0d9e3;
    font-weight: 500;
}

.etn-header-links a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease-in-out;
}

.etn-header-links a:hover {
    color: #d0f4ff;
}

.etn-header-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.etn-user-dropdown {
    position: relative;
    display: inline-block;
}

.etn-user-avatar-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 2;
}

.etn-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.etn-user-name {
    font-weight: 600;
    color: #d8f0ff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100px; /* Adjust depending on layout */
    display: inline-block;
}
.etn-user-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 160px;
    background-color: #152232;
    box-shadow: 0 4px 12px rgba(0, 150, 200, 0.15);
    padding: 10px;
    border-radius: 8px;
    z-index: 9999; /* Try this */
    flex-direction: column;
    pointer-events: auto; /* Ensure it's clickable */
}

.etn-user-dropdown.open .etn-user-dropdown-content {
    display: flex;
}

.etn-user-dropdown-content a,
.etn-user-dropdown-content form {
    display: block;
    margin: 6px 0;
    text-decoration: none;
    color: #e0f7fa;
}

.etn-user-dropdown-content form button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: #e0f7fa;
    cursor: pointer;
    text-align: left;
    width: 100%;
}

/*
 * ---------------------------------------------
 * Footer
 * ---------------------------------------------
 */

 .etn-footer {
    height: 32px; /* h-16 = 4rem = 64px */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(20, 40, 60, 0.85); /* cool footer */
    color: #9ccfe7;
    z-index: 10;
    position: relative;
    font-size: 0.875rem;
}

[x-cloak] { display: none !important; }
