/* ============================================ */
/* DİNAMİK EKİPMAN YÖNETİM SİSTEMİ - STYLES */
/* ============================================ */

.equipment-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed #e0e0e0;
}

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

.equipment-header h4 {
    margin: 0;
    flex: 1;
}

.btn-add-category {
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.btn-add-category:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.btn-add-category:active {
    transform: translateY(0);
}

.equipment-fields-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.equipment-field-group {
    margin-bottom: 0 !important;
}

.equipment-field-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

.equipment-select {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.equipment-select:hover {
    border-color: #2196F3;
}

.equipment-select:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.equipment-select option {
    padding: 8px;
}

/* Ekipman kategorisi ekleme modalı */
#add-equipment-category-modal .modal-content {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form alanları için özel stiller */
#add-equipment-form .form-group {
    margin-bottom: 20px;
}

#add-equipment-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

#add-equipment-form input[type="text"],
#add-equipment-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}

#add-equipment-form input[type="text"]:focus,
#add-equipment-form select:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

/* Responsive tasarım */
@media (max-width: 768px) {
    .equipment-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .equipment-header h4 {
        text-align: center;
    }
    
    .btn-add-category {
        width: 100%;
        justify-content: center;
    }
    
    .equipment-fields-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .equipment-header h4 {
        font-size: 14px;
    }
    
    .btn-add-category {
        padding: 10px 14px;
        font-size: 12px;
    }
    
    .equipment-select {
        padding: 8px 10px;
        font-size: 13px;
    }
}

/* Araç kartlarında ekipman görünümü */
.vehicle-equipment-info {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e0e0e0;
}

.vehicle-equipment-info h5 {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #666;
    font-weight: 600;
}

.vehicle-equipment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vehicle-equipment-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 4px;
    font-size: 11px;
    color: #1976d2;
    font-weight: 500;
}

.vehicle-equipment-item-icon {
    font-size: 13px;
}

/* Yazdırma için stil */
@media print {
    .equipment-header button {
        display: none;
    }
}

/* ============================================ */
/* ARAÇ KARTLARINDA EKİPMAN BUTONU */
/* ============================================ */

.plate-equipment-btn {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    box-shadow: 0 2px 6px rgba(33, 150, 243, 0.3);
}

.plate-equipment-btn:hover {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(33, 150, 243, 0.4);
}

.plate-equipment-btn:active {
    transform: translateY(0);
}

/* Ekipman modalı */
.equipment-item {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
