/* Allgemeine Stile */

/* Layout für Sidebar und Hauptinhalt */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f8f9fa; /* Dein Hintergrund */
    color: #333; /* Deine Schriftfarbe */
    margin: 0; /* Wichtig: Entfernt alle Außenabstände */
    
    /* Dieser Wert schiebt nur den scrollbaren Inhalt nach unten, nicht die Navbar. */
    padding-top: 56px; 
}

.main-container {
    display: flex; /* Dies ist der wichtigste Befehl! Er ordnet Sidebar und Inhalt nebeneinander an. */
    height: calc(100vh - 56px);
}

.sidebar {
    width: 240px; /* Gibt der Sidebar eine feste Breite */
    background-color: #f8f9fa;
    padding: 20px;
    border-right: 1px solid #dee2e6;
}

.content {
    flex-grow: 1; 
    padding: 20px; /* Hier wird der Abstand für den Inhalt definiert */
    overflow-y: auto;
}




/* Container für zentrierte Inhalte */
.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* Karten-Design (für Login, Mitarbeiter etc.) */
.card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

/* Header-Stil */
.header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.header h1 {
    margin: 0;
}
.header a {
    color: #007bff;
    text-decoration: none;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    background-color: #007bff;
    color: white;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s;
}
.button:hover {
    background-color: #0056b3;
}
.button-secondary {
    background-color: #6c757d;
}
.button-secondary:hover {
    background-color: #5a6268;
}

/* Formular-Stile */
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    box-sizing: border-box;
}

/* Status-Badges */
.status-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    color: white;
    font-weight: bold;
}
.status-present { background-color: #28b745; }
.status-vacation { background-color: #ffc107; color: #333; }
.status-sick { background-color: #dc3545; }


/* NEU: Stile für den Online-Status-Indikator */
.status-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%; /* Macht es zu einem perfekten Kreis */
  margin-right: 8px;
  vertical-align: middle; /* Zentriert den Punkt vertikal neben dem Text */
}

.online {
  background-color: #28a745; /* Grün für "gestartet" */
}

.offline {
  background-color: #adb5bd; /* Grau für "nicht gestartet" */
}


.dashboard-grid {
  display: flex;
  flex-direction: column; /* Standard-Ansicht für Mobile: untereinander */
  gap: 20px; /* Abstand zwischen den Karten */
}

/* Wir entfernen den alten Abstand der Karten, da wir jetzt 'gap' verwenden */
.dashboard-grid .card {
  margin-bottom: 0;
}

/* Media Query für größere Bildschirme (ab 992px Breite) */
@media (min-width: 992px) {
  .dashboard-grid {
    flex-direction: row; /* Ansicht für Desktops: nebeneinander */
    align-items: flex-start; /* Sorgt dafür, dass die Karten oben bündig sind */
  }

  /* Weisen den Karten unterschiedliche Breiten zu */
  .dashboard-grid .card:nth-child(1) { /* 1. Karte (Abwesenheiten) */
    flex: 1; /* Nimmt 1 Teil des verfügbaren Platzes ein */
  }

  .dashboard-grid .card:nth-child(2) { /* 2. Karte (Mitarbeiterliste) */
    flex: 3; /* Nimmt 3 Teile ein (ist also 3x so breit) */
  }
}
.chart-container {
  position: relative;
  height: 30vh; /* 40% der sichtbaren Bildschirmhöhe */
  width: 100%;
}
