/* =========================================
   GLOBAL
========================================= */

body {
    background: #0f0f0f;
    color: #ddd;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;

    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

/* Scrollbarer Bereich zwischen Header & Footer */
.main-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-top: 80px;
    padding-bottom: 80px;
}

/* =========================================
   TOP NAVIGATION (sticky)
========================================= */

.topnav {
    background: #1a1a1a;
    padding: 12px 20px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: space-between;

    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;

    box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.topnav a {
    color: #ccc;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.topnav a:hover {
    color: #4da3ff;
}

.topnav a.active {
    color: #fff;
    font-weight: 600;
    border-bottom: 2px solid #4da3ff;
    padding-bottom: 3px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-user {
    color: #ffffff;
    font-weight: 500;
}

.nav-nick {
    font-family: "Courier New", monospace;
    background: #222;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
    color: #fff;
}

/* =========================================
   GRID LAYOUT (3 Spalten)
========================================= */

.page-layout {
    display: grid;
    grid-template-columns: 220px 1fr 220px;
    gap: 20px;
    margin-top: 0px;
    margin-bottom: 0px;
}

/* =========================================
   CONTENT
========================================= */

.content {
    background: #181818;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
}

/* =========================================
   SIDEBAR (LEFT & RIGHT)
========================================= */

.left-column,
.right-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Sidebar-Boxen */
.sidebar-box {
    background: #1c1c1c !important;
    border: 1px solid #333 !important;
    border-radius: 8px !important;
    padding: 12px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 0 6px rgba(0,0,0,0.4) !important;

    /* WICHTIG: verhindert 0px-Höhe */
    min-height: 40px !important;
}

/* Menü-Elemente */
.menu-item {
    margin-bottom: 6px !important;
}

.menu-item a {
    display: block !important;
    padding: 8px 10px !important;
    background: transparent !important;
    color: #0d6efd !important;   /* ← Blau wie vorher */
    border-radius: 4px !important;
    line-height: 20px !important;
}

.menu-item a:hover {
    background: #333 !important;
    color: #66aaff !important;   /* etwas helleres Blau beim Hover */
}

/* =========================================
   FOOTER (sticky)
========================================= */

footer {
    background: #1a1a1a;
    border-top: 1px solid #333;
    padding: 12px 20px;
    text-align: center;
    color: #666;
    font-size: 14px;

    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;

    box-shadow: 0 -2px 8px rgba(0,0,0,0.6);
}

/* =========================================
   PROFILE VIEW
========================================= */

.profile-card {
    background: #181818;
    border-radius: 6px;
    padding: 25px;
    width: 420px;
    margin: 0 auto;
    text-align: center;
}

.profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 6px;
    object-fit: cover;
    background: #222;
}

.profile-avatar.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

.profile-name {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    flex-grow: 1;
    text-align: center;
}

.profile-rank {
    background: #4da3ff;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: bold;
    color: #000;
}

.profile-section {
    border-top: 1px solid #333;
    padding: 15px 0;
    margin-top: 15px;
}

.badge-admin {
    background: #ffcc00;
    color: #000;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: bold;
    display: inline-block;
}

.profile-footer {
    border-top: 1px solid #333;
    padding-top: 20px;
    margin-top: 20px;
}

.edit-button {
    background: #4da3ff;
    padding: 10px 18px;
    border-radius: 6px;
    color: #fff;
    font-weight: bold;
    display: inline-block;
}

.edit-button:hover {
    background: #7bbcff;
}

.verify-btn {
    background: #ffcc00 !important;
    color: #000 !important;
    font-weight: bold;
    padding: 10px 18px;
    border-radius: 6px;
}

.verify-btn:hover {
    background: #ffdd33 !important;
}
