@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");

/* Moderne Off-Canvas Sidebar - Primary Blue */
.offcanvas {
    background-color: white;
    border-right: none;
    box-shadow: 4px 0 20px rgba(0,0,0,0.08);
}

.offcanvas-header {
    background: linear-gradient(145deg, #0d6efd, #0b5ed7);
    padding: 1.5rem 1.5rem;
}

.offcanvas-title {
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.offcanvas-title i {
    font-size: 1.8rem;
}

.btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* Navigation im Off-Canvas */
.nav-pills .nav-link {
    color: #1e293b;
    border-radius: 10px;
    margin: 4px 0;
    padding: 12px 16px;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-pills .nav-link i {
    font-size: 1.25rem;
    margin-right: 12px;
    color: #0d6efd;
    width: 24px;
    text-align: center;
}

.nav-pills .nav-link.active {
    background: linear-gradient(145deg, #0d6efd, #0b5ed7);
    color: white;
    box-shadow: 0 6px 12px rgba(13, 110, 253, 0.2);
}

.nav-pills .nav-link.active i {
    color: white;
}

.nav-pills .nav-link:hover:not(.active) {
    background-color: rgba(13, 110, 253, 0.05);
    color: #0d6efd;
}

/* User-Profil im Off-Canvas */
.user-profile {
    background-color: #f8fafc;
    border-radius: 14px;
    padding: 16px;
    margin-top: 20px;
    border: 1px solid rgba(13, 110, 253, 0.1);
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #0d6efd;
    padding: 2px;
}

/* Desktop Styles - Permanente Sidebar */
@media (min-width: 992px) {
    .desktop-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: 280px;
        height: 100vh;
        background-color: white;
        border-right: 1px solid rgba(0,0,0,0.03);
        box-shadow: 6px 0 15px -8px rgba(0,0,0,0.05);
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        z-index: 1000;
    }

    .main-content {
        margin-left: 280px;
        width: calc(100% - 280px);
    }

    .mobile-menu-btn {
        display: none !important;
    }
}

/* Mobile Styles - Off-Canvas */
@media (max-width: 991.98px) {
    .desktop-sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .mobile-menu-btn {
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 99;
        background: white;
        border: none;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        width: 48px;
        height: 48px;
        border-radius: 12px;
        color: #0d6efd;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-btn i {
        font-size: 1.8rem;
    }

    .mobile-header {
        background: linear-gradient(145deg, #0d6efd, #0b5ed7);
        color: white;
        padding: 20px 20px 20px 80px;
        margin-bottom: 20px;
    }
}

/* Stats Cards */
.stat-card {
    background: white;
    border: none;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13, 110, 253, 0.12);
}

.stat-icon {
    width: 54px;
    height: 54px;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0d6efd;
    font-size: 1.8rem;
}

.bi {
    vertical-align: -.125em;
}

.bootstrap-tagsinput {
    background-color: #fff;
    border: 1px solid #ccc;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    display: inline-block;
    padding: 4px 6px;
    color: #555;
    vertical-align: middle;
    border-radius: 4px;
    max-width: 100%;
    line-height: 22px;
    cursor: text;
}
.bootstrap-tagsinput input {
    border: none;
    box-shadow: none;
    outline: none;
    background-color: transparent;
    padding: 0 6px;
    margin: 0;
    width: auto;
    max-width: inherit;
}
.bootstrap-tagsinput.form-control input::-moz-placeholder {
    color: #777;
    opacity: 1;
}
.bootstrap-tagsinput.form-control input:-ms-input-placeholder {
    color: #777;
}
.bootstrap-tagsinput.form-control input::-webkit-input-placeholder {
    color: #777;
}
.bootstrap-tagsinput input:focus {
    border: none;
    box-shadow: none;
}
.bootstrap-tagsinput .tag {
    margin-right: 2px;
    color: white;
}
.bootstrap-tagsinput .tag [data-role="remove"] {
    margin-left: 8px;
    cursor: pointer;
}
.bootstrap-tagsinput .tag [data-role="remove"]:after {
    content: "x";
    padding: 0px 2px;
}
.bootstrap-tagsinput .tag [data-role="remove"]:hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
}
.bootstrap-tagsinput .tag [data-role="remove"]:hover:active {
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}


/* Custom CSS für die Timeline */
.timeline-list {
    position: relative;
    padding-left: 30px; /* Platz für die vertikale Linie */
}

/* Vertikale Linie */
.timeline-list::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom,
    #0d6efd 0%,
    #0d6efd 20%,
    #dee2e6 20%,
    #dee2e6 100%);
    z-index: 0;
}

/* Timeline-Elemente */
.timeline-item {
    position: relative;
    margin-bottom: 25px;
    border-left: none !important;
    border-radius: 10px !important;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Punkt auf der Linie */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 20px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    border: 3px solid;
    z-index: 1;
}

/* Verschiedene Farben für verschiedene Status */
.timeline-item.status-success::before {
    border-color: #198754;
    background: white;
}

.timeline-item.status-warning::before {
    border-color: #ffc107;
    background: white;
}

.timeline-item.status-danger::before {
    border-color: #dc3545;
    background: white;
}

.timeline-item.status-primary::before {
    border-color: #0d6efd;
    background: white;
}

.timeline-item.status-info::before {
    border-color: #0dcaf0;
    background: white;
}

/* Hover-Effekt */
.timeline-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Zeitstempel-Style */
.timeline-time {
    font-size: 0.8rem;
    padding: 3px 10px;
    background: #f8f9fa;
    border-radius: 20px;
    color: #6c757d;
}

.timeline-time i {
    margin-right: 5px;
    font-size: 0.7rem;
}

/* Aktives Element */
.timeline-item.active {
    background: linear-gradient(45deg, #f8f9fa, white);
    border-left: 4px solid #0d6efd !important;
}

/* Icons für verschiedene Aktionen */
.timeline-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.icon-success { background: #198754; }
.icon-warning { background: #ffc107; color: #000; }
.icon-danger { background: #dc3545; }
.icon-primary { background: #0d6efd; }
.icon-info { background: #0dcaf0; color: #000; }

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .timeline-list {
        padding-left: 20px;
    }

    .timeline-item::before {
        left: -24px;
        width: 14px;
        height: 14px;
    }
}