/* Request Card Component Styles */

.request-card-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.6) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 1000 !important;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.request-card-modal .modal-content {
    max-width: 900px;
    width: 95%;
    padding: 0;
    overflow: hidden;
    background: white;
    border-radius: 10px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.request-card-content {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
}

.request-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px 10px 0 0;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.request-card-header h2 {
    margin: 0;
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.request-card-body {
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Request Info Section */
.request-info-section {
    margin-bottom: 30px;
    padding: 0 30px;
    padding-top: 30px;
}

.info-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
    gap: 10px !important;
    margin-bottom: 15px;
}

.info-item {
    display: flex !important;
    align-items: flex-start;
    gap: 8px !important;
    padding: 8px !important;
    background: #f9fafb;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
}

.info-item:hover {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.info-item i {
    font-size: 0.9rem !important;
    color: #000000 !important;
    margin-top: 2px;
}

.info-item strong {
    display: block;
    color: #374151;
    margin-bottom: 2px;
    font-size: 0.75rem !important;
}

.info-item p {
    margin: 0;
    color: #6b7280;
    font-size: 0.85rem !important;
}

/* Map Section */
.request-map-section {
    margin-bottom: 0;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 5;
    background: white;
    padding: 30px 30px 0 30px;
}

.request-map-section h3 {
    color: #000000 !important;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.request-map-section h3 i {
    color: #000000 !important;
}

.request-map-container {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Offers Section */
.request-offers-section {
    padding: 0 30px;
    padding-bottom: 30px;
}

.request-offers-section h3 {
    color: #000000 !important;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.request-offers-section h3 i {
    color: #000000 !important;
}

.request-offers-section h3 * {
    color: #000000 !important;
}

.offers-count {
    background: #f9fafb !important;
    color: #374151 !important;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: normal;
}

/* Driver Offer Form */
.driver-offer-form {
    background: #f0f9ff;
    border: 2px solid #0ea5e9;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
}

.driver-offer-form h4 {
    color: #0ea5e9;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.driver-offer-form .form-group {
    margin-bottom: 15px;
}

.driver-offer-form label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 600;
    font-size: 0.9rem;
}

.driver-offer-form input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.driver-offer-form input[type="number"]:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.amenities-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: normal;
    margin: 0;
}

.amenities-grid label:hover {
    border-color: #0ea5e9;
    background: #f0f9ff;
}

.amenities-grid label input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn-submit-offer {
    width: 100%;
    padding: 15px;
    background: #0ea5e9;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.btn-submit-offer:hover {
    background: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

/* Driver Existing Offer */
.driver-existing-offer {
    background: #d1fae5;
    border: 2px solid #10b981;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

.driver-existing-offer h4 {
    color: #10b981;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Offers List */
.offers-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.offer-item {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s;
}

.offer-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.offer-item.highlight {
    border-color: #10b981;
    background: #f0fdf4;
}

.offer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.offer-header h4 {
    margin: 0;
    color: #374151;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.driver-phone {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 5px 0 0 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.offer-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #10b981;
    white-space: nowrap;
}

.offer-car-info {
    background: #f9fafb;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.offer-car-info p {
    margin: 5px 0;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
}

.offer-item p {
    margin: 8px 0;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
}

.offer-item i {
    color: #000000 !important;
}

.offer-item h4 i {
    color: #000000 !important;
}

.offer-item p i {
    color: #000000 !important;
}

.offer-header h4 i {
    color: #000000 !important;
}

.driver-phone i {
    color: #000000 !important;
}

.offer-car-info i {
    color: #000000 !important;
}

.offers-list i {
    color: #000000 !important;
}

.offer-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.btn-accept,
.btn-reject {
    flex: 1;
    min-width: 150px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-accept {
    background: #10b981;
    color: white;
}

.btn-accept:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-reject {
    background: #ef4444;
    color: white;
}

.btn-reject:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #9ca3af;
}

.empty-state::before {
    content: '📭';
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .request-card-header {
        padding: 15px 20px;
    }
    
    .request-card-header h2 {
        font-size: 1.2rem;
    }
    
    .request-card-body {
        padding: 20px;
    }
    
    .info-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 8px;
    }
    
    .info-item {
        padding: 6px;
        gap: 6px;
    }
    
    .info-item i {
        font-size: 0.8rem;
    }
    
    .info-item strong {
        font-size: 0.7rem;
    }
    
    .info-item p {
        font-size: 0.75rem;
    }
    
    .request-map-container {
        height: 300px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .offer-header {
        flex-direction: column;
    }
    
    .offer-price {
        font-size: 1.5rem;
    }
    
    .offer-actions {
        flex-direction: column;
    }
    
    .btn-accept,
    .btn-reject {
        width: 100%;
    }
}

