/* General body styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}
/* Farben für die verschiedenen Aktionen in der Historie */
.booking {
    background-color: #ccffcc; /* Hellgrün für Buchungen */
}

.cancellation {
    background-color: #ffcccc; /* Hellrot für Stornierungen */
}

.topup {
    background-color: #cce5ff; /* Hellblau für Top-Ups */
}

/* Schriftfarbe für negative und positive Werte */
.positive {
    color: green;
    font-weight: bold;
}

.negative {
    color: red;
    font-weight: bold;
}

/* Header styling */
header {
    background-color: #28287a; /* Violet */
    color: white;
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.strikethrough {
    text-decoration: line-through;
    color: gray;
    font-style: italic;
}


header img {
    max-height: 50px;
}

nav {
    display: flex;
    gap: 20px;
    justify-content: center;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

/* Credits box styling */
.credit-box {
    background-color: #f3f3f3;
    border: 1px solid #ccc;
    border-radius: 10px;
    text-align: center;
    padding: 10px;
    margin: 20px auto;
    width: fit-content;
    font-size: 1.2em;
    font-weight: bold;
    color: #28287a; /* Violet */
}

/* Container styling */
.container {
    padding: 20px;
}

/* Bookings styling */
h2, h3 {
    color: #28287a; /* Violet */
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

li.upcoming {
    background-color: #e0f7fa;
}

li.past {
    background-color: #fbe9e7;
}

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

a:hover {
    color: darkred;
}
/* General table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

th {
    background-color: #f4f4f4;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:nth-child(odd) {
    background-color: #ffffff;
}

/* Positive and negative styles for credits */
.positive {
    color: green;
}

.negative {
    color: red;
}
.stat-box, .goal-box, .comparison-box {
    padding: 20px;
    margin: 10px;
    background-color: #f4f4f4;
    border-radius: 8px;
    text-align: center;
}

progress {
    width: 100%;
    height: 20px;
}

canvas {
    max-width: 100%;
    height: auto;
}

/* General link styling */
a {
    text-decoration: none;
    color: blue;
}

a:hover {
    color: darkred;
}
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.pagination a {
    padding: 5px 10px;
    text-decoration: none;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    background-color: #f9f9f9;
}

.pagination a:hover {
    background-color: #ddd;
}

.pagination a.active {
    font-weight: bold;
    color: white;
    background-color: #28287a; /* Violet */
    border-color: #28287a;
}
.user-links {
    display: flex;
    gap: 20px; /* Abstand zwischen den Links */
    align-items: center;
    margin-bottom: 15px;
}

.user-links .link {
    text-decoration: none;
    font-weight: bold;
    color: #28287a; /* Dunkelblau */
    font-size: 16px;
}

.user-links .link:hover {
    color: darkred;
}

.add-user {
    display: inline-block;
    padding: 8px 15px;
    background-color: white; /* Weißer Button */
    color: #28287a; /* Dunkelblauer Text */
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    border: 2px solid #28287a; /* Dunkelblauer Rand */
    transition: background-color 0.3s, color 0.3s;
}

.add-user:hover {
    background-color: #28287a; /* Dunkelblauer Hover */
    color: white; /* Weißer Text bei Hover */
}



@media (max-width: 768px) {
    nav {
        display: none; /* Versteckt das Menü */
    }

    .hamburger {
        display: block; /* Zeigt den Hamburger-Button */
        cursor: pointer;
        background-color: transparent;
        border: none;
        font-size: 1.5em;
        color: white;
    }

    .mobile-nav {
        display: none;
        flex-direction: column;
        gap: 10px;
        background-color: #28287a; /* Hintergrundfarbe */
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        padding: 20px;
    }

    .mobile-nav a {
        color: white;
        text-decoration: none;
    }
}

/* Wenn aktiv, wird das mobile Menü angezeigt */
nav.active {
    display: flex !important;
}
@media (max-width: 768px) {
    .credit-box {
        width: 90%; /* Nimmt weniger Platz ein */
        font-size: 1em; /* Schriftgröße anpassen */
    }
}
@media (max-width: 768px) {
    .credit-box {
        width: 90%; /* Nimmt weniger Platz ein */
        font-size: 1em; /* Schriftgröße anpassen */
    }
}


