/* MTL Delivery System - Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

.delivery-container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.delivery-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.mtl-logo {
    max-width: 300px;
    height: auto;
}

.delivery-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.address {
    font-size: 14px;
    color: #666;
}

.location-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.location-tab {
    padding: 10px 20px;
    border: none;
    background: none;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.location-tab.active {
    color: #007bff;
    border-bottom-color: #007bff;
    font-weight: 600;
}

.rules-section {
    background: #fff3cd;
    padding: 15px;
    margin-bottom: 30px;
    border-left: 4px solid #ffc107;
}

.rules-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #856404;
}

.rules-section ul {
    list-style: none;
    padding-left: 0;
}

.rules-section li {
    margin-bottom: 8px;
    font-size: 13px;
    color: #856404;
}

.rules-section strong {
    color: #dc3545;
}

.delivery-form {
    margin-top: 30px;
}

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

.form-section h3 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.form-input,
.form-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #007bff;
}

.vin-input {
    text-transform: uppercase;
}

.vin-warning {
    background: #dc3545;
    color: white;
    padding: 8px;
    margin-top: 5px;
    border-radius: 4px;
    font-size: 12px;
    text-align: center;
}

.checkbox-group {
    margin: 20px 0;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.checkbox-item label {
    flex: 1;
    font-size: 14px;
}

.radio-group {
    display: flex;
    gap: 15px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
}

.vehicle-type-group,
.container-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.vehicle-type-group label,
.container-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.vehicle-type-group label:hover,
.container-group label:hover {
    background: #f0f0f0;
}

.vehicle-type-group input:checked + label,
.container-group input:checked + label {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.btn-back {
    padding: 12px 30px;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-back:hover {
    background: #f0f0f0;
}

.btn-submit {
    padding: 12px 40px;
    border: none;
    background: #007bff;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: #0056b3;
}

.btn-mocar {
    padding: 12px 30px;
    border: 2px solid #28a745;
    background: white;
    color: #28a745;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-mocar:hover {
    background: #28a745;
    color: white;
}

.btn-remove-vehicle {
    padding: 6px 12px;
    border: 1px solid #dc3545;
    background: white;
    color: #dc3545;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 15px;
    transition: all 0.3s;
}

.btn-remove-vehicle:hover {
    background: #dc3545;
    color: white;
}

.vehicle-block {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 3px solid #e0e0e0;
}

.vehicle-block:last-child {
    border-bottom: none;
}

.error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.flash-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.alert {
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    animation: slideIn 0.3s ease;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Dashboard styles */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

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

.dashboard-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #1a4d8f;
}

.dashboard-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.filter-input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

.orders-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.orders-table table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table th {
    background: #1a4d8f;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
}

.orders-table td {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.orders-table tr:hover {
    background: #f8f9fa;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-completed {
    background: #d1ecf1;
    color: #0c5460;
}

/* Responsive */
@media (max-width: 768px) {
    .delivery-container {
        padding: 20px;
    }
    
    .location-tabs {
        overflow-x: auto;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-back,
    .btn-submit {
        width: 100%;
    }
}
