/* Breadcrumb */
.breadcrumb-content {
    top: 0;
    z-index: 9;
    position: sticky;
    background-color: #e4ecf0;
    box-shadow: none;
    transition: box-shadow 0.4s ease;
}

.breadcrumb-content.breadcrumb-shadow {
    box-shadow: rgba(0, 0, 0, 0.45) 0px 25px 20px -20px;
}

.breadcrumb-container {
    background-color: #f8f9fa;
}

@media (min-width: 992px) {
    .breadcrumb-content {
        padding-top: 5px;
    }

    .dashboard-container {
        margin-top: 30px;
    }
}

/* Sidebar */
.user-sidebar {
    position: sticky;
    top: 125px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.user-sidebar .theme-btn {
    color: #228be6;
    position: relative;
    background-color: #e4ecf0;
    transition: all 0.4s ease-in-out;
    border: 1px solid rgba(var(--theme), 0);
}

.user-sidebar .theme-btn:hover {
    border: 1px solid rgba(var(--theme), 0.5);
}

.user-sidebar .theme-btn:hover .badge {
    color: rgb(var(--theme));
    background-color: #ffffff;
}

.user-sidebar .theme-btn.active {
    color: #fff;
    background-color: rgb(var(--theme));
}

.user-sidebar .theme-btn.active .badge {
    color: rgb(var(--theme));
    background-color: #ffffff;
}

.user-sidebar .theme-btn .badge {
    top: 50%;
    right: 15px;
    height: 20px;
    min-width: 20px;
    font-size: 12px;
    font-weight: 500;
    position: absolute;
    padding: 5px 5px 0px 7px;
    transform: translateY(-50%);
}

.user-sidebar .theme-btn.logout-btn {
    color: #fff;
    background-color: #dc3545 !important;
    transition: background-color 0.4s ease;
    border: 1px solid rgba(var(--theme), 0) !important;
}

.user-sidebar .theme-btn.logout-btn:hover,
.user-sidebar .theme-btn.logout-btn:focus {
    color: #ffffff !important;
    background-color: #bb2d3b !important;
}

.user-sidebar .user-avatar img {
    width: 70px;
    height: 70px;
    object-fit: cover;
}

.dashboard-container .list-group .list-group-item {
    border: 0;
    padding: 0;
    border-radius: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #d2d2d2;
}

.dashboard-container .list-group .list-group-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border: 0 !important;
}

.user-table-thumb {
    height: 50px;
    width: auto;
    object-fit: cover;
}

#sidebarContent {
    transition: height 0.3s ease, padding 0.3s ease, margin 0.3s ease, opacity 0.2s ease;
    will-change: height, padding, margin, opacity;
}

/* Prevent flash of unstyled content */
@media (max-width: 991px) {
    #sidebarContent {
        height: 0;
        padding: 0 !important;
        margin-bottom: 0 !important;
        opacity: 0;
        display: block;
        overflow: hidden;
    }

    .user-profile .user-avatar img {
        width: 40px;
        height: 40px;
        object-fit: cover;
    }

    .user-sidebar .sidebar-nav {
        padding: 15px;
    }
}

/* My Vehicles */
.dashboard-content .nav.vehicle-tabs {
    border-bottom: 1px solid rgb(var(--theme));
}

.dashboard-content .vehicle-tabs .nav-link.active:after {
    height: 2px;
    bottom: -1px;
    background: rgb(var(--theme));
}

.dashboard-content .vehicle-tabs .nav-link.active {
    color: rgb(var(--theme));
}

.dashboard-content .vehicle-tabs .nav-link .badge {
    width: 20px;
    height: 20px;
    padding: 4px 0 0 0;
}

.dashboard-content .main-slider,
.dashboard-content .main-slider .swiper-slide iframe,
.dashboard-content .main-slider .swiper-slide video {
    height: 450px;
}

/* Payment Milestone */
.payment-milestone {
    position: relative;
    padding-left: 30px;
    margin-bottom: 25px;
}

.payment-milestone:before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    height: 100%;
    width: 2px;
    background: #dee2e6;
}

.payment-milestone.completed:before {
    background: rgb(var(--theme));
}

.milestone-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.payment-milestone.completed .milestone-icon {
    background: rgb(var(--theme));
    color: white;
}

.quick-actions .action-card {
    display: block;
    height: 100px;
}

/* My Vehicles */
.vehicle-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    position: relative;
}

.vehicle-tabs .nav-link.active {
    color: #0d6efd;
    background: transparent;
}

.vehicle-tabs .nav-link.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #0d6efd;
}

.vehicle-card-alt {
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.vehicle-card-alt:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.vehicle-img-container {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.vehicle-img-container img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.vehicle-status {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
    padding: 6px 7px 4px 7px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.progress-thin {
    height: 6px;
}

/* Notifications */
.notification-card {
    border-radius: 10px;
    overflow: hidden;
}

.notification-item {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.notification-item.unread {
    background-color: rgba(13, 110, 253, 0.05);
    border-color: rgb(var(--theme));
}

.notification-item:hover {
    border-color: rgb(var(--theme));
    background-color: rgba(13, 110, 253, 0.05);
}

.notification-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 8px;
    color: rgb(var(--theme));
    margin-right: 15px;
}

.notification-tabs .nav-link {
    border: none;
    padding: 12px 20px;
    color: #495057;
    font-weight: 500;
}

.notification-tabs .nav-link.active {
    color: rgb(var(--theme));
    background-color: transparent;
    border-bottom: 3px solid rgb(var(--theme));
}

/* Profile */
.profile-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}
.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    object-fit: cover;
}
.profile-stats {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.stat-item {
    text-align: center;
    padding: 0 1rem;
}
.stat-item:not(:last-child) {
    border-right: 1px solid #dee2e6;
}
.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0d6efd;
}
.stat-label {
    font-size: 0.875rem;
    color: #6c757d;
}
.profile-card {
    border-radius: 10px;
    overflow: hidden;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.profile-card .card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.badge-pill {
    border-radius: 20px;
    padding: 5px 12px;
    font-weight: 500;
}
.edit-profile-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
}
.vehicle-card {
    transition: all 0.3s ease;
    border-radius: 10px;
}
.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.progress-thin {
    height: 6px;
}
.activity-item {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid #dee2e6;
    padding-bottom: 1.5rem;
}
.activity-item:last-child {
    padding-bottom: 0;
    border-left-color: transparent;
}
.activity-item::before {
    content: '';
    position: absolute;
    left: -9px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #0d6efd;
    border: 3px solid white;
}
.activity-item.completed::before {
    background-color: #198754;
}
.activity-item.warning::before {
    background-color: #ffc107;
}
.activity-item.danger::before {
    background-color: #dc3545;
}

.vehicle-card img {
    border-top-left-radius: 8px !important;
    border-top-right-radius: 8px !important;
}
