/* Custom CSS for Moto Rental */

:root {
    --primary-color: #22bbff;
    --secondary-color: #6c757d;
    --success-color: #0059ff;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
}

/* Dark theme variables */
[data-bs-theme="dark"] {
    --bs-body-bg: #212529;
    --bs-body-color: #fff;
}

header {
    min-height: 80px;
    flex: 0 0 auto;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-content {
    flex: 1;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1; /* Меняем на отрицательный z-index */
}

.hero-content {
    z-index: 1;
    position: relative;
}

.hero-promo {
    /*position: absolute;*/
    top: 0;
    right: 0;
     width: 100%;
    /* height: calc(100vh - 240px); */
    height: 100%;
    /* margin: 160px 0 80px 0; */
    overflow: hidden;
    box-shadow:
            inset 0 20px 40px rgba(0, 0, 0, 0.7),
            inset 0 -20px 40px rgba(0, 0, 0, 0.7);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Cards */
.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.bike-image {
    height: 200px;
    /*background: linear-gradient(135deg, var(--primary-color), var(--success-color));*/
}

.bike-image .bike-card-photo {
    max-height: 200px;
    object-fit: cover;
}

.badge.bg-custom-success {
    background-color: var(--success-color) !important;
}

.badge.bg-custom-primary {
    background-color: var(--primary-color) !important;
}

/* Route Cards */
.route-card {
    height: 300px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.route-card:hover {
    transform: scale(1.02);
}

.route-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.8), rgba(0, 81, 255, 0.8));
}

.route-card .card-img-overlay * {
    color: #212529 !important;
}

.route-info {
    backdrop-filter: blur(10px);
}

/* Floating Button */
.floating-booking-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.floating-booking-btn .btn {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.floating-booking-btn .btn:hover {
    transform: scale(1.1);
}

/* ===================================
   SPECIAL BANNER - STICKY AFTER HERO
   =================================== */

.special-banner-sticky-wrapper {
    display: flex;
    justify-content: flex-end;
    padding: 0 10px;
    position: sticky;
    top: 0;
    z-index: 1020;
    height: 0;
    pointer-events: none;
}

.special-banner-floating {
    position: relative;
    width: calc(33.333% - 4px);
    max-width: 550px;
    height: 280px;
    margin-top: 15px;
    margin-bottom: -280px;
    pointer-events: auto;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    display: block;
    flex-shrink: 0;
}

.special-banner-floating:hover {
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
}

/* Background Image */
.banner-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
}

.special-banner-floating:hover .banner-background-image {
    transform: scale(1.08);
}

/* Gradient Overlay */
.banner-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(0, 0, 0, 0.2) 30%,
            rgba(0, 0, 0, 0.3) 40%,
            rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 1;
}

/* Close Button */
.banner-close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #495057;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.banner-close-btn:hover {
    background: #dc3545;
    color: white;
    transform: rotate(90deg);
}

/* Banner Content */
.banner-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

/* Banner Badge - Left Top */
.banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    animation: pulse-glow-badge 2s infinite;
}

@keyframes pulse-glow-badge {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.7);
    }
}

.banner-badge i {
    animation: star-twinkle 1.5s infinite;
}

@keyframes star-twinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

/* Text Content - Right Side */
.banner-text-content {
    margin-left: auto;
    max-width: 60%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    margin-bottom: 0;
    /*padding: 12px;*/
    /*background: rgba(0, 0, 0, 0.4);*/
    /*border-radius: 8px;*/
    /*backdrop-filter: blur(8px);*/
}

/* Banner Title */
.banner-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Banner Description */
.banner-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    line-height: 1.4;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Banner Info */
.banner-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.banner-info-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.banner-info-item i {
    color: #667eea;
    font-size: 11px;
    width: 14px;
    text-shadow: 0 0 8px rgba(102, 126, 234, 0.8);
}

.banner-info-item small {
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
}

