/* Custom CSS for Pesanan Custom Forms */

/* Model & Fabric Card Styling */
.model-card,
.fabric-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.model-card:hover,
.fabric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.model-card.border-success,
.fabric-card.border-success {
    border-color: #28a745 !important;
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.5);
}

.cursor-pointer {
    cursor: pointer;
}

/* Modal Grid Responsive */
#modelGrid .col-md-4,
#fabricGrid .col-md-4 {
    margin-bottom: 15px;
}

@media (max-width: 768px) {

    #modelGrid .col-md-4,
    #fabricGrid .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Preview Alert Styling */
#modelPreview .alert,
#fabricPreview .alert {
    border-left: 4px solid #17a2b8;
}

/* Card Header Icons */
.card-header i {
    margin-right: 8px;
}

/* Button Styling */
.btn-block {
    font-weight: 500;
}

/* Custom Size Modal */
#modalCustomSize .form-group label {
    font-weight: 500;
    color: #495057;
}

/* Revision Form Specific */
.detail-item-card {
    border-left: 4px solid #007bff;
}

.detail-item-card .card-header {
    font-size: 1.1rem;
}

.model-new-price-0,
.fabric-new-price-0,
.model-new-price-1,
.fabric-new-price-1,
.model-new-price-2,
.fabric-new-price-2 {
    background-color: #fff3cd;
    padding: 10px;
    border-radius: 4px;
    border: 1px dashed #856404;
}

/* Total Order Display */
#totalOrderBaru {
    color: #28a745;
    font-weight: bold;
}

#selisihInfo {
    display: block;
    margin-top: 5px;
}

/* Responsive Tables */
@media (max-width: 576px) {

    .table-sm th,
    .table-sm td {
        font-size: 0.85rem;
        padding: 0.3rem;
    }
}

/* Loading State */
.loading-grid {
    text-align: center;
    padding: 40px 20px;
}

.loading-grid i {
    font-size: 2rem;
    color: #6c757d;
}