:root {
    --bg-dark: #232527;
    --bg-darker: #191b1d;
    --top-bar-bg: #191b1d;
    --text-main: #ffffff;
    --text-muted: #888888;
    --input-bg: #393b3d;
    /* Darker input background */
    --btn-secondary: #393b3d;
    --border-color: #393b3d;
    --idf-red: #ff4444;
    --modal-bg: #232527;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Top Bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: var(--top-bar-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 100;
    border-bottom: 1px solid #333;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.menu-icon {
    font-size: 20px;
    cursor: pointer;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    margin-right: 10px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.nav-link:hover {
    text-decoration: underline;
}

.search-container {
    display: flex;
    align-items: center;
    background-color: #393b3d;
    border-radius: 20px;
    padding: 3px 10px;
    width: 100%;
    max-width: 400px;
}

.search-input {
    background: transparent;
    border: none;
    color: white;
    flex: 1;
    outline: none;
    font-size: 14px;
}

.search-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.age-indicator {
    border: 1px solid #555;
    padding: 0 4px;
    font-size: 10px;
    border-radius: 3px;
    color: #aaa;
}

.icon-btn {
    cursor: pointer;
    position: relative;
    font-size: 16px;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: white;
    color: black;
    font-size: 10px;
    border-radius: 50%;
    padding: 1px 4px;
    font-weight: bold;
}

.nav-buttons {
    display: flex;
    gap: 10px;
}

.btn-signup-nav,
.btn-login-nav {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    font-weight: bold;
}

.btn-signup-nav {
    background-color: #393b3d;
    color: white;
    border: none;
}

.btn-login-nav {
    background-color: white;
    color: black;
    border: none;
}

.btn-signup-nav:hover {
    background-color: #4a4d50;
}

.btn-login-nav:hover {
    background-color: #e0e0e0;
}

/* Background */
.background-container {
    position: absolute;
    top: 40px;
    /* Below top bar */
    left: 0;
    width: 100%;
    height: calc(100% - 40px);
    background-image: url('image/a19e4c27a0694a1d0fd5ceb17c978a7a-marketing_bg_05222025.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* Login Overlay */
.login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    /* Dimmed background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50;
    backdrop-filter: blur(2px);
}

.login-container {
    width: 100%;
    max-width: 360px;
    background-color: var(--modal-bg);
    padding: 24px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: white;
}

.form-group {
    margin-bottom: 10px;
}

.form-input {
    width: 100%;
    padding: 10px;
    background-color: var(--input-bg);
    border: 1px solid transparent;
    border-radius: 5px;
    color: white;
    font-size: 14px;
    outline: none;
}

.form-input:focus {
    border-color: white;
    background-color: #111;
}

.kc-input-error {
    border-color: var(--idf-red) !important;
}

.btn-login {
    width: 100%;
    padding: 10px;
    background-color: transparent;
    border: 1px solid white;
    border-radius: 5px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-login:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.forgot-link {
    color: white;
    text-decoration: none;
    font-size: 12px;
    display: block;
    margin: 10px 0;
}

.forgot-link:hover {
    text-decoration: underline;
}

.divider {
    height: 1px;
    background-color: #444;
    margin: 10px 0;
}

.btn-secondary {
    width: 100%;
    padding: 10px;
    background-color: #393b3d;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 8px;
    transition: background-color 0.2s;
}

.btn-secondary:hover {
    background-color: #4a4d50;
}

.create-account {
    margin-top: 15px;
}

.create-account a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

.create-account a:hover {
    text-decoration: underline;
}

.error-message {
    color: #ff4444;
    font-size: 12px;
    margin-top: 5px;
    min-height: 18px;
}

/* Chat Bar */
.chat-bar {
    position: fixed;
    bottom: 0;
    right: 20px;
    width: 200px;
    background-color: #191b1d;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    z-index: 100;
}

.chat-header {
    padding: 8px 15px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    background-color: #393b3d;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}