/* Additional styles for report cards */
.reference-id {
    background-color: #f8f9fa;
    padding: 0.5rem;
    border-radius: 5px;
    font-family: monospace;
    border-left: 3px solid #FF6600;
    margin-bottom: 0.75rem;
}

.reference-id i {
    color: #FF6600;
}

.urgency, .description {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.urgency i {
    color: #ffc107;
}

.description {
    color: #6c757d;
    font-style: italic;
}

/* Status badge variations */
.status-badge--pending {
    background-color: #ffc107;
    color: #000;
}

.status-badge--verified {
    background-color: #17a2b8;
    color: #fff;
}

.status-badge--active {
    background-color: #005A9C;
    color: #fff;
}

.status-badge--resolved {
    background-color: #28a745;
    color: #fff;
}

.status-badge--false-alarm {
    background-color: #6c757d;
    color: #fff;
}

/* Loading and empty states */
.loading-message, .no-reports-message {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.loading-message i {
    font-size: 2rem;
    color: #005A9C;
    margin-bottom: 1rem;
}

.no-reports-message {
    background: #f8f9fa;
    border-radius: 15px;
    margin: 2rem 0;
    grid-column: 1 / -1; /* Span full width of grid */
    border: 1px solid #e9ecef;
}

.no-reports-message i {
    font-size: 3rem;
    color: #FF6600;
    margin-bottom: 1rem;
}

.no-reports-message h3 {
    color: #495057;
    margin-bottom: 1rem;
}

.no-reports-message p {
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #FF6600 0%, #FF8533 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 2rem;
}

.report-details {
    display: grid;
    gap: 1rem;
}

.detail-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1rem;
    align-items: start;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row.full-width {
    grid-template-columns: 1fr;
}

.detail-row .label {
    font-weight: 600;
    color: #495057;
}

.detail-row .value {
    color: #212529;
    word-wrap: break-word;
}

.description-text {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #FF6600;
    line-height: 1.6;
    margin-top: 0.5rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Urgency icons */
.text-blue { color: #005A9C; }
.text-yellow { color: #ffc107; }
.text-orange { color: #fd7e14; }
.text-red { color: #dc3545; }

/* Error notification */
.error-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #dc3545;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    z-index: 1001;
    max-width: 400px;
}

.error-notification button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
}

.error-notification button:hover {
    opacity: 0.8;
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 1rem;
        max-width: none;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .detail-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .detail-row .label {
        font-size: 0.9rem;
        color: #6c757d;
    }
}

/* Rescue Team Action Buttons */
.btn-verify {
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
    color: white;
    border: none;
}

.btn-verify:hover {
    background: linear-gradient(135deg, #138496 0%, #1c7430 100%);
    transform: translateY(-1px);
}

.btn-deploy {
    background: #005A9C;
    color: white;
    border: none;
}

.btn-deploy:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-1px);
}

.btn-resolve {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
}

.btn-resolve:hover {
    background: linear-gradient(135deg, #1e7e34 0%, #1c7430 100%);
    transform: translateY(-1px);
}

/* Enhanced button styling for rescue team */
.btn-action {
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.8rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-action:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Success message styling */
.alert-success {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}