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

body {
    background-color: #0a0a0a;
    color: white;
    overflow-x: hidden;
}

/* --- Hero Sectie (Layout) --- */
.hero {
    position: relative;
    min-height: 100vh; /* Veranderd naar min-height voor betere scroll op mobiel */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Zorg dat je achtergrond.jpg in de /static/ map staat! */
    background: url('/static/background.png') no-repeat center center/cover;
    background-attachment: fixed; /* Optioneel: dit geeft een subtiel parallax effect bij het scrollen */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.content {
    font-size: 1.3rem;
    font-weight: 500;
    color: #ffffff;
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 40px 20px;
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* --- Logo & Titels --- */
.logo {
    width: 220px;
    height: auto;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 15px rgba(255, 153, 0, 0.6));
}

h1 {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.highlight {
    color: #ff9900;
}

/* --- Seizoen 2 Badge --- */
.season-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    background: linear-gradient(90deg, #ff9900, #ffcc00);
    display: inline-block;
    padding: 8px 30px;
    border-radius: 50px;
    letter-spacing: 2px;
    margin-top: 10px;
    margin-bottom: 25px;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(255, 153, 0, 0.4);
    text-shadow: -1.5px -1.5px 0 #000, 1.5px -1.5px 0 #000, -1.5px 1.5px 0 #000, 1.5px 1.5px 0 #000;
}

/* --- IP Box (Copy Button) --- */
.ip-box {
    margin-top: 10px;
    margin-bottom: 55;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #ff9900;
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 40px;
}

.ip-box:hover {
    background: rgba(255, 153, 0, 0.15);
    transform: scale(1.05);
}

.ip-box span {
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    font-size: 1.1rem;
    margin-right: 15px;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0,0,0,0.8);
}

.ip-box i {
    color: #ff9900;
}

/* --- Knoppen Systeem --- */
.buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    border: none;
}

.btn i { margin-right: 10px; }

.btn.primary {
    background-color: #ff9900;
    color: black;
}

.btn.primary:hover {
    background-color: #ffcc00;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 153, 0, 0.4);
}

.btn.secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn.secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    border-color: white;
}

/* --- Subpagina Containers --- */
.page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.back-btn {
    display: inline-block;
    margin-bottom: 15px;
    color: #ff9900;
    text-decoration: none;
    transition: 0.3s;
}

.back-btn:hover {
    transform: translateX(-5px);
    color: #fff;
}

/* --- Kaarten & Boxen (Regels, FAQ, Events) --- */
.rules-card, .event-card, .rule-box {
    background: rgba(0, 0, 0, 0.6);
    border-left: 4px solid #ff9900;
    padding: 25px;
    border-radius: 10px;
    text-align: left;
    margin-bottom: 20px;
    border-top: 1px solid rgba(255, 153, 0, 0.1);
}

.event-card:hover {
    transform: scale(1.02);
    background: rgba(255, 153, 0, 0.05);
    transition: 0.3s;
}

.rules-list {
    list-style: none;
    line-height: 2.2;
}

.rules-list li i {
    color: #ff9900;
    margin-right: 12px;
}

.status-card {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8); /* Maakt tekst leesbaar op elke kleur */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border-left: 6px solid;
}

/* --- Status Pagina Specifiek --- */
.status-card.online {
    border-left-color: #2ecc71;
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.1);
}

