﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f4f7fc;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    padding-top: 80px;
    padding-bottom: 40px;
    flex: 1;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.page-header h1 {
    font-size: 2rem;
    color: #1f3b73;
    margin-bottom: 5px;
}

.page-header p {
    color: #666;
}

.reports-grid {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 30px;
    height: calc(100vh - 200px);
    min-height: 600px;
}

.card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.report-list-panel {
    padding: 20px;
}

.report-list-panel h2 {
    margin-bottom: 20px;
}

.report-detail-panel {
    padding: 30px 30px 0 30px;
    display: flex;
    flex-direction: column;
}

.scrollable-detail-content {
    flex-grow: 1;
    overflow-y: auto;
    padding-bottom: 30px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn {
    background: #f0f5ff;
    color: #555;
    border: 1px solid #dbe3ff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.filter-btn.active {
    background-color: #397DFA;
    color: white;
    border-color: #397DFA;
}

.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-bar input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
}

.filter-action-btn {
    padding: 10px 15px;
    background-color: #397DFA;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-dropdown-container {
    position: relative;
    display: inline-block;
}

.filter-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 20px;
    width: 320px;
    z-index: 1000;
    border: 1px solid #e0e0e0;
}

.filter-menu.show {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1f3b73;
    font-size: 0.9rem;
}

.filter-group select,
.filter-group input[type="date"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f9f9f9;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
}

.date-range-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-range-container input[type="date"] {
    flex: 1;
    min-width: 0;
    font-size: 0.85rem;
}

.date-separator {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-group select:focus,
.filter-group input[type="date"]:focus {
    outline: none;
    border-color: #397DFA;
    background-color: white;
}

.clear-filters-btn {
    width: 100%;
    padding: 10px;
    background-color: #f0f0f0;
    color: #666;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.clear-filters-btn:hover {
    background-color: #e0e0e0;
    color: #333;
}

.incident-queue-list {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 5px;
}

.report-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
    border-radius: 8px;
    margin-bottom: 5px;
}

.report-item:hover {
    background-color: #f8faff;
}

.report-item.selected {
    background-color: #eef3ff;
    border-left: 4px solid #397DFA;
}

.report-thumbnail {
    width: 60px;
    height: 60px;
    background-color: #eee;
    border-radius: 8px;
    overflow: hidden;
}

.report-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.report-info h4 {
    font-size: 1rem;
    color: #1f3b73;
    font-weight: 600;
    margin-bottom: 4px;
}

.report-info p {
    font-size: 0.85rem;
    color: #777;
}

.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: capitalize;
}

.badge.pending {
    background-color: #fff3cd;
    color: #856404;
}

.badge.validated {
    background-color: #d4edda;
    color: #155724;
}

.badge.rejected {
    background-color: #f8d7da;
    color: #721c24;
}

.badge.resolved {
    background-color: #cce5ff;
    color: #004085;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.detail-header h2 {
    font-size: 1.6rem;
    color: #1f3b73;
    margin: 0;
}

.report-id-text {
    font-size: 0.9rem;
    color: #a0a0a0;
    margin-bottom: 20px;
}

.action-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-shrink: 0;
}

.action-bar button {
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    border: none;
    color: white;
}

.action-btn-secondary {
    background-color: #6c757d;
}

.action-btn-delete {
    background-color: #dc3545;
}

.media-placeholder {
    width: 100%;
    height: 300px;
    background: #f4f6fc;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    border: 1px solid #eee;
}

.media-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.details-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.detail-group {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.detail-group p {
    width: 80px;
    font-weight: 600;
    color: #555;
}

.detail-group .detail-value {
    color: #333;
    font-weight: 500;
    word-break: break-word;
}

.incident-details .full-width-field {
    display: block;
    margin-bottom: 20px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.modal-content {
    margin: auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

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

.close-modal {
    float: right;
    font-size: 28px;
    cursor: pointer;
    color: #888;
}

.close-modal:hover {
    color: #333;
}

.modal-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.modal-grid-container .grid-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.modal-content input[type="text"],
.modal-content select,
.modal-content textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
}

.full-width-field label {
    display: block;
    margin-bottom: 5px;
}

.full-width-field {
    margin-bottom: 15px;
}

.action-btn-primary {
    background-color: #397DFA;
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.action-btn-primary:hover {
    background-color: #2f6be0;
}

@media (max-width: 1024px) {
    .reports-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .report-detail-panel {
        height: auto;
    }
}

.footer {
    background-color: #397DFA;
    color: white;
    text-align: center;
    padding: 18px 0;
    width: 100%;
    font-size: 0.95em;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
    margin-top: auto;
}