/* Request System Web Interface Styles */
/* Following Ares/City of Glass design patterns */

.request-item {
    transition: all 0.2s ease;
}

.request-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.request-item.open {
    border-left-color: #28a745 !important;
}

.request-item.assigned {
    border-left-color: #007bff !important;
}

.request-item.claimed {
    border-left-color: #ffc107 !important;
}

.request-item.in_progress {
    border-left-color: #fd7e14 !important;
}

.request-item.closed {
    border-left-color: #6c757d !important;
}

.request-item.archived {
    border-left-color: #6f42c1 !important;
}

.request-meta .badge {
    margin-right: 0.5rem;
}

.request-info {
    font-size: 0.9rem;
}

.request-description {
    /* background-color: #f8f9fa; -- Commented out to allow dark theme styling */
    padding: 1rem;
    border-radius: 0.375rem;
}

.comment {
    /* background-color: #f8f9fa; -- Commented out to allow dark theme styling */
}

.comment-text {
    margin-top: 0.5rem;
}

/* Priority colors */
.bg-critical {
    background-color: #dc3545 !important;
}

.bg-high {
    background-color: #fd7e14 !important;
}

.bg-normal {
    background-color: #28a745 !important;
}

.bg-low {
    background-color: #17a2b8 !important;
}

.bg-very-low {
    background-color: #6c757d !important;
}

/* Status colors */
.bg-open {
    background-color: #28a745 !important;
}

.bg-assigned {
    background-color: #007bff !important;
}

.bg-claimed {
    background-color: #ffc107 !important;
}

.bg-in-progress {
    background-color: #fd7e14 !important;
}

.bg-on-hold {
    background-color: #6f42c1 !important;
}

.bg-completed {
    background-color: #20c997 !important;
}

.bg-closed {
    background-color: #6c757d !important;
}

.bg-rejected {
    background-color: #dc3545 !important;
}

.bg-cancelled {
    background-color: #6c757d !important;
}

/* Form styling */
.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Button styling */
.btn {
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.card-header {
    /* background-color: #f8f9fa; -- Commented out to allow dark theme card header background */
}

/* Responsive design */
@media (max-width: 768px) {
    .request-item .row {
        flex-direction: column;
    }

    .request-item .col-md-4 {
        margin-top: 1rem;
    }

    .request-meta .badge {
        display: block;
        margin-bottom: 0.25rem;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Animation for new requests */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.request-item.new {
    animation: slideIn 0.3s ease;
}

/* Tooltip styling */
.tooltip {
    font-size: 0.875rem;
}

/* Modal styling */
.modal-content {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {}

.modal-footer {}

/* Pagination styling */
.pagination .page-link {}

.pagination .page-item.active .page-link {}

.pagination .page-link:hover {
    /* background-color: #e9ecef; -- Commented out to allow dark theme styling */
}