/* CTA Text with Icon */
.banner-cta-text {
    /*display: flex;*/
    /*align-items: center;*/
    /*gap: 8px;*/
    color: white;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    padding: 8px 12px;
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    /*border-radius: 6px;*/
    /*box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);*/
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.special-banner-floating:hover .banner-cta-text {
    /*background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);*/
    /*box-shadow: 0 6px 16px rgba(102, 126, 234, 0.6);*/
    transform: translateX(-3px);
}

.banner-cta-text i {
    animation: bolt-pulse 1.5s infinite;
    font-size: 16px;
}

@keyframes bolt-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8));
    }
    50% {
        opacity: 0.8;
        transform: scale(1.15);
        filter: drop-shadow(0 0 6px rgba(255, 255, 255, 1));
    }
}

/* ===================================
   RESPONSIVE - MOBILE & TABLET
   =================================== */

/* Планшеты и средние экраны */
@media (max-width: 1200px) {
    .special-banner-floating {
        width: calc(40% - 4px);
        max-width: 380px;
        height: 260px;
        margin-bottom: -260px;
    }

    .banner-text-content {
        max-width: 65%;
    }
}

/* Маленькие планшеты */
@media (max-width: 992px) {
    .special-banner-sticky-wrapper {
        top: 65px;
    }

    .special-banner-floating {
        width: calc(50% - 4px);
        max-width: 350px;
        height: 240px;
        margin-bottom: -240px;
    }

    .banner-title {
        font-size: 16px;
    }

    .banner-text-content {
        max-width: 70%;
        padding: 10px;
    }
}

/* Мобильные устройства */
@media (max-width: 768px) {
    .special-banner-sticky-wrapper {
        position: relative;
        top: 0;
        height: auto;
        padding: 12px 6px;
        pointer-events: auto;
        display: block;
    }

    .special-banner-floating {
        position: relative;
        width: calc(100% - 4px);
        max-width: none;
        margin: 0 2px;
        margin-bottom: 0;
        height: 200px;
    }

    .banner-text-content {
        max-width: 100%;
        padding: 12px;
    }

    .banner-gradient-overlay {
        background: linear-gradient(
                180deg,
                rgba(0, 0, 0, 0.4) 0%,
                rgba(0, 0, 0, 0.7) 100%
        );
    }

    .banner-content {
        justify-content: space-between;
    }

    .banner-title {
        font-size: 17px;
    }

    .banner-description {
        font-size: 14px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 576px) {
    .special-banner-floating {
        height: 180px;
        border-radius: 8px;
    }

    .banner-content {
        padding: 12px;
    }

    .banner-text-content {
        padding: 10px;
        gap: 8px;
    }

    .banner-title {
        font-size: 16px;
    }

    .banner-description {
        font-size: 13px;
    }

    .banner-badge {
        font-size: 10px;
        padding: 5px 12px;
    }

    .banner-cta-text {
        font-size: 12px;
        padding: 6px 10px;
    }
}


/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(248, 249, 250, 0.95) !important;
}

[data-bs-theme="dark"] .navbar {
    background-color: rgba(33, 37, 41, 0.95) !important;
}

/* Admin Sidebar */
[data-bs-theme="dark"] .sidebar {
    background-color: #212529 !important;
}
/* Responsive adjustments */
@media (max-width: 992px) {
    .admin-layout .row {
        flex-wrap: wrap;
    }
    .admin-sidebar-wrap {
        position: static;
        width: 100%;
    }
    .sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        top: auto;
        width: 100%;
        height: 60px;
        z-index: 1050;
        display: flex;
        align-items: center;
        border-top: 1px solid #dee2e6;
        background: white;
    }
    .sidebar .nav {
        display: flex;
        flex-direction: row !important;
        align-items: center;
        width: 100%;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 0;
        padding: 0 4px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .sidebar .nav::-webkit-scrollbar {
        display: none;
    }
    .sidebar .nav-item {
        flex: 0 0 auto;
        min-width: 0;
    }
    .sidebar .nav-link {
        flex-direction: column;
        padding: 4px 6px;
        font-size: 0;
        line-height: 1;
    }
    .sidebar .nav-link span {
        display: none;
    }
    .sidebar .nav-link i {
        font-size: 16px;
    }
    .sidebar-header {
        display: none;
    }
}

