/* Map Tabs Styling */

/* Tab Navigation */
.map-tabs-nav {
    display: flex;
    background: rgba(26, 26, 46, 0.95);
    border-bottom: 2px solid rgba(255, 107, 53, 0.3);
    padding: 0 20px;
    gap: 5px;
    overflow-x: auto;
    position: sticky;
    top: 70px;
    z-index: 999;
}

.map-tab {
    padding: 15px 25px;
    background: transparent;
    border: none;
    color: #e0e0e0;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-tab:hover {
    background: rgba(255, 107, 53, 0.1);
    color: #FF6B35;
}

.map-tab.active {
    color: #FF6B35;
    border-bottom-color: #FF6B35;
    font-weight: 600;
}

.map-tab .tab-icon {
    font-size: 1.2rem;
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 20px;
    height: calc(100vh - 200px);
    overflow-y: auto;
}

.tab-content.active {
    display: block;
}

/* Filters Section */
.filters-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.filters-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    color: #b0b0b0;
    font-size: 0.9rem;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 0.95rem;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #FF6B35;
}

.btn-primary, .btn-secondary, .btn-danger {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: #FF6B35;
    color: white;
}

.btn-primary:hover {
    background: #ff8555;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background: rgba(220, 53, 69, 0.8);
    color: white;
}

.btn-danger:hover {
    background: rgba(220, 53, 69, 1);
}

/* Ride Card */
.ride-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.ride-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #FF6B35;
    transform: translateY(-2px);
}

.ride-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.ride-header h3 {
    margin: 0;
    color: #FF6B35;
    font-size: 1.1rem;
}

.ride-date {
    color: #b0b0b0;
    font-size: 0.9rem;
}

.ride-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 10px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-label {
    color: #b0b0b0;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.stat-value {
    color: #e0e0e0;
    font-size: 1.1rem;
    font-weight: 600;
}

.ride-motorcycle {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #b0b0b0;
    font-size: 0.9rem;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #FF6B35;
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 3rem;
}

.stat-info {
    flex: 1;
}

.stat-info .stat-label {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.stat-info .stat-value {
    color: #FF6B35;
    font-size: 2rem;
    font-weight: 700;
}

/* Fuel Card */
.fuel-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.fuel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.fuel-date {
    color: #b0b0b0;
    font-size: 0.9rem;
}

.fuel-cost {
    color: #FF6B35;
    font-size: 1.3rem;
    font-weight: 700;
}

.fuel-details {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    color: #e0e0e0;
}

.fuel-motorcycle {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #b0b0b0;
    font-size: 0.9rem;
}

/* Calendar */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.calendar-header h3 {
    margin: 0;
    color: #FF6B35;
    font-size: 1.5rem;
}

.calendar-header button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #e0e0e0;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.calendar-header button:hover {
    background: #FF6B35;
}

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

.calendar-day-header {
    text-align: center;
    padding: 15px;
    color: #FF6B35;
    font-weight: 600;
    font-size: 0.9rem;
}

.calendar-day {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.calendar-day.empty {
    background: transparent;
    border: none;
    cursor: default;
}

.calendar-day:not(.empty):hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #FF6B35;
}

.calendar-day.has-rides {
    background: rgba(255, 107, 53, 0.2);
    border-color: #FF6B35;
}

.day-number {
    font-size: 1.1rem;
    color: #e0e0e0;
}

.ride-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #FF6B35;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Motorcycle Card */
.motorcycle-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.motorcycle-card.active {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.motorcycle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.motorcycle-header h3 {
    margin: 0;
    color: #FF6B35;
    font-size: 1.2rem;
}

.active-badge {
    background: #4CAF50;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.motorcycle-details {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    color: #e0e0e0;
}

.motorcycle-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #b0b0b0;
    font-size: 1.2rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-header h2 {
    margin: 0;
    color: #FF6B35;
}

.modal-close {
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #b0b0b0;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FF6B35;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
}

/* Ride Details Modal Specific */
.ride-details-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.ride-details-stats .stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.ride-details-stats .stat-icon {
    font-size: 2rem;
}

.ride-details-stats .stat-info .stat-label {
    color: #b0b0b0;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.ride-details-stats .stat-info .stat-value {
    color: #FF6B35;
    font-size: 1.3rem;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .map-tabs-nav {
        padding: 0 10px;
    }
    
    .map-tab {
        padding: 12px 15px;
        font-size: 0.85rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .ride-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filters-row {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .ride-details-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}
