/* Badge styling */
.badge {
    font-size: 85%;
    font-weight: 600;
    padding: 0.35em 0.65em;
}

.badge-danger {
    background-color: #e74a3b;
}

.badge-primary {
    background-color: #4e73df;
}

.badge-warning {
    background-color: #f6c23e;
    color: #fff;
}

.badge-success {
    background-color: #1cc88a;
}

.badge-secondary {
    background-color: #858796;
}

.badge-info {
    background-color: #36b9cc;
}

/* Custom borders for response cards */
.border-primary {
    border-left: 0.25rem solid #4e73df !important;
}

.border-success {
    border-left: 0.25rem solid #1cc88a !important;
}

/* File attachment styling */
.list-group-item {
    border-left: none;
    border-right: none;
}

.list-group-item:first-child {
    border-top: none;
}

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

/* Response thread styling */
.card-header {
    background-color: rgba(0, 0, 0, 0.03);
}

/* Form styling */
textarea {
    min-height: 100px;
}

.form-control-file {
    padding: 0.375rem 0.75rem;
    border: 1px solid #d1d3e2;
    border-radius: 0.35rem;
    background-color: #f8f9fc;
}

/* Custom table styling */
.table-responsive {
    border: none;
}

.table {
    color: #5a5c69;
}

.table th {
    background-color: #f8f9fc;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.table a {
    color: #4e73df;
    text-decoration: none;
}

.table a:hover {
    color: #2e59d9;
    text-decoration: underline;
}

/* Status history timeline styling */
.status-timeline {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
}

.status-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: #e3e6f0;
}

.status-timeline-item {
    position: relative;
    padding-bottom: 15px;
}

.status-timeline-item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 5px;
    height: 10px;
    width: 10px;
    border-radius: 50%;
    background-color: #4e73df;
}

/* Pagination styling */
.pagination {
    margin-bottom: 0;
}

.page-item.active .page-link {
    background-color: #4e73df;
    border-color: #4e73df;
}

.page-link {
    color: #4e73df;
}

.page-link:hover {
    color: #2e59d9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .d-flex.justify-content-between {
        flex-direction: column;
    }

    .d-flex.justify-content-between > div {
        margin-bottom: 5px;
    }
}