/* Theme switcher */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Info blocks */
.info-block {
    padding: 2rem;
    border-radius: 0.5rem;
    background: white;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

[data-bs-theme="dark"] .info-block {
    background: var(--bs-dark);
    color: var(--bs-light);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
    }

    .floating-booking-btn {
        bottom: 20px;
        right: 20px;
    }

    .floating-booking-btn .btn {
        width: 50px;
        height: 50px;
    }

    .route-card {
        height: 250px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

/* Interactive route cards */
.route-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
    z-index: 2;
}

.route-card:hover::before {
    transform: translateX(100%);
}

/* Route Cards */
.route-card {
    height: 300px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.route-card:hover {
    transform: scale(1.02);
}

.route-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.admin-route-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Admin booking edit Participant cards Styles */
.participants-toggle {
    cursor: pointer;
    user-select: none;
}
.participants-toggle:hover {
    background-color: rgba(0, 0, 0, 0.03);
}
.participants-arrow {
    transition: transform 0.2s ease;
    color: #6c757d;
}
.participants-toggle[aria-expanded="true"] .participants-arrow {
    transform: rotate(180deg);
}

.route-info {
    backdrop-filter: blur(10px);
}

/* Routes Swiper Styles */
.routes-swiper {
    padding: 20px 0 60px 0;
}

/* Routes Swiper: фиксируем высоту слайда через min-height карточки */
.routes-swiper .swiper-slide {
    display: block;   /* важно: не flex, чтобы h-100 нигде не мешал */
    height: auto;
}

/* Карточка маршрута гарантированная высота */
.route-card {
    min-height: 320px; /* или 300–360px на ваш вкус */
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Фон-картинка под контентом, контент поверх */
.route-image-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

.route-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-img-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.route-info {
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 3;
}

.routes-swiper .swiper-button-next,
.routes-swiper .swiper-button-prev {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
}

.routes-swiper .swiper-button-next:after,
.routes-swiper .swiper-button-prev:after {
    font-size: 16px;
}

.routes-swiper .swiper-pagination-bullet {
    background: var(--primary-color);
}

.routes-swiper .swiper-pagination-bullet-active {
    background: var(--success-color);
}

.route-desc-tip { cursor: help; }

/* Calendar Styles */
.calendar-container {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    overflow: hidden;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--primary-color);
    color: white;
}

.calendar-day-header {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.calendar-day-header:last-child {
    border-right: none;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e9ecef;
}

.calendar-day {
    background: white;
    min-height: 120px;
    padding: 0.5rem;
    border: 1px solid #e9ecef;
    position: relative;
}

.calendar-day.empty {
    background: #f8f9fa;
}

.calendar-day.past {
    background: #f8f9fa;
    color: #6c757d;
}

.calendar-day.today {
    background: #e3f2fd;
    border-color: var(--primary-color);
}

.calendar-day.weekend {
    background: #fff3e0;
}

.day-number {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.day-shifts {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.shift-item {
    padding: 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    border: 1px solid transparent;
}

.shift-item.available {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.shift-item.unavailable {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* FullCalendar page (calendar.html) */
#calendar {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#rideModalRoute {
    white-space: pre-line;
}

.fc-event {
    cursor: pointer;
    font-size: 0.9em;
    border-radius: 4px;
    margin: 1px 0;
}

.fc-event:hover {
    opacity: 0.9;
    transform: scale(1.01);
}

.fc-event-title {
    font-weight: 500;
    padding: 2px 6px;
}

.fc-daygrid-event {
    margin: 1px 0;
    border-radius: 3px;
}

.shift-button {
    padding: 15px;
    text-align: left;
    transition: all 0.3s ease;
}

.shift-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.shift-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.fc-daygrid-day-number {
    cursor: pointer;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: all 0.2s ease;
    background-color: rgba(34, 187, 255, 0.2);
    color: inherit;
}

.fc-daygrid-day-number:hover {
    background-color: rgba(34, 187, 255, 0.4);
    transform: scale(1.1);
}

.fc-day-today .fc-daygrid-day-number {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
}

.fc-day-past .fc-daygrid-day-number {
    color: #6c757d;
}

.fc-day-past .fc-daygrid-day-number:hover {
    background-color: rgba(108, 117, 125, 0.1);
}

.fc-day-sat .fc-daygrid-day-number,
.fc-day-sun .fc-daygrid-day-number {
    color: #dc3545;
}

.ride-modal-dialog {
    max-width: 480px;
}

.ride-details-list .ride-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--bs-border-color);
}

.ride-details-list .ride-detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ride-detail-label {
    color: var(--bs-secondary);
    flex-shrink: 0;
    max-width: 45%;
}

.ride-detail-value {
    text-align: right;
    word-break: break-word;
}

[data-bs-theme="dark"] #calendar {
    background: #212529;
    color: #fff;
}

[data-bs-theme="dark"] .fc {
    --fc-border-color: #495057;
    --fc-page-bg-color: #212529;
    --fc-neutral-bg-color: #343a40;
}

[data-bs-theme="dark"] .fc-theme-standard td,
[data-bs-theme="dark"] .fc-theme-standard th {
    border-color: #495057;
}

[data-bs-theme="dark"] .fc-col-header-cell {
    background-color: #343a40;
    color: #fff;
}

[data-bs-theme="dark"] .fc-daygrid-day {
    background-color: #212529;
}

[data-bs-theme="dark"] .fc-day-today {
    background-color: rgba(34, 187, 255, 0.1) !important;
}

[data-bs-theme="dark"] .fc-daygrid-day-number {
    background-color: rgba(90, 173, 255, 0.3);
    color: #e9ecef;
}

[data-bs-theme="dark"] .fc-daygrid-day-number:hover {
    background-color: rgba(34, 187, 255, 0.2);
}

[data-bs-theme="dark"] .fc-day-today .fc-daygrid-day-number {
    background-color: var(--primary-color);
    color: white;
}

[data-bs-theme="dark"] .fc-day-past .fc-daygrid-day-number {
    color: #6c757d;
}

[data-bs-theme="dark"] .fc-day-past .fc-daygrid-day-number:hover {
    background-color: rgba(108, 117, 125, 0.2);
}

[data-bs-theme="dark"] .fc-day-sat .fc-daygrid-day-number,
[data-bs-theme="dark"] .fc-day-sun .fc-daygrid-day-number {
    color: #ff6b6b;
}

[data-bs-theme="dark"] #shiftsContainer .badge {
    color: #fff;
}

@media (max-width: 768px) {
    #calendar {
        padding: 10px;
    }

    .fc-toolbar {
        flex-direction: column;
        gap: 10px;
    }

    .fc-event-title {
        font-size: 0.8em;
        padding: 1px 4px;
    }

    .fc-daygrid-day-number {
        width: 28px;
        height: 28px;
        font-size: 0.9em;
    }
}

@media (max-width: 576px) {
    .ride-modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }

    .ride-details-list .ride-detail-item {
        flex-direction: column;
        gap: 0.25rem;
        padding: 0.75rem 0;
    }

    .ride-detail-label {
        max-width: none;
        font-size: 0.85rem;
    }

    .ride-detail-value {
        text-align: left;
        font-size: 1rem;
    }

    #rideModal .modal-header {
        padding: 1rem;
    }

    #rideModal .modal-body {
        padding: 1rem;
    }

    #rideModal .modal-footer {
        padding: 0.75rem 1rem 1rem;
    }
}

