/* =====================
   GLOBAL
===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    transition: all 0.4s ease;
}

body {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(-45deg, #fff0e6, #ffe0b3, #ffd699, #fff0e6);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #333;
}

/* =====================
   SIDEBAR
===================== */
.sidebar {
    width: 260px;
    background-color: #fff;
    border-right: 2px solid #ff6b00;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 25px rgba(255,107,0,0.2);
    position: relative;
}

.sidebar h2 {
    font-size: 28px;
    color: #ff6b00;
    margin-bottom: 50px;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: glowText 2s infinite alternate;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.sidebar ul li::before {
    content: "";
    position: absolute;
    height: 100%;
    width: 0;
    top: 0;
    left: 0;
    background: linear-gradient(120deg, #ff6b00, #ff9f00);
    z-index: 0;
    transition: 0.4s;
    border-radius: 15px;
}

.sidebar ul li:hover::before {
    width: 100%;
}

.sidebar ul li:hover {
    color: #fff;
    z-index: 1;
}

/* =====================
   MAIN CONTENT
===================== */
.main {
    flex: 1;
    padding: 50px;
    overflow-y: auto;
}

.main h1 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #ff6b00;
    text-shadow: 2px 2px 6px rgba(255,107,0,0.3);
    letter-spacing: 1px;
}

/* =====================
   DASHBOARD CARDS
===================== */
.cards {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 50px;
    color: #000; /* Ändert die Textfarbe zu Schwarz */
}

.card {
    background: linear-gradient(135deg, #ff6b00, #ff9f00);
    color: #fff;
    flex: 1;
    min-width: 220px;
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(255,107,0,0.4);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    cursor: pointer;
    transform: translateY(50px);
    opacity: 0;
    animation: cardIn 0.8s forwards;
    color: #000;
}

.card:nth-child(1) { animation-delay: 0.2s; }
.card:nth-child(2) { animation-delay: 0.4s; }
.card:nth-child(3) { animation-delay: 0.6s; }

/* Hier sprechen wir die Überschrift und den Text direkt beim Hover an */
.card:hover h3, 
.card:hover p {
    color: #000 !important;
}

/* Optional: Die Karte selbst auch auf Schwarz setzen, falls Text direkt drin liegt */
.card:hover {
    transform: scale(1.08);
    box-shadow: 0 25px 60px rgba(255,107,0,0.6);
    color: #000 !important;
}


.card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #000; /* Ändert die Textfarbe zu Schwarz */
}

.card p {
    font-size: 36px;
    font-weight: bold;
    color: #000; /* Ändert die Textfarbe zu Schwarz */
}

/* =====================
   FORMS & BUTTONS
===================== */
input, select, button {
    display: block;
    width: 100%;
    margin-bottom: 20px;
    padding: 15px 20px;
    font-size: 16px;
    border-radius: 15px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
    color: #000; /* Ändert die Textfarbe zu Schwarz */
}

input:focus, select:focus {
    border-color: #ff6b00;
    box-shadow: 0 0 12px rgba(255,107,0,0.4);
    outline: none;
    color: #000; /* Ändert die Textfarbe zu Schwarz */
}

button {
    background: linear-gradient(120deg, #ff6b00, #ff9f00);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 15px;
    transition: all 0.3s ease;
    color: #000; /* Ändert die Textfarbe zu Schwarz */
}

button:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 15px 35px rgba(255,107,0,0.5);
    color: #000; /* Ändert die Textfarbe zu Schwarz */
}

/* =====================
   TABLES
===================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

thead {
    background: linear-gradient(120deg, #ff6b00, #ff9f00);
    color: #fff;
}

thead th {
    padding: 16px 20px;
    text-align: left;
}

tbody td {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    transition: background 0.3s;
}

tbody tr:hover td {
    background: rgba(255,107,0,0.1);
}

/* =====================
   PAGE VISIBILITY
===================== */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* =====================
   ANIMATIONS
===================== */
@keyframes gradientBG {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

@keyframes glowText {
    0% {text-shadow: 0 0 5px #ff6b00;}
    50% {text-shadow: 0 0 20px #ff9f00;}
    100% {text-shadow: 0 0 5px #ff6b00;}
}

@keyframes cardIn {
    to {transform: translateY(0); opacity: 1;}
}

/* =====================
   RESPONSIVE
===================== */
@media screen and (max-width: 900px) {
    body {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
    }
    .sidebar ul {
        display: flex;
        gap: 10px;
    }
    .sidebar ul li {
        flex: 1;
        text-align: center;
        margin-bottom: 0;
    }
    .main {
        padding: 25px;
    }
}
.input-row{
    display:flex;
    gap:10px;
    margin-bottom:20px;
}

.input-row input,
.input-row select{
    padding:8px;
}

table{
    width:100%;
    border-collapse:collapse;
}

th, td{
    padding:10px;
    border-bottom:1px solid #ddd;
    text-align:left;
}