/* ============================================
   GLOBAL STYLE – DARK NIGHT BLUE THEME
============================================ */

html, body {
    background: #06101D;
    color: #ffffff;
    font-family: "Segoe UI", Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
}

.main {
    min-height: calc(100vh - 120px);
    padding: 20px;
}

/* ============================================
   NAVBAR (HELLER & TRANSPARENT)
============================================ */

.navbar {
    background: rgba(255, 255, 255, 0.07) !important;
    backdrop-filter: blur(6px);
    border: none !important;
    box-shadow: 0 0 12px rgba(0,0,0,0.3);
}

.navbar-default .navbar-nav > li > a {
    color: #ffffff !important;
    font-weight: 500;
}

/* Hover */
.navbar-default .navbar-nav > li > a:hover {
    color: #cfe4ff !important;
}


/* ============================================
   PANELS – Liquid Glass
============================================ */

.panel {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    box-shadow: 0 0 18px rgba(0,0,0,0.35);
    width: 70%;
    margin: 20px auto;
}

.panel-heading {
    background: rgba(255,255,255,0.08) !important;
    border-bottom: none !important;
    text-align: center;
    padding: 8px 10px !important;
}

.panel-body {
    padding: 18px;
}

.panel-footer {
    background: rgba(255,255,255,0.06) !important;
    border-top: none;
    color: #cfd9ff;
}

/* NEWS PANEL — NICHT WEISS!! */
.panel-primary {
    background: rgba(255, 255, 255, 0.06) !important;
}


/* ============================================
   TABLES
============================================ */

.table {
    width: 90%;
    margin: auto;
    color: #ffffff;
}

.table > thead > tr > th,
.table > tbody > tr > td {
    border-color: rgba(255, 255, 255, 0.1) !important;
    padding: 6px 8px !important;
}


/* ============================================
   MODALS
============================================ */

.modal-content {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.rank-text {
    color: #ffffff !important;
}


/* ============================================
   HOME – 3 STATS BOXEN
============================================ */

.stats-container {
    width: 100%;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stats-box {
    width: 350px;
    padding: 20px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 18px rgba(0,0,0,0.35);
}

.stats-title {
    text-align: center;
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}

.stats-entry {
    display: flex;
    justify-content: space-between;
    padding: 10px 5px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.stats-name {
    color: #e6e6e6;
}

.stats-value {
    color: #5fa8ff;
    font-weight: bold;
}

/* ============================================
   CHARACTER INFO BOX
============================================ */

.charbox {
    width: 70%;
    margin: 40px auto;
    padding: 25px;
    display: flex;
    gap: 40px;
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 0 18px rgba(0,0,0,0.35);
}

.charbox-left {
    width: 160px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.charbox-skin {
    width: 140px;
    height: auto;
    image-rendering: pixelated;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.6);
}

.charbox-right {
    flex: 1;
}

.charrow {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.charlabel {
    font-weight: bold;
    font-size: 16px;
    color: #d0d8ff;
}

.charvalue {
    font-size: 16px;
    color: #ffffff;
}

/* ============================================
   TEAM PAGE – Modern Styled
============================================ */

.team-box {
    width: 90%;
    margin: 30px auto;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 25px;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.team-table {
    width: 100%;
    border-collapse: collapse;
    color: #fff;
}

.team-table thead tr th {
    padding: 12px 8px;
    font-size: 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.team-row td {
    padding: 12px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 15px;
}

.team-row:hover {
    background: rgba(255,255,255,0.07);
    transition: 0.25s;
}

.team-name {
    color: #8fbaff;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-name:hover {
    color: #c7ddff;
    text-decoration: underline;
}

.team-skin {
    width: 32px;
    height: auto;
    border-radius: 4px;
    image-rendering: pixelated;
    box-shadow: 0 0 6px rgba(0,0,0,0.6);
}

.rank-badge {
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
}

.online-badge {
    background: #3cd95b;
    padding: 5px 12px;
    border-radius: 8px;
    font-weight: bold;
    color: black;
}

.offline-badge {
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.15);
}

/* ============================================
   SIMPLE FADE-IN ANIMATIONS
============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Home-Charbox + Stats + Team smooth einblenden */
.charbox,
.stats-box,
.team-box {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.charbox {
    animation-delay: 0.1s;
}

.stats-box:nth-of-type(1) { animation-delay: 0.2s; }
.stats-box:nth-of-type(2) { animation-delay: 0.3s; }
.stats-box:nth-of-type(3) { animation-delay: 0.4s; }

/* Team-Zeilen leicht hochfahren */
.team-row {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

.team-row:nth-child(1) { animation-delay: 0.15s; }
.team-row:nth-child(2) { animation-delay: 0.20s; }
.team-row:nth-child(3) { animation-delay: 0.25s; }
.team-row:nth-child(4) { animation-delay: 0.30s; }
.team-row:nth-child(5) { animation-delay: 0.35s; }
.team-row:nth-child(6) { animation-delay: 0.40s; }
.team-row:nth-child(7) { animation-delay: 0.45s; }
.team-row:nth-child(8) { animation-delay: 0.50s; }

.fadeBox {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

/* ============================================
   LOGIN PAGE STYLES
============================================ */

.login-wrapper {
    width: 100%;
    margin-top: 40px;
    text-align: center;
}

.login-title {
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 28px;
}

.login-logo {
    width: 120px;
    height: auto;
    display: block;
    margin: 10px auto 5px auto;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.login-box {
    width: 380px;
    margin: 0 auto;
    padding: 22px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 14px rgba(0,0,0,0.35);
}

.login-input {
    margin-bottom: 12px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
}

.login-input::placeholder {
    color: #d6d6d6;
}

.login-btn {
    width: 100%;
    font-weight: 600;
}

.login-info {
    width: 420px;
    margin: 20px auto 0 auto;
    padding: 18px;
    color: #d7ddff;
    background: rgba(255,255,255,0.07);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    line-height: 1.45;
}

/* FIX: Stats Boxen NICHT verschwinden lassen */
.stats-box {
    opacity: 1 !important;
    animation-fill-mode: forwards !important;
}

/* ---- Fix Navbar Hover ---- */

/* Hintergrundfarbe für Dropdown */
.navbar-default .dropdown-menu {
    background-color: #0d1b2a !important;   /* Nachtblau */
    border: 1px solid rgba(255,255,255,0.1);
}

/* Schriftfarbe im Dropdown */
.navbar-default .dropdown-menu > li > a {
    color: #ffffff !important;  /* Weiß */
    padding: 10px 15px;
}

/* Hover-Effekt */
.navbar-default .dropdown-menu > li > a:hover,
.navbar-default .dropdown-menu > li > a:focus {
    background-color: #1b263b !important;  /* etwas helleres Nachtblau */
    color: #ffffff !important;
}

/* Divider (falls vorhanden) */
.navbar-default .dropdown-menu .divider {
    background-color: rgba(255,255,255,0.15);
}

/* Aktive Dropdown-Elemente */
.navbar-default .dropdown-menu > .active > a {
    background-color: #1b263b !important;
    color: #ffffff !important;
}

/* Hover & Active Styles für Navbar Items */
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
    color: #ffffff !important;
    background-color: #0d1b2a !important;
}

/* Dropdown Toggle (Reiter oben) */
.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:focus,
.navbar-default .navbar-nav > .open > a:hover {
    background-color: #0d1b2a !important; /* gleicher Ton wie Header */
    color: #ffffff !important;
}


/* ============================================
   FOOTER (HELLER + TRANSPARENTER)
============================================ */

#footer {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 12px;
    text-align: left !important;
    margin-top: 40px;
}