.shift-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.25rem;
}

.bike-count {
    font-size: 0.7rem;
    opacity: 0.8;
}

.bikes-selection {
    max-height: 400px;
    overflow-y: auto;
}

.bike-selected-badge {
    z-index: 2;
    pointer-events: none;
}

.bike-checkbox {
    position: relative;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.bike-checkbox:hover:not(:has(input:disabled)) {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
}

.bike-checkbox:has(input:checked) {
    border-color: var(--primary-color);
    border-width: 2px;
    box-shadow: 0 0 0 1px var(--primary-color);
}

.bike-checkbox:has(input:checked) .bike-selected-badge {
    display: block !important;
}

.route-selection-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.route-selection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.route-selection-card.border-primary {
    border-width: 3px !important;
}

.route-selected-badge {
    z-index: 10;
    pointer-events: none;
}

.route-preview-image {
    transition: transform 0.3s ease;
}

.special-route-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.special-route-card:hover {
    box-shadow: 0 1rem 3rem rgba(255, 193, 7, 0.3) !important;
}

.participant-block {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.opacity-50 {
    opacity: 0.5;
}

[data-bs-theme="dark"] .bike-checkbox {
    border-color: #495057;
    background-color: transparent;
}

[data-bs-theme="dark"] .bike-checkbox:hover:not(:has(input:disabled)) {
    border-color: var(--primary-color);
}

/* Dark theme for bikes section */
[data-bs-theme="dark"] #bikes {
    background-color: #343a40 !important;
    color: var(--bs-light);
}

[data-bs-theme="dark"] #bikes .display-6 {
    color: var(--bs-light);
}