.status-card.online h3 { color: #2ecc71; }

.btn.secondary i.fa-signal { color: #2ecc71; }

/* --- Modpack & Forms --- */
.iframe-wrapper {
    position: relative;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    padding-bottom: 120%; /* Hoogte voor Google Forms */
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none; /* Dit vervangt de style="border:0;" */
}

.modpack-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* --- Footer --- */
.site-footer {
    margin-top: 50px;
    opacity: 0.6;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

.site-footer a { color: white; text-decoration: none; }

/* --- Mobiel Optimalisatie --- */
@media (max-width: 600px) {
    h1 { font-size: 2.5rem; }
    .button-group { flex-direction: column; width: 100%; }
    .btn { width: 100%; }
    .content { padding-top: 80px; }
}

/* --- Aanmeldformulier & Status Check Styling --- */
.status-card.online {
    background: rgba(46, 204, 113, 0.95); /* Bijna volledig dekkend groen */
    border-color: #27ae60;
    color: white;
}

.status-card.offline {
    background: rgba(231, 76, 60, 0.95); /* Bijna volledig dekkend rood */
    border-color: #c0392b;
    color: white;
}

/* Styling voor alle input velden op de site */
input[type="text"], 
input[type="password"], 
textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 153, 0, 0.3); /* Subtiele oranje rand */
    background: #111;
    color: white;
    font-size: 1rem;
    transition: 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #ff9900;
    box-shadow: 0 0 10px rgba(255, 153, 0, 0.2);
}

/* --- Admin Panel Tabel Styling --- */
.admin-table-container {
    width: 100%;
    overflow-x: auto; /* Zorgt dat de tabel op mobiel scrollbaar is */
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th {
    background: #ff9900;
    color: black;
    padding: 15px;
    text-align: left;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: top;
}

tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Status Badges in de tabel */
.badge {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: bold;
}

.badge.goedgekeurd { background: #2ecc71; color: black; }
.badge.behandeling { background: #ff9900; color: black; }
.badge.afgewezen { background: #e74c3c; color: white; }

/* Admin Actie Knoppen */
.action-btn {
    font-size: 1.2rem;
    margin-right: 10px;
    transition: 0.2s;
}

.action-btn.approve { color: #2ecc71; }
.action-btn.reject { color: #e74c3c; }

.action-btn:hover {
    transform: scale(1.2);
}

/* Hulpmiddelen voor de layout */
.status-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.status-result {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.application-form {
    text-align: left;
    margin-top: 20px;
}

.full-width {
    width: 100%;
}

.separator {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* De badges voor de status kleuren */
.badge.goedgekeurd { color: #2ecc71; font-weight: bold; }
.badge.behandeling { color: #ff9900; font-weight: bold; }
.badge.afgewezen { color: #e74c3c; font-weight: bold; }

/* Login Specifiek */
.login-card {
    max-width: 400px;
    margin: 100px auto;
}

.error-text {
    color: #e74c3c;
    margin-top: 15px;
    font-weight: bold;
}

/* Admin Panel Layout */
.wide-container {
    max-width: 1100px;
}

.admin-header {
    display: flex;
    flex-direction: column; /* Zet tekst onder elkaar */
    align-items: center;    /* Centreer alles */
    text-align: center;
    margin-bottom: 30px;
    gap: 5px;               /* Ruimte tussen titel en subtitel */
}

.admin-header h2 {
    margin: 0;
    font-size: 2.2rem;      /* Iets groter voor de impact */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.small-btn {
    min-width: 100px;
    padding: 8px 15px;
}

/* Tabel Details */
.user-cell {
    color: #ff9900;
}

.motivatie-cell {
    font-size: 0.9rem;
    max-width: 300px;
    opacity: 0.8;
}

.actions-cell {
    white-space: nowrap;
}

/* Badges Fix voor spaties (in-behandeling) */
.badge.in-behandeling {
    background: #ff9900;
    color: black;
}

/* Container om de knop rechtsboven te pinnen */
.top-nav {
    position: fixed; /* Blijft staan bij scrollen */
    top: 20px;
    right: 20px;
    z-index: 10000; /* Altijd bovenop alles */
    display: flex;
    align-items: center;
    gap: 10px;
}

/* De Staff Login knop styling */
.staff-login-btn {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: 0.2s all ease;
}

.logout-dot {
    background: rgba(52, 152, 219, 0.2); /* Lichtblauw transparant */
    color: #3498db; /* Blauwe kleur */
    width: 42px; /* Iets groter voor betere klikbaarheid */
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(52, 152, 219, 0.5);
    text-decoration: none;
    transition: 0.3s;
}

.logout-dot:hover {
    background: #3498db;
    color: white;
    transform: scale(1.05);
}

.staff-login-btn:hover {
    background: #ff9900;
    color: black;
    border-color: #ff9900;
    transform: translateY(-2px);
}

.action-btn.delete {
    color: #95a5a6; /* Grijs als standaard */
    margin-left: 15px; /* Beetje afstand van de rest */
}

.action-btn.delete:hover {
    color: #e74c3c; /* Rood bij hover */
    transform: scale(1.2);
}

/* Container voor het IP onderaan de status pagina */
.ip-container {
    margin-top: 20px;
    text-align: center;
}

/* De zwarte IP badge */
.ip-display {
    background: #000;
    padding: 5px 12px;
    border-radius: 5px;
    color: #ff9900; /* Oranje tekst voor de Sandwich-look */
    font-family: 'Courier New', Courier, monospace;
    border: 1px solid rgba(255, 153, 0, 0.3);
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
    text-align: left;
}

.rules-section {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #ff9900;
}

.rules-section h3 {
    color: #ff9900;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rules-section ul {
    list-style: none;
    padding: 0;
}

.rules-section li {
    margin-bottom: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.item-limits {
    background: rgba(255, 153, 0, 0.1);
    padding: 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.warning {
    color: #e74c3c;
    font-size: 0.85rem;
}

/* Dashboard Navigatie & Toggle */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px; /* Ruimte tussen de 'Dicht/Open' knop en de logout-knop */
}

.toggle-btn {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid transparent;
}

.toggle-btn.status-open {
    border-color: #2ecc71;
    color: #2ecc71;
}

.toggle-btn.status-open:hover {
    background: #2ecc71;
    color: #000;
}

.toggle-btn.status-closed {
    border-color: #e74c3c;
    color: #e74c3c;
}

.toggle-btn.status-closed:hover {
    background: #e74c3c;
    color: #fff;
}

/* Tabel Optimalisatie */
.empty-table-msg {
    text-align: center;
    padding: 50px !important;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

/* Fix voor de tabelheaders uit screenshot 9a2a7d */
th[scope="col"] {
    background-color: #ff9900;
    color: #000;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* Stats Grid Layout */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stats-card-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.card-title {
    background: rgba(255, 153, 0, 0.1);
    padding: 15px;
    border-bottom: 1px solid rgba(255, 153, 0, 0.2);
}

.card-title h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #ff9900;
}

.leaderboard-container {
    padding: 10px;
}

.leaderboard-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 5px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    transition: 0.2s;
}

.leaderboard-row:hover {
    background: rgba(255, 255, 255, 0.07);
}

.rank-number {
    color: #ff9900;
    font-weight: 800;
    width: 35px;
}

.player-name {
    flex-grow: 1;
    font-weight: 500;
}

.stat-count {
    color: #2ecc71;
    font-weight: 700;
    font-family: 'Courier New', Courier, monospace;
}

.empty-msg {
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

.header-subtitle {
    margin: 0;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7); /* Iets lichter voor contrast */
    font-weight: 300;
}

/* Zorg dat het op mobiel niet over je logo valt */
@media (max-width: 768px) {
    .top-nav {
        position: relative;
        top: 0;
        right: 0;
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
    }
}

