/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

/* Header */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #0099CC;
    color: white;
    padding: 20px;
    text-align: center;
}

header h1 a {
    color: white;
    text-decoration: none;
    font-size: 28px;
    font-weight: bold;
}

header h1 a:hover {
    text-decoration: underline;
}

nav ul {
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Hero Sektion */
.hero {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(to bottom, #0099CC, #66CCFF);
    color: white;
}

.hero h2 {
    font-size: 3em;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.4em;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    background: white;
    color: #0099CC;
    text-decoration: none;
    font-size: 20px;
    border-radius: 10px;
    border: 3px solid #0099CC;
    font-weight: bold;
    transition: 0.3s;
}

.btn:hover {
    background: #0099CC;
    color: white;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.server-status {
    background: #ffffff;
    color: #0099CC;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}


/* Info Sektion */
.info-container {
    display: flex;
    flex-direction: column;
    max-width: 1100px;
    margin: 50px auto;
    padding: 20px;
    gap: 20px;
}

.info-box {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: 0.3s;
    min-height: 250px;
}

.info-box:hover {
    transform: scale(1.02);
}

.info-box img {
    width: 40%;
    max-height: 250px;  /* Sørger for, at billeder ikke bliver for høje */
    object-fit: contain; /* Bevarer billedets proportioner uden at klippe */
    padding: 10px;       /* Giver lidt luft omkring billedet */
    background: white;   /* Baggrund, hvis billedet ikke fylder hele rammen */
}

.info-text {
    padding: 30px;
    width: 60%;
    text-align: left;
}

.info-text h3 {
    color: #0099CC;
    font-size: 24px;
    margin-bottom: 15px;
}

.info-text p, .info-text ul {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

.info-text ul {
    list-style: none;
    padding-left: 0;
}

.info-text ul li {
    padding: 5px 0;
    display: flex;
    align-items: center;
}

.info-text ul li::before {
    content: "✔";
    color: #0099CC;
    font-weight: bold;
    margin-right: 8px;
}

/* Skifter rækkefølge for hver anden boks */
.info-box.right {
    flex-direction: row-reverse;
}

/* Skifter rækkefølge for hver anden boks */
.info-box.right {
    flex-direction: row-reverse;
}

/* Container styling */
.container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Regler bokse med blå kant */
.rules-box {
    background: white; /* Hvid baggrund */
    color: black; /* Sort tekst */
    padding: 20px;
    margin: 20px 0;
    border: 3px solid #0099CC; /* Blå kant */
    border-radius: 10px;
    text-align: left;
}

/* Overskrift inde i boksene */
.rules-box h3 {
    color: #0099CC; /* Blå tekst */
    font-size: 20px;
    margin-bottom: 10px;
    text-align: center;
}

/* Listepunkter */
.rules-box ul {
    list-style: none;
    padding: 0;
}

.rules-box ul li {
    font-size: 18px;
    padding: 10px 0;
}

/* Ansøgningsbokse */
.apply-box {
    background: white;
    border: 3px solid #0099CC;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    text-align: center;
}

.apply-box h3 {
    color: #0099CC;
    font-size: 20px;
    margin-bottom: 10px;
}

/* Ansøgningsknapper */
.apply-btn {
    display: inline-block;
    background: #0099CC;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.apply-btn:hover {
    background: #0077AA;
}

/* Deaktiveret knap */
.apply-btn.disabled {
    background: gray;
    cursor: not-allowed;
    pointer-events: none;
}

/* Status tekst */
.status {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Åben status */
.status.open {
    color: green;
}

/* Lukket status */
.status.closed {
    color: red;
}

.guide-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 kolonner */
    gap: 20px;
    max-width: 900px;
    margin: auto;
}

/* Styling af hver guide box */
.guide-box {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.guide-box img {
    width: 100%;
    max-width: 200px;
    margin-top: 10px;
    border-radius: 10px;
}

.guide-box h3 {
    color: #0099CC;
    font-size: 20px;
}

.guide-box ul {
    list-style: none;
    padding: 0;
}

.guide-box ul li {
    font-size: 18px;
    padding: 5px 0;
}

.guide-category {
    text-align: center;
    margin: 20px auto;
    width: 250px;
}

.guide-category img {
    width: 100%;
    max-width: 250px;
    border-radius: 10px;
    transition: 0.3s;
}

.guide-category a {
    text-decoration: none;
    color: black;
    font-size: 24px;
    font-weight: bold;
    display: block;
    margin-top: 10px;
}

.guide-category img:hover {
    transform: scale(1.1);
}

/* Guide Step Styling */
.guide-step {
    background: #f4f4f4;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.guide-step img {
    width: 100%;
    max-width: 400px;
    margin-top: 10px;
    border-radius: 10px;
}

/* To billeder side om side */
.char-options {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.char-options div {
    flex: 1;
}

/* Discord info */
.discord-info {
    text-align: center;
    background: #0099ff;
    color: white;
    padding: 20px;
    border-radius: 10px;
}

.discord-info a {
    color: yellow;
    font-weight: bold;
}

.discord-info img {
    width: 100%;
    max-width: 500px;
    margin-top: 10px;
    border-radius: 10px;
}

.status-container {
    text-align: center;
    margin: 20px auto;
    max-width: 600px;
}

.status-box {
    background-color: #007BFF;
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.status-box p {
    font-size: 18px;
    margin: 10px 0;
}

.status-box button {
    background-color: white;
    color: #007BFF;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
}

.status-box button:hover {
    background-color: #0056b3;
    color: white;
}

.banner {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
    display: none;
}

.player-list {
    list-style: none;
    padding: 0;
}

.player-list li {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    padding: 10px;
    margin: 5px;
    border-radius: 5px;
    font-size: 18px;
}

/* Grøn/rød farve afhængig af serverstatus */
.online {
    color: #00FF00;
    font-weight: bold;
}

.offline {
    color: #FF0000;
    font-weight: bold;
}

.donation-container {
    max-width: 800px;
    margin: auto;
    padding: 20px;
    text-align: center;
}

.donation-warning {
    color: red;
    font-weight: bold;
    background-color: #ffecec;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
}

.payment-info {
    font-weight: bold;
    color: blue;
}

.donation-packages {
    text-align: center;
    margin-top: 20px;
}

/* Donationspakker */
.package-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.package-grid img {
    width: 300px;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease-in-out;
}

.package-grid img:hover {
    transform: scale(1.05);
}

/* Fremhæv vigtige beskeder */
.highlighted-text {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
}

/* Advarselsboks */
.donation-warning {
    color: red;
    font-weight: bold;
    background-color: #ffecec;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
}

/* Betalingsinfo */
.payment-info {
    font-weight: bold;
    color: #0099CC;
}

/* Liste med info */
.info-list {
    list-style-type: none; /* Fjern standard punktopstilling */
    padding: 0;
    margin: 15px 0;
}

.info-list li {
    font-size: 18px;
    margin-bottom: 10px; /* Tilføj mellemrum mellem linjerne */
    line-height: 1.6; /* Gør teksten mere læsbar */
}

.info-list li::before {
    content: "✔";
    color: #0099CC;
    font-weight: bold;
    margin-right: 8px;
}

/* Donationspakker */
.package-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

/* Footer styling */
.footer {
    background-color: #0099CC;
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 0.9em;
    width: 100%;
    margin-top: auto;
}

.footer a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 5px;
}

.footer a:hover {
    color: rgb(39, 45, 107);
}

/* Login container */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Login formular */
.login-container h2 {
    color: #0099CC;
    margin-bottom: 15px;
}

.login-container label {
    display: block;
    text-align: left;
    margin: 10px 0 5px;
    font-weight: bold;
}

.login-container input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 2px solid #0099CC;
    border-radius: 5px;
    font-size: 16px;
}

.login-container button {
    width: 100%;
    padding: 10px;
    background: #0099CC;
    color: white;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.login-container button:hover {
    background: #0077AA;
}

/* Fejlmeddelelse */
.error-message {
    color: red;
    font-weight: bold;
    margin-top: 10px;
}

/* Glemt password */
.forgot-password {
    margin-top: 10px;
}

.forgot-password a {
    color: #0099CC;
    text-decoration: none;
    font-weight: bold;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* 📌 MOBIL HEADER */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 60px;
    display: none; /* Skjult som standard */
    justify-content: space-between;
    align-items: center;
    background: #0099CC;
    padding: 10px 20px;
    z-index: 1000;
}

/* Juster logoet */
.mobile-header .logo {
    height: 100%;
    max-height: 50px;
    border-radius: 5px;
}

/* Menu-knap */
.mobile-header .menu-btn {
    font-size: 30px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* 📌 MOBIL MENU - Dropdown */
#mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: #0099CC;
    border-radius: 0 0 10px 10px;
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Når menuen er åben */
#mobile-menu.show {
    max-height: 1000px; /* Tilpas efter antal links */
}

/* 📌 MENU-LISTE - NU CENTRERET OG UNDER HINANDEN */
#mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column; /* Sørger for, at de ligger under hinanden */
    align-items: center; /* Centrerer teksten */
}

/* 📌 MENU-PUNKTER */
#mobile-menu ul li {
    width: 100%;
    text-align: center; /* Centrerer teksten */
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Sidste element uden border */
#mobile-menu ul li:last-child {
    border-bottom: none;
}

/* 📌 LINKS - CENTRERET OG UNDER HINANDEN */
#mobile-menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    display: block;
    width: 100%;
    padding: 10px 0;
}

#mobile-menu ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 🎯 Dashboard container */
.dashboard-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* ℹ️ Dashboard information */
.dashboard-info {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dashboard-info p {
    font-size: 18px;
    margin: 10px 0;
}

/* 🚪 Log ud-knap følger nu menuens styling */
#logoutBtn {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

#logoutBtn:hover {
    text-decoration: underline;
}

/* 🏆 Stats Sektion */
.stats-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #f4f4f4;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

/* 🏅 Stats Overskrift */
.stats-container h2 {
    color: #0099CC;
    font-size: 24px;
    margin-bottom: 15px;
}

/* 🔢 Statistiktekst */
.stats-container p {
    font-size: 18px;
    color: #333;
    margin: 10px 0;
    font-weight: bold;
}

/* 🎯 Tal i statistik */
.stats-container span {
    color: #0099CC;
    font-size: 20px;
    font-weight: bold;
}

/* 🔄 Loading-tekst */
.loading {
    color: #999;
    font-style: italic;
}

.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #0099CC;
  color: white;
  padding: 15px 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: none;
  z-index: 9999;
  text-align: center;
  max-width: 90%;
}

.cookie-popup p {
  margin-bottom: 10px;
  font-size: 16px;
}

.cookie-popup button {
  background-color: white;
  color: #0099CC;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

.cookie-popup button:hover {
  background-color: #0077AA;
  color: white;
}

.warnings-container {
    margin-top: 20px;
    background: #fff5f5;
    border: 2px solid #ff4d4d;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(255, 77, 77, 0.2);
    text-align: left;
}

.warnings-container h2 {
    color: #d32f2f;
    font-size: 22px;
    margin-bottom: 10px;
}

.warnings-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.warnings-list li {
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    background: #ffeaea;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 4px solid #ff4d4d;
}

.warning-tag {
    font-weight: bold;
    color: white;
    padding: 2px 8px;
    border-radius: 5px;
    font-size: 13px;
}

.warning-tag.warn {
    background-color: #ff9800;
}

.warning-tag.ban {
    background-color: #f44336;
}

    .tickets-container {
        margin-top: 20px;
        background: #e6f7ff;
        border: 2px solid #0099CC;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0, 153, 204, 0.2);
        text-align: center;
    }
    
    .tickets-container h2 {
        color: #0099CC;
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .ticket-list {
        list-style: none;
        padding-left: 0;
        margin: 0;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .ticket-list li {
        background: white;
        border: 2px solid #0099CC;
        border-radius: 8px;
        padding: 10px 20px;
        font-size: 16px;
        font-weight: bold;
        box-shadow: 0 2px 6px rgba(0,0,0,0.1);
        transition: transform 0.2s ease;
    }
    
    .ticket-list li:hover {
        transform: scale(1.05);
    }
    
    .ticket-list a {
        text-decoration: none;
        color: #0099CC;
    }
    
    .ticket-list a:hover {
        text-decoration: underline;
        color: #0077AA;
    }

/* Mode popup */
.mode-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.mode-popup-content {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.mode-popup-content h3 {
    color: #0099CC;
    font-size: 24px;
    margin-bottom: 15px;
}

.mode-popup-content p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #333;
}

.mode-buttons {
    display: flex;
    justify-content: space-around;
    gap: 15px;
}

.mode-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border: 2px solid #0099CC;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    flex: 1;
}

.mode-btn:hover {
    background: #e6f7ff;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 153, 204, 0.2);
}

.mode-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.dark-btn {
    background: #121212;
    color: white;
}

.dark-btn:hover {
    background: #2a2a2a;
}

/* Discord login-knap styling */
.discord-login-btn {
    width: 100%;
    padding: 10px;
    background: #5865F2; /* Discord blå farve */
    color: white;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.discord-login-btn:hover {
    background: #4752C4; /* Mørkere Discord blå ved hover */
}

.discord-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

/* Separator mellem almindelig login og Discord login */
.login-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 15px 0;
}

.login-separator::before,
.login-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ccc;
}

.login-separator span {
    padding: 0 10px;
    color: #666;
    font-size: 14px;
}

/* Dark mode styling */
body.dark-mode .login-separator span {
    color: #aaa;
}

body.dark-mode .login-separator::before,
body.dark-mode .login-separator::after {
    border-bottom: 1px solid #555;
}

/* DARK MODE */
body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

/* Gør alt sort tekst hvidt */
body.dark-mode p,
body.dark-mode li,
body.dark-mode span,
body.dark-mode a:not(.btn):not(.apply-btn):not(.server-status):not(.cookie-popup button),
body.dark-mode .info-text p,
body.dark-mode .info-text ul li,
body.dark-mode .dashboard-info p,
body.dark-mode .highlighted-text,
body.dark-mode .status-box p,
body.dark-mode .warnings-list li,
body.dark-mode .guide-box ul li,
body.dark-mode .guide-step,
body.dark-mode .dashboard-info {
    color: #ffffff;
}

/* Gør hvid tekst sort (f.eks. i .btn) */
body.dark-mode .btn,
body.dark-mode .apply-btn,
body.dark-mode .cookie-popup button {
    background-color: #ffffff;
    color: #000000;
    border-color: #66CCFF;
}

body.dark-mode .btn:hover,
body.dark-mode .apply-btn:hover,
body.dark-mode .cookie-popup button:hover {
    background-color: #66CCFF;
    color: #000000;
}

/* Behold blå tekst/elementer som de er */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode .warnings-container warningsCount,
body.dark-mode .info-text h3,
body.dark-mode .rules-box h3,
body.dark-mode .guide-box h3,
body.dark-mode .stats-container h2,
body.dark-mode .ticket-list,
body.dark-mode .tickets-container h2,
body.dark-mode .warnings-container ul,
body.dark-mode .apply-box h3,
body.dark-mode .login-container h2,
body.dark-mode .dashboard-container h2,
body.dark-mode .status.open,
body.dark-mode .status.closed,
body.dark-mode .payment-info {
    color: #0099CC;
}

/* Containers og bokse */
body.dark-mode .container,
body.dark-mode .info-box,
body.dark-mode .rules-box,
body.dark-mode .apply-box,
body.dark-mode .login-container,
body.dark-mode .dashboard-container,
body.dark-mode .guide-box,
body.dark-mode .guide-step,
body.dark-mode .stats-container,
body.dark-mode .tickets-container,
body.dark-mode .player-list li {
    background-color: #1e1e1e;
}

/* Hero sektionen bevares men gøres mørkere */
body.dark-mode .hero {
    background: linear-gradient(to bottom, #004466, #005577);
    color: #ffffff;
}

/* Footer + Header */
body.dark-mode header,
body.dark-mode .footer,
body.dark-mode .mobile-header,
body.dark-mode #mobile-menu {
    background-color: #000000;
    color: #ffffff;
}

body.dark-mode .footer a,
body.dark-mode header a,
body.dark-mode #mobile-menu a {
    color: #ffffff;
}
body.dark-mode .footer a:hover,
body.dark-mode header a:hover,
body.dark-mode #mobile-menu a:hover {
    color: #66CCFF;
}

body.dark-mode .btn,
body.dark-mode .server-status {
    background-color: #121212; 
    color: #0099CC;             
    border-color: #66CCFF;
}

body.dark-mode .btn:hover,
body.dark-mode .server-status:hover {
    background-color: #005fa3; /* Mørkere blå ved hover */
    color: white;
}

body.dark-mode .info-box img {
    background-color: transparent; /* Fjern hvid baggrund rundt om billeder */
}

body.dark-mode .dashboard-info {
    background-color: #1e1e1e;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.05);
}

body.dark-mode .dashboard-info p span {
    color: #999;
}

body.dark-mode .warnings-container {
    background-color: #2a2a2a;
    box-shadow: 0 4px 8px rgba(255, 77, 77, 0.1); /* let rød skygge */
    border: 2px solid #ff4d4d; /* behold rød kant */
}

body.dark-mode .warnings-list li {
    background-color: #3a1f1f; /* mørk rødlig baggrund */
    border-left: 4px solid #ff4d4d;
    color: white;
}

/* Bevar warning-tag farver */
body.dark-mode .warning-tag.warn {
    background-color: #ff9800;
    color: white;
}

body.dark-mode .warning-tag.ban {
    background-color: #f44336;
    color: white;
}

body.dark-mode .ticket-list li {
    background-color: #1e1e1e;
    border: 2px solid #0099CC; /* Blå kant */
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease, border-color 0.2s ease;
    color: #ffffff;
}

body.dark-mode .ticket-list li:hover {
    transform: scale(1.05);
    border-color: #0099CC;
}

body.dark-mode .ticket-list a {
    text-decoration: none;
    color: #0099CC;
}

body.dark-mode .ticket-list a:hover {
    text-decoration: underline;
    color: #66CCFF;
}

body.dark-mode .warnings-container h2,
body.dark-mode .warnings-container #warningsCount {
    color: #d32f2f; /* samme som i light mode */
}

body.dark-mode .status-box {
    background-color: #1e1e1e; /* Mørk grå baggrund */
    color: #ffffff;
    border: 1px solid #0099CC; /* Diskret blå kant */
    box-shadow: 0 0 10px rgba(0, 153, 204, 0.2); /* Subtil blå glow */
}

body.dark-mode .status-box p span,
body.dark-mode .status-box a {
    color: #66CCFF; /* Lys blå for links og spans */
}

body.dark-mode .status-box button {
    background-color: #ffffff;
    color: #0099CC;
    border-radius: 5px;
    font-weight: bold;
    border: none;
    padding: 10px 15px;
    margin-top: 10px;
    cursor: pointer;
}

body.dark-mode .status-box button:hover {
    background-color: #0099CC;
    color: #ffffff;
}

body.dark-mode .mode-popup-content {
    background-color: #1e1e1e;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

body.dark-mode .mode-popup-content h3 {
    color: #66CCFF;
}

body.dark-mode .mode-popup-content p {
    color: #ffffff;
}

body.dark-mode .mode-btn.light-btn {
    background: white;
    color: #333;
}

body.dark-mode .mode-btn.dark-btn {
    background: #121212;
    color: white;
    border-color: #66CCFF;
}

body.dark-mode .mode-btn:hover {
    box-shadow: 0 4px 8px rgba(102, 204, 255, 0.3);
}

body.dark-mode .login-separator span {
    color: #aaa;
}

body.dark-mode .login-separator::before,
body.dark-mode .login-separator::after {
    border-bottom: 1px solid #555;
}

/* Skjul normal header og vis mobil-header KUN i lodret mobil */
@media (max-width: 768px) and (orientation: portrait) {
    header {
        display: none !important; /* Skjul normal header i lodret */
    }

    .mobile-header {
        display: flex !important; /* Vis mobil-header kun i lodret */
    }
}

/* Vis normal header i vandret mobil */
@media (max-width: 768px) and (orientation: landscape) {
    .mobile-header {
        display: none !important; /* Skjul mobil-header i vandret */
    }

    header {
        display: flex !important; /* Vis normal header i vandret */
    }
}

/* Responsiv Design */
@media (max-width: 768px) {
    
    .info-box {
        flex-direction: column;
    }

    .info-box img {
        width: 100%;
        max-height: 200px;
    }

    .info-text {
        width: 100%;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .guide-container {
        grid-template-columns: 1fr; /* 1 kolonne på mobil */
    }

    .package-grid {
        flex-direction: column;
        align-items: center;
    }

    nav {
        display: block !important;
    }

    .dashboard-container {
        width: 90%;
        padding: 15px;
    }

    .stats-container {
        width: 100%;
        padding: 15px;
    }

    .stats-container p {
        font-size: 16px;
    }

    .logout-btn {
        width: 100%;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .mode-buttons {
        flex-direction: column;
    }
    
    .mode-btn {
        width: 100%;
    }
}
