/**
 * KargoKit Cases Frontend Styles
 */

/* Status and type badges */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    color: #fff;
}

.bg-blue { background-color: #206bc4; }
.bg-yellow { background-color: #f59f00; color: #000; }
.bg-orange { background-color: #f76707; }
.bg-green { background-color: #2fb344; }
.bg-red { background-color: #d63939; }
.bg-cyan { background-color: #17a2b8; }
.bg-secondary { background-color: #868e96; }

/* Case action buttons */
.btn-case-action {
    margin-right: 5px;
    margin-bottom: 5px;
}

/* My cases page */
.kargokit-my-cases h3 {
    margin-bottom: 20px;
}

.kargokit-my-cases .woocommerce-orders-table code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
}

/* Case details modal */
#case-details-modal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.case-detail-section {
    margin-bottom: 20px;
}

.case-detail-section h6 {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.case-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dotted #eee;
}

.case-detail-label {
    color: #6c757d;
}

.case-detail-value {
    font-weight: 500;
}

/* Case modal forms */
.modal .form-label.required::after {
    content: " *";
    color: #d63939;
}

.modal .alert ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.modal .alert li {
    margin-bottom: 5px;
}

.modal-status {
    height: 4px;
    width: 100%;
}

/* File preview in forms */
.file-preview-list {
    margin-top: 10px;
}

.file-preview-item {
    display: inline-flex;
    align-items: center;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 4px;
    margin: 2px;
    font-size: 12px;
}

.file-preview-item .remove-file {
    margin-left: 8px;
    color: #d63939;
    cursor: pointer;
}

/* Success modal */
#case-success-modal .ti-circle-check {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .btn-case-action {
        display: block;
        width: 100%;
        margin-right: 0;
    }

    .kargokit-my-cases .woocommerce-orders-table th,
    .kargokit-my-cases .woocommerce-orders-table td {
        padding: 8px 5px;
        font-size: 13px;
    }
}
