/* Base reset and dark theme */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: system-ui, sans-serif;
    background: rgb(50, 50, 50);
    color: white;
    min-height: 100vh;
    display: flex;           /* Enables flexbox */
    align-items: center;     /* Vertically centers content */
    justify-content: center; /* Horizontally centers content */
}

/* Main flex layouts */
.a_flexer {
    background: rgb(50, 50, 50);
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
}
.b_flexer {
    background: transparent;
    display: flex;
    flex-direction: row;
    font-size: 13px;
    justify-content: center;
}

/* Top bar */
.topBar {
    background: rgb(99, 133, 146);
    display: flex;
    height: 48px;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}
.topBar[data-topbar] {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.topBar-menu {
    display: flex;
    align-items: center;
}
.topBar-chicken2 {
    max-height: 38px;
    margin: 5px;
}
.topBar-logOut {
    display: flex;
    align-items: center;
}
.topBar-logoutButton {
    background: rgb(50, 50, 160);
    color: white;
    border: none;
    min-width: 64px;
    height: 48px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 20px;
    white-space: nowrap;
    padding: 0 12px;    
}
.topBar-logoutButton:hover {
    background: red;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropbtn {
    background: rgb(50, 50, 160);
    color: white;
    border: none;
    cursor: pointer;
    width: 80px;
    height: 48px;
    padding: 16px 8px; /* Internal padding like old (vertical for height, horizontal for buffer) */
    font-size: 20px; /* Explicit bigger size from old comment */
    font-weight: 400; /* Normal weight for classic look */
    display: flex;
    align-items: center;
    justify-content: center; /* Centers "Menu" text */
}
.dropdown-content {
    display: none;
    position: absolute;
    background: #f9f9f9;
    min-width: 230px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    top: 100%;
    left: 0;
    border-radius: 4px;
    overflow: hidden;
}
.dropdown-content a {
    color: #333 !important; /* Override inline styles */
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #eee;
}
.dropdown-content a:hover {
    background: #e0e0f0;
}
.dropdown:hover .dropdown-content {
    display: block;
}
.dropdown:hover .dropbtn {
    background: rgb(50, 50, 160);
}

/* Content areas */
.b_flexer img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}
.b_flexer:empty {
    display: none; /* Hide empty flexers if no content */
}

/* Mobile: Stack top bar if needed */
@media (max-width: 768px) {
    
}

/* Login-specific (light variant) */
.login-page { 
    background: white;
    color: #333;
}
.login-card { 
    max-width: 400px; width: 100%; background: white; color: #333; padding: 20px; border-radius: 8px; 
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.login-card img { max-width: 100%; height: auto; margin-bottom: 1rem; }
.login-card form { 
    display: flex; flex-direction: column; gap: 1rem; margin: 1rem 0; width: 100%; 
}
.login-card input[type="email"], .login-card input[type="password"] {
    padding: 0.75rem; border: 1px solid #ccc; border-radius: 4px; font-size: 16px; 
    background: white; color: #333;
}
.login-card input:focus {
    border-color: #667eea; outline: none;
}
.login-card button {
    padding: 0.75rem; background: blue; color: white; border: none; border-radius: 4px;
    font-size: 16px; cursor: pointer;
}
.links {
    display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem;
    align-items: center;
}
.links a { color: #667eea; text-decoration: none; font-size: 16px; }
.links a:hover { text-decoration: underline; }