﻿/* wwwroot/css/dashboard.css - Mit Erweiterung für die Wochenansicht */

.welcome-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

.welcome-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
}

    .welcome-header h1 {
        color: #343a40;
        font-weight: 600;
    }

/* Dashboard Karten */
.dashboard-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.dashboard-card {
    flex: 1;
    min-width: 200px;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

    .dashboard-card:hover {
        transform: translateY(-5px);
    }

.card-icon {
    font-size: 2rem;
    color: #007bff;
    margin-bottom: 15px;
}

.card-title {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 10px;
}

.card-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.card-action {
    margin-top: auto;
}

/* Dashboard Panels */
.dashboard-panel-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.dashboard-panel {
    flex: 1;
    min-width: 300px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 20px;
}

.panel-header {
    padding: 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .panel-header h2 {
        margin: 0;
        font-size: 1.2rem;
        color: #343a40;
        font-weight: 600;
    }

        .panel-header h2 i {
            margin-right: 10px;
            color: #007bff;
        }

.panel-body {
    padding: 15px;
    min-height: 300px;
}

/* Aktive Buchungen */
.active-bookings {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.active-booking-item {
    display: flex;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    border-left: 4px solid #dee2e6;
}

.active-vehicle {
    display: flex;
    align-items: center;
    min-width: 140px;
    padding-right: 15px;
    border-right: 1px solid #dee2e6;
}

.vehicle-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #e9ecef;
    border-radius: 50%;
    margin-right: 10px;
}

.active-details {
    flex: 1;
    padding-left: 15px;
}

.active-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.active-time, .active-user {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

/* Leere Zustände */
.no-active-bookings, .no-bookings, .no-week-bookings {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    height: 200px;
}

.empty-icon {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 15px;
}

.empty-message {
    font-size: 1.1rem;
    color: #adb5bd;
}

/* Kommende Buchungen */
.upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.upcoming-item {
    display: flex;
    align-items: flex-start;
    border-radius: 6px;
    padding: 12px;
    background-color: #f8f9fa;
}

.upcoming-time {
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.time-range {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.upcoming-content {
    flex: 1;
    padding: 0 15px;
}

.upcoming-title {
    font-weight: 500;
    margin-bottom: 5px;
}

.upcoming-vehicle {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: white;
    margin-bottom: 5px;
}

.upcoming-user {
    font-size: 0.85rem;
    color: #6c757d;
}

.upcoming-actions {
    align-self: center;
}

/* Buchungen der aktuellen Woche (Neu) */
.current-week .panel-header {
    background-color: #f0f7ff;
    border-bottom: 1px solid #cfe2ff;
}

    .current-week .panel-header h2 i {
        color: #0d6efd;
    }

.week-period {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.week-bookings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    padding: 5px;
}

.week-booking-card {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

    .week-booking-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

.week-booking-date {
    width: 60px;
    text-align: center;
    background-color: #f8f9fa;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.booking-weekday {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #6c757d;
    font-weight: 600;
}

.booking-day {
    font-size: 1.8rem;
    font-weight: 700;
    color: #343a40;
}

.week-booking-content {
    flex: 1;
    padding: 12px;
    background-color: white;
    border-left: 3px solid #dee2e6;
}

.week-booking-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.week-booking-time {
    font-size: 0.85rem;
    color: #495057;
    font-weight: 500;
}

.week-vehicle-badge {
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 3px;
    color: white;
    font-weight: 500;
}

.week-booking-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #212529;
}

.week-booking-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.week-booking-user {
    font-size: 0.85rem;
    color: #6c757d;
}

    .week-booking-user i {
        margin-right: 4px;
    }

/* Status-Stile für Wochenbuchungen */
.booking-today .week-booking-date {
    background-color: #e3f2fd;
    color: #0d6efd;
}

.booking-today .booking-day {
    color: #0d6efd;
}

.booking-past .week-booking-content {
    opacity: 0.7;
}

.booking-past .week-booking-title {
    color: #6c757d;
}

/* Fahrzeugtyp-spezifische Stile für Wochenansicht */
.week-booking-content.vehicle-type-mtw {
    border-left: 3px solid #28a745;
}

.week-booking-content.vehicle-type-elw {
    border-left: 3px solid #007bff;
}

.week-booking-content.vehicle-type-tlf {
    border-left: 3px solid #fd7e14;
}

.week-booking-content.vehicle-type-hlf {
    border-left: 3px solid #dc3545;
}

.week-booking-content.vehicle-type-lf20 {
    border-left: 3px solid #6610f2;
}

.week-vehicle-badge.vehicle-type-mtw {
    background-color: #28a745;
}

.week-vehicle-badge.vehicle-type-elw {
    background-color: #007bff;
}

.week-vehicle-badge.vehicle-type-tlf {
    background-color: #fd7e14;
}

.week-vehicle-badge.vehicle-type-hlf {
    background-color: #dc3545;
}

.week-vehicle-badge.vehicle-type-lf20 {
    background-color: #6610f2;
}

/* Buchungsstatus */
.booking-active {
    border-left: 3px solid #dc3545;
}

.booking-past {
    opacity: 0.7;
}

.booking-upcoming {
    border-left: 3px solid #fd7e14;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .dashboard-card {
        min-width: 100%;
    }

    .active-vehicle {
        min-width: auto;
        border-right: none;
        margin-bottom: 10px;
    }

    .active-booking-item {
        flex-direction: column;
    }

    .active-details {
        padding-left: 0;
    }

    .week-bookings-grid {
        grid-template-columns: 1fr;
    }
}

/* Ergänzungen für dashboard.css - CSS für die Statusanzeigen */

/* Status-Indikatoren für Buchungselemente */
.active-booking-item.status-pending {
    border-left: 4px solid #ffc107 !important;
}

.active-booking-item.status-approved {
    border-left: 4px solid #28a745 !important;
}

.active-booking-item.status-rejected {
    border-left: 4px solid #dc3545 !important;
    opacity: 0.7;
    background-color: #f8f8f8;
}

.upcoming-item.status-pending {
    border-left: 4px solid #ffc107 !important;
}

.upcoming-item.status-approved {
    border-left: 4px solid #28a745 !important;
}

.upcoming-item.status-rejected {
    border-left: 4px solid #dc3545 !important;
    opacity: 0.7;
    text-decoration: line-through;
}

/* Anpassungen für die Genehmigungskarten */
.approval-pending-card {
    border-left: 4px solid #ffc107 !important;
    background: linear-gradient(to right, rgba(255, 193, 7, 0.1), rgba(255, 193, 7, 0.03));
}

.week-booking-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .week-booking-footer .btn-group {
        display: flex;
        gap: 5px;
    }

.more-pending-info {
    padding: 10px;
    background-color: #f8f9fa;
    margin-top: 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #6c757d;
    text-align: center;
}

    .more-pending-info i {
        margin-right: 5px;
        color: #ffc107;
    }

/* Anpassungen für die neue Dashboard-Karte */
.dashboard-card:nth-child(3) .card-icon {
    color: #ffc107;
}

/* Styling für Status-Badges im Modal */
.booking-status-badge {
    margin-bottom: 15px;
}

/* Responsive Anpassungen für die Genehmigungskarte */
@media (max-width: 768px) {
    .week-booking-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .dashboard-row {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}