/* VTC Fleet - Grid Styles */
.vtc-fleet-container {
    padding: 20px;
    background: #0B0E14;
    color: #E0E0E0;
    min-height: 500px;
}

.vtc-fleet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.vtc-fleet-header h2 {
    color: #FF8C00;
    margin: 0;
    font-family: 'Sora', sans-serif;
}

/* Add Vehicle Button */
.btn-add-vehicle {
    background: linear-gradient(135deg, #FF8C00, #FF5500);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-add-vehicle:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
}

/* Grid Layout */
.vtc-fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* Vehicle Card */
.vtc-vehicle-card {
    background: #151921;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vtc-vehicle-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 140, 0, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.vtc-vehicle-image {
    height: 180px;
    width: 100%;
    position: relative;
    background: #000;
}

.vtc-vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.vtc-vehicle-card:hover .vtc-vehicle-image img {
    opacity: 1;
}

/* Status Badge */
.vehicle-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.status-active {
    color: #00D1B2;
    border: 1px solid #00D1B2;
}

.status-maintenance {
    color: #FFD700;
    border: 1px solid #FFD700;
}

.status-damaged {
    color: #FF4D4D;
    border: 1px solid #FF4D4D;
}

/* Card Body */
.vtc-card-body {
    padding: 15px;
}

.vehicle-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 5px;
    color: #FFFFFF;
}

.vehicle-plate {
    font-size: 0.85rem;
    color: #A2A5AC;
    background: #0B0E14;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 1px;
    display: inline-block;
    border: 1px solid #333;
}

.vehicle-driver {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.driver-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #2D313A;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.driver-name {
    font-size: 0.9rem;
    color: #E0E0E0;
}

.driver-none {
    color: #666;
    font-style: italic;
}

/* Modal Styles */
.vtc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.vtc-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.vtc-modal {
    background: #151921;
    border: 1px solid #2D313A;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: transform 0.3s;
    position: relative;
    display: flex;
    flex-direction: row;
}

.vtc-modal-overlay.active .vtc-modal {
    transform: scale(1);
}

/* Modal Content Layout */
.vtc-modal-image {
    width: 40%;
    background: #000;
    position: relative;
}

.vtc-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.vtc-modal-details {
    width: 60%;
    padding: 30px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #A2A5AC;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
}

.modal-close:hover {
    color: #FFF;
}

.modal-title {
    font-size: 1.8rem;
    margin: 0 0 5px;
    color: #FF8C00;
}

.modal-subtitle {
    font-size: 1rem;
    color: #A2A5AC;
    margin-bottom: 20px;
    display: block;
}

/* Stats Grid in Modal */
.modal-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: #1A1D24;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: #A2A5AC;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Driver Assignment Section */
.driver-assignment {
    background: #1A1D24;
    padding: 20px;
    border-radius: 8px;
    border-top: 2px solid #FF8C00;
}

.assignment-header {
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 600;
    display: block;
    color: #fff;
}

.driver-select-wrapper {
    display: flex;
    gap: 10px;
}

.driver-select-control {
    flex: 1;
    background: #0B0E14;
    border: 1px solid #333;
    color: white;
    padding: 10px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
}

#btn-assign-driver {
    background: #00D1B2;
    color: #000;
    border: none;
    padding: 0 20px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

#btn-assign-driver:hover {
    background: #00FFD5;
}

/* Responsive */
@media (max-width: 768px) {
    .vtc-modal {
        flex-direction: column;
    }

    .vtc-modal-image {
        width: 100%;
        height: 200px;
    }

    .vtc-modal-details {
        width: 100%;
    }
}