/* KiHo Helfer Tool – Custom Styles */

:root {
    --kiho-primary: #4a90a4;
    --kiho-primary-dark: #3a7a8e;
    --kiho-secondary: #7ab648;
    --kiho-warm: #f5a623;
    --kiho-light: #f0f7fa;
    --kiho-danger: #e74c3c;
}

body {
    background-color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navbar */
.navbar-brand {
    color: var(--kiho-primary) !important;
    font-size: 1.25rem;
}

.nav-link.active {
    color: var(--kiho-primary) !important;
    font-weight: 600;
}

/* Buttons */
.btn-primary {
    background-color: var(--kiho-primary);
    border-color: var(--kiho-primary);
}

.btn-primary:hover {
    background-color: var(--kiho-primary-dark);
    border-color: var(--kiho-primary-dark);
}

.btn-success {
    background-color: var(--kiho-secondary);
    border-color: var(--kiho-secondary);
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
}

.card-header {
    background-color: var(--kiho-light);
    border-bottom: 1px solid #e9ecef;
    border-radius: 12px 12px 0 0 !important;
}

/* Auth Pages */
.auth-container {
    max-width: 440px;
    margin: 2rem auto;
}

.auth-card {
    border-radius: 16px;
    padding: 2rem;
}

.auth-logo {
    font-size: 2.5rem;
    color: var(--kiho-primary);
}

/* Kalender */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-header {
    text-align: center;
    font-weight: 600;
    padding: 8px 4px;
    font-size: 0.85rem;
    color: #6c757d;
}

.calendar-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 0.95rem;
    position: relative;
    min-height: 70px;
    padding: 4px 2px;
    transition: background-color 0.15s;
}

.calendar-day:hover {
    background-color: var(--kiho-light);
    color: #333;
    text-decoration: none;
}

.calendar-day.empty {
    background: none;
    min-height: 0;
}

.calendar-day.today {
    border: 2px solid var(--kiho-primary);
    font-weight: 700;
}

.calendar-day.has-slots {
    cursor: pointer;
    background-color: #fafafa;
}

.cal-day-number {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1;
    margin-bottom: 2px;
}

.cal-preview {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.cal-slot-row {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 0.6rem;
    line-height: 1.2;
    padding: 0 2px;
    white-space: nowrap;
}

.cal-slot-time {
    font-weight: 600;
    color: #555;
}

.cal-slot-count {
    color: #888;
}

/* Slot-Status-Farben (grün = voll/Ziel erreicht, rot = frei/Bedarf) */
.slot-status-free {
    background-color: #f8d7da;
    border-left: 4px solid var(--kiho-danger);
}

.slot-status-partial {
    background-color: #fff3cd;
    border-left: 4px solid var(--kiho-warm);
}

.slot-status-full {
    background-color: #d4edda;
    border-left: 4px solid var(--kiho-secondary);
}

/* Kalender-Dots */
.calendar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 2px;
}

.dot-free { background-color: var(--kiho-danger); }
.dot-partial { background-color: var(--kiho-warm); }
.dot-full { background-color: var(--kiho-secondary); }

/* Slot-Karten */
.slot-card {
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.slot-time {
    font-weight: 600;
    text-transform: capitalize;
    font-size: 1.1rem;
}

.slot-info {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.slot-info-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Dashboard Stats */
.stat-card {
    text-align: center;
    padding: 1.25rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--kiho-primary);
}

.stat-label {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Status Badges */
.badge-status-active { background-color: var(--kiho-secondary) !important; }
.badge-status-pending { background-color: var(--kiho-warm) !important; }
.badge-status-paused { background-color: #6c757d !important; }
.badge-status-inactive { background-color: var(--kiho-danger) !important; }

/* Mobile */
@media (max-width: 576px) {
    .calendar-day {
        font-size: 0.75rem;
        min-height: 55px;
        padding: 2px 1px;
    }

    .cal-day-number {
        font-size: 0.75rem;
    }

    .cal-slot-row {
        font-size: 0.5rem;
    }

    .calendar-dot {
        width: 5px;
        height: 5px;
    }

    .calendar-header {
        font-size: 0.7rem;
        padding: 4px 2px;
    }

    .slot-info {
        flex-direction: column;
        gap: 0.25rem;
    }
}
