/* Bike Management Styles */

/* Bike Listing Cards */
.bike-listing-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.bike-listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
}

.bike-listing-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.placeholder-bike-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Status Badge Overlay */
.status-badge-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.status-badge-overlay .badge {
    font-size: 0.85rem;
    padding: 0.5em 0.8em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Stats Badges */
.stats-badge {
    padding: 20px;
    border-radius: 12px;
    color: white;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.stats-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.stats-badge .stats-icon {
    font-size: 2.5rem;
    margin-right: 15px;
    opacity: 0.9;
}

.stats-badge .stats-info h4 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.stats-badge .stats-info p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
}

.empty-state-icon {
    font-size: 5rem;
    color: #10b981;
    margin-bottom: 20px;
}

.empty-state-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
}

.empty-state-message {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Rating Stars */
.rating-stars {
    display: flex;
    align-items: center;
}

.rating-stars i {
    font-size: 1rem;
}

/* Pricing Info */
.pricing-info {
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    padding: 10px 0;
}

/* Rental Info Box */
.rental-info {
    font-size: 0.85rem;
}

/* Bike Image Preview (Edit Page) */
.bike-image-preview {
    position: relative;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
}

.bike-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bike-image-preview .btn {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bike-image-preview:hover .btn {
    opacity: 1;
}

/* Request Cards */
.rental-request-card {
    transition: all 0.3s ease;
    border-left: 4px solid #10b981;
}

.rental-request-card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1) !important;
}

.request-bike-image {
    height: 100px;
    width: 100%;
    object-fit: cover;
}

.placeholder-request-image {
    height: 100px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 2rem;
    color: #6c757d;
}

.earnings-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

/* Empty Requests State */
.empty-requests-state {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    color: #6c757d;
}

.empty-requests-state i {
    font-size: 4rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Availability Toggle */
.availability-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
}

.availability-toggle label {
    margin: 0;
    cursor: pointer;
}

.availability-toggle select {
    flex: 1;
    max-width: 200px;
}

/* Form Enhancements */
.form-label i {
    margin-right: 5px;
    color: #10b981;
}

.shadow-eco {
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.1), 0 1px 3px rgba(16, 185, 129, 0.08);
}

.text-eco-green {
    color: #10b981;
}

.btn-eco-primary {
    background-color: #10b981;
    border-color: #10b981;
    color: white;
}

.btn-eco-primary:hover {
    background-color: #059669;
    border-color: #059669;
    color: white;
}

/* Filter and Search Bars */
.filter-bar {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .bike-listing-card {
        margin-bottom: 20px;
    }

    .stats-badge {
        margin-bottom: 15px;
    }

    .bike-listing-image {
        height: 180px;
    }

    .stats-badge .stats-icon {
        font-size: 2rem;
        margin-right: 10px;
    }

    .stats-badge .stats-info h4 {
        font-size: 1.5rem;
    }

    .empty-state-icon {
        font-size: 3.5rem;
    }

    .rental-request-card .row {
        margin-bottom: 10px;
    }

    .request-bike-image {
        margin-bottom: 15px;
    }
}

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

.bike-item {
    animation: fadeInSlide 0.5s ease forwards;
}

.bike-item:nth-child(1) { animation-delay: 0.1s; }
.bike-item:nth-child(2) { animation-delay: 0.2s; }
.bike-item:nth-child(3) { animation-delay: 0.3s; }
.bike-item:nth-child(4) { animation-delay: 0.4s; }
.bike-item:nth-child(5) { animation-delay: 0.5s; }
.bike-item:nth-child(6) { animation-delay: 0.6s; }

/* Loading State */
.bike-loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.bike-loading i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tab Navigation */
.nav-pills .nav-link {
    color: #6c757d;
    border-radius: 8px;
    padding: 10px 20px;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.nav-pills .nav-link:hover {
    background-color: #f8f9fa;
    color: #10b981;
}

.nav-pills .nav-link.active {
    background-color: #10b981;
    color: white;
}

/* Success/Error Messages */
.alert {
    border-radius: 8px;
    border: none;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #059669;
    border-left: 4px solid #10b981;
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border-left: 4px solid #ef4444;
}

/* Card Hover Effects */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Button Groups */
.btn-group .btn {
    flex: 1;
}

/* Modal Enhancements */
.modal-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-bottom: none;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-content {
    border-radius: 12px;
    border: none;
}

/* Badge Styles */
.badge {
    padding: 0.4em 0.8em;
    font-weight: 500;
}

/* Input Group Enhancements */
.input-group-text {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #10b981;
    font-weight: 600;
}

/* Table Responsive */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
}

.table-hover tbody tr {
    transition: background-color 0.2s ease;
}

.table-hover tbody tr:hover {
    background-color: rgba(16, 185, 129, 0.05);
}

/* Loading Animation for Images */
.bike-listing-image,
.bike-image-preview img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.bike-listing-image[src],
.bike-image-preview img[src] {
    animation: none;
    background: none;
}

