/* استایل‌های فرانت مدیریت حمل و نقل */

/* نقشه در فرانت */
.transport-map-container {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.transport-map-header {
    margin-bottom: 20px;
    text-align: center;
}

.transport-map-header h2 {
    margin: 0 0 10px 0;
    color: #23282d;
    font-size: 24px;
}

.transport-map-header p {
    color: #666;
    margin: 0;
}

#transport-map {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* اطلاعات راننده */
.driver-info-popup {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

.driver-info-popup h4 {
    margin: 0 0 10px 0;
    color: #23282d;
    font-size: 16px;
    border-bottom: 2px solid #007cba;
    padding-bottom: 5px;
}

.driver-info-popup .info-row {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.driver-info-popup .info-label {
    font-weight: 600;
    margin-left: 8px;
    color: #555;
    min-width: 80px;
}

.driver-info-popup .info-value {
    color: #23282d;
}

.driver-info-popup .status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-online {
    background-color: #00a32a;
}

.status-busy {
    background-color: #dba617;
}

.status-offline {
    background-color: #d63638;
}

/* کنترل‌های نقشه */
.map-controls-front {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.map-controls-front .control-group {
    display: inline-block;
    margin-left: 15px;
    margin-bottom: 10px;
}

.map-controls-front .control-group:last-child {
    margin-left: 0;
}

.map-controls-front .control-group label {
    font-weight: 600;
    margin-left: 8px;
    color: #495057;
}

.map-controls-front .control-group select,
.map-controls-front .control-group input {
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

/* لیست رانندگان */
.drivers-list-panel {
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.drivers-list-panel h3 {
    margin: 0 0 15px 0;
    color: #23282d;
    font-size: 18px;
    border-bottom: 2px solid #007cba;
    padding-bottom: 8px;
}

.drivers-list {
    max-height: 300px;
    overflow-y: auto;
}

.driver-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.driver-item:hover {
    background-color: #f8f9fa;
}

.driver-item:last-child {
    border-bottom: none;
}

.driver-item .driver-name {
    font-weight: 600;
    color: #23282d;
    margin-bottom: 5px;
}

.driver-item .driver-info {
    font-size: 13px;
    color: #666;
    margin-bottom: 3px;
}

.driver-item .driver-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* نوار جستجو */
.search-container {
    margin-bottom: 20px;
    text-align: center;
}

.search-box {
    width: 100%;
    max-width: 400px;
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    text-align: center;
}

.search-box:focus {
    outline: none;
    border-color: #007cba;
}

/* دکمه‌ها */
.transport-btn-front {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.transport-btn-front:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.transport-btn-primary-front {
    background: #007cba;
    color: #fff;
}

.transport-btn-primary-front:hover {
    background: #005a87;
}

.transport-btn-success-front {
    background: #00a32a;
    color: #fff;
}

.transport-btn-success-front:hover {
    background: #007017;
}

/* لودینگ */
.loading-container {
    text-align: center;
    padding: 40px 20px;
}

.loading-spinner-front {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-text {
    color: #666;
    font-size: 16px;
}

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

/* پیام‌ها */
.message-container {
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.message-success {
    background: #e6f7ed;
    color: #007017;
    border: 1px solid #00a32a;
}

.message-error {
    background: #fcf0f1;
    color: #b32d2e;
    border: 1px solid #d63638;
}

.message-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #dba617;
}

/* کارت اطلاعات */
.info-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.info-card h4 {
    margin: 0 0 15px 0;
    color: #23282d;
    font-size: 18px;
    border-bottom: 2px solid #007cba;
    padding-bottom: 8px;
}

.info-card .info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.info-card .info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-card .info-label {
    font-weight: 600;
    color: #555;
}

.info-card .info-value {
    color: #23282d;
}

/* رسپانسیو */
@media (max-width: 768px) {
    .transport-map-container {
        margin: 10px 0;
        padding: 15px;
    }
    
    #transport-map {
        height: 350px;
    }
    
    .map-controls-front .control-group {
        display: block;
        margin-left: 0;
        margin-bottom: 15px;
    }
    
    .map-controls-front .control-group select,
    .map-controls-front .control-group input {
        width: 100%;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .drivers-list-panel {
        margin-top: 15px;
        padding: 15px;
    }
    
    .transport-btn-front {
        display: block;
        width: 100%;
        margin: 5px 0;
    }
}

@media (max-width: 480px) {
    .transport-map-container {
        padding: 10px;
    }
    
    #transport-map {
        height: 300px;
    }
    
    .driver-info-popup {
        font-size: 13px;
    }
    
    .driver-info-popup h4 {
        font-size: 15px;
    }
    
    .info-card {
        padding: 15px;
    }
}