/* Pfad: /home/chat/assets/css/style.css 
   Beschreibung: Globale Styles, Login, Header/Footer
   Design: Strict Dark Mode (#171717, #212121, #303030)
*/

/* --- Reset & Grundlegendes --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #212121; /* Content Background */
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }

/* --- Login Seite Spezifika --- */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #212121;
}

.login-box {
    background-color: #212121;
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border: 1px solid #333;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    color: #fff;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Globale Formular Elemente --- */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #ccc;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background-color: #303030; /* Strict Input Color */
    border: 1px solid #444;
    border-radius: 2px;
    color: #fff;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #666;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 38px;
    cursor: pointer;
    color: #888;
}

.password-toggle:hover {
    color: #fff;
}

.btn-full {
    width: 100%;
    padding: 12px;
    background-color: #303030;
    color: #fff;
    border: 1px solid #444;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-full:hover {
    background-color: #404040;
}

.error-msg {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-align: center;
}

/* --- Header Styles --- */
.main-header {
    background-color: #171717; /* Strict Header Hintergrund */
    height: 70px;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    color: #fff; /* Weisse Schrift */
}

/* Linke Seite: Navigation */
.nav-links {
    display: flex;
    flex-direction: row; /* Nebeneinander */
    gap: 10px; /* Abstand zwischen den Tabs */
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #e0e0e0; /* Fast weiss */
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 15px; /* Button-artige Fläche */
    border-radius: 4px;
    transition: all 0.2s;
    display: block;
}

.nav-links a:hover {
    background-color: #333;
    color: #fff;
}

/* Aktiver Tab Highlight */
.nav-links a.active {
    background-color: #212121; /* Highlight Farbe */
    color: #fff;
    border: 1px solid #333;
}

/* Rechte Seite: User Icon & Dropdown */
.user-profile-container {
    position: relative;
    display: flex;
    align-items: center;
}

.user-circle {
    width: 40px;
    height: 40px;
    background-color: #303030;
    border: 1px solid #444;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    user-select: none;
}

.user-circle:hover {
    background-color: #404040;
    border-color: #666;
}

/* Dropdown Menü */
.user-dropdown-content {
    display: none; /* Standardmäßig versteckt */
    position: absolute;
    right: 0;
    top: 55px; /* Unterhalb des Kreises */
    background-color: #212121; /* Gleicher HG wie Content */
    min-width: 150px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    z-index: 1000;
    border: 1px solid #333;
    border-radius: 4px;
}

.user-dropdown-content a {
    color: #e0e0e0;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
}

.user-dropdown-content a:hover {
    background-color: #303030;
    color: #fff;
}

/* Klasse zum Anzeigen via JS */
.show {
    display: block;
}


/* --- Main Content --- */
.content-wrapper {
    flex: 1;
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Globale Buttons, die überall greifen sollen */
.btn-primary {
    background-color: #303030;
    color: #fff;
    border: 1px solid #444;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.btn-primary:hover {
    background-color: #404040;
}

.btn-secondary {
    background-color: #2a2a2a;
    color: #ccc;
    border: 1px solid #444;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

/* --- Footer --- */
.main-footer {
    background-color: #171717; /* Strict Footer Hintergrund */
    color: #fff; /* Weisse Schrift */
    text-align: center;
    padding: 20px;
    border-top: 1px solid #333;
    margin-top: auto;
    font-size: 0.85rem;
}