@import url("../global.css");

.dashboard-container {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
}

h2 {
    font-size: 2.5em;
    z-index: 2;
}

.toggle-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.toggle-bar label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.dashboard-box {
    display: block; /* Stellt sicher, dass die Boxen angezeigt werden */
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 15px auto;
    width: 90%;
    max-width: 500px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}


.dashboard-box h3 {
    margin-bottom: 10px;
}

.month-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.month-selector button {
    padding: 8px 15px;
    border: none;
    background-color: #4cb3d6;
    color: white;
    cursor: pointer;
    border-radius: 5px;
}

.month-selector button.active {
    background-color: #4cb3d6;
}

.loader {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid #4cb3d6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Styling für Schicht-Einträge */
.shift-entry {
    text-align: left;
    background-color: #ffffff;
    border: 1px solid var(--primary-blue);
    border-left: 5px solid var(--primary-green);
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 12px;
    font-family: var(--font-text);
}

.shift-entry p {
    margin: 4px 0;
    font-size: 15px;
    color: #333;
}

/* Details-Toggle für Monatsübersicht */
details summary {
    cursor: pointer;
    font-weight: bold;
    font-family: var(--font-title);
    color: var(--primary-green);
    margin: 15px 0 10px;
    font-size: 18px;
}

details[open] summary::after {
    content: " ▲";
    color: var(--primary-blue);
}
details summary::after {
    content: " ▼";
    color: var(--primary-blue);
}

/* Check-Out Styling */
.shift-entry p strong {
    color: var(--primary-green);
}
.shift-entry p:last-of-type {
    font-weight: bold;
}

/* Kein Check-Out gesondert hervorheben */
.shift-entry p:last-of-type:has(span.kein-checkout) {
    color: #dc3545; /* Bootstrap-Rot */
}

#next-shift-box button {
    margin: 5px;
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    background-color: var(--primary-blue);
    color: white;
    cursor: pointer;
    font-weight: bold;
}

#next-shift-box button:hover {
    background-color: #4cb3d6;
}