[data-bs-theme="dark"] #bikes .lead {
    color: var(--bs-secondary);
}

/* Ensure bike cards stay white in dark theme */
[data-bs-theme="dark"] .bikes-swiper .card {
    background-color: white !important;
    color: var(--bs-dark) !important;
}

[data-bs-theme="dark"] .bikes-swiper .card-title {
    color: var(--bs-dark) !important;
}

[data-bs-theme="dark"] .bikes-swiper .card-text {
    color: var(--bs-secondary) !important;
}

[data-bs-theme="dark"] .bikes-swiper .text-muted {
    color: var(--bs-secondary) !important;
}

/* Dark theme for info section */
[data-bs-theme="dark"] .bg-light {
    background-color: #343a40 !important;
    color: var(--bs-light);
}

[data-bs-theme="dark"] .bg-light .display-6,
[data-bs-theme="dark"] .bg-light h3 {
    color: var(--bs-light);
}

[data-bs-theme="dark"] .bg-light .lead,
[data-bs-theme="dark"] .bg-light .text-muted {
    color: var(--bs-secondary);
}

[data-bs-theme="dark"] .bg-light .info-block {
    background: var(--bs-dark);
    color: var(--bs-light);
}

/* Dark theme calendar */
[data-bs-theme="dark"] .calendar-container {
    background: var(--bs-dark);
    color: var(--bs-light);
}

[data-bs-theme="dark"] .calendar-day {
    background: var(--bs-dark);
    border-color: #495057;
}

[data-bs-theme="dark"] .calendar-day.empty {
    background: #343a40;
}

[data-bs-theme="dark"] .calendar-day.past {
    background: #343a40;
    color: #6c757d;
}

[data-bs-theme="dark"] .calendar-day.today {
    background: rgba(34, 187, 255, 0.1);
    border-color: var(--primary-color);
}

[data-bs-theme="dark"] .calendar-day.weekend {
    background: rgba(255, 193, 7, 0.1);
}

[data-bs-theme="dark"] .shift-item.available {
    background: rgba(40, 167, 69, 0.2);
    border-color: rgba(40, 167, 69, 0.3);
    color: #d4edda;
}

[data-bs-theme="dark"] .shift-item.unavailable {
    background: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.3);
    color: #f8d7da;
}