/* ============================================
   GLOBALS
============================================ */
body {
    margin: 0;
    padding: 0;
    background: #333333;
    font-family: Arial, sans-serif;
    color: #f0f0f0;
}

a {
    color: #ccccff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ============================================
   BOXEN
============================================ */
.box,
.login-box {
    background: #444444;
    border-radius: 10px;
    padding: 25px 30px;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    box-sizing: border-box;
}

.login-box {
    width: 350px;
}

/* ============================================
   WRAPPER / LOGIN ZENTRIERUNG
============================================ */
.wrapper-center {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* ============================================
   HEADLINES
============================================ */
h1, h2, h3 {
    margin-top: 0;
    color: #ffffff;
}

/* ============================================
   FORM ELEMENTE
============================================ */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #ddd;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid #666;
    background: #555;
    color: #fff;
    box-sizing: border-box;
    font-size: 14px;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: #888;
}

/* ============================================
   BUTTONS
============================================ */
.btn,
.logout-btn,
.email-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 4px;
    background: #777;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.btn {
    width: 100%;
    font-size: 16px;
}

.btn:hover,
.logout-btn:hover,
.email-btn:hover {
    background: #888;
}

.logout-btn {
    background: #aa3333;
}

.logout-btn:hover {
    background: #cc4444;
}

/* ============================================
   TOPBAR (Ganz oben: Username + XPS + Logout)
============================================ */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: #444;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    z-index: 100;
    box-sizing: border-box;
}

.top-left {
    font-size: 14px;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.xps-label {
    font-size: 14px;
}

/* ============================================
   NAVIGATION LEISTE (Tabs)
============================================ */
.navbar {
    position: fixed;
    top: 50px;          /* direkt unter Topbar */
    left: 0;
    right: 0;
    height: 40px;
    background: #3d3d3d;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    z-index: 90;
    gap: 10px;
}

.nav-item {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    background: #555;
    color: #f0f0f0;
}

.nav-item:hover {
    background: #666;
}

.nav-item-active {
    background: #888;
    font-weight: bold;
}

/* ============================================
   CONTENT-BEREICH
============================================ */
.content {
    padding: 100px 20px 20px 20px;
}

.content-inner {
    max-width: 900px;
    margin: 0 auto;
}

/* ============================================
   ACCOUNT INFO GRID
============================================ */
.info-grid {
    display: grid;
    grid-template-columns: 160px 1fr;
    row-gap: 8px;
    column-gap: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.info-label {
    font-weight: bold;
    font-size: 14px;
}

.info-value {
    font-size: 14px;
}

/* ============================================
   MESSAGES
============================================ */
.message {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.msg-success {
    background: #338833;
    color: white;
}

.msg-error {
    background: #aa3333;
    color: white;
}

/* ============================================
   EMAIL FORM
============================================ */
.email-form {
    margin-top: 10px;
}

.email-input {
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid #666;
    background: #555;
    color: #fff;
    margin-right: 8px;
    min-width: 220px;
}

/* ============================================
   CHARACTER TABLE
============================================ */
.char-box h2 {
    margin-bottom: 10px;
}

.char-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.char-table th,
.char-table td {
    border: 1px solid #555;
    padding: 6px 8px;
    text-align: left;
}

.char-table th {
    background: #555;
    font-weight: bold;
}

.char-table tr:nth-child(even) {
    background: #3b3b3b;
}

.char-table tr:nth-child(odd) {
    background: #414141;
}

.xps-label {
    font-size: 14px;
}

.xps-extra {
    font-size: 11px;
    opacity: 0.9;
}

.xps-extra {
    font-size: 11px;
    opacity: 0.9;
}

.timer-text {
    font-size: 14px;
    font-weight: bold;
}
