:root {
    --incident-bg: #11161f;
    --card-bg: rgba(0, 0, 0, 0.6);
    --card-hover: rgba(0, 0, 0, 0.8);
    --card-border: rgba(255, 136, 0, 0.3);
    --incident-accent: #ff9b33;
    --incident-critical: #ff4757;
    --incident-high: #ff8800;
    --incident-medium: #f39c12;
    --incident-low: #3498db;
    --incident-success: #2ed573;
    --incident-text: #f8f8f8;
    --incident-text-dim: #a0a0a0;
    --incident-glass-blur: 10px;
}

.incident-reporting {
    background-color: var(--incident-bg);
    min-height: 100vh;
    padding-top: 20px;
    position: relative;
    overflow: hidden;
}

.incident-logo {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    position: relative;
    z-index: 5;
}

.incident-logo .logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.copyright-bar {
    display: flex;
    justify-content: center;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(var(--incident-glass-blur));
    position: relative;
    z-index: 5;
}

.copyright-bar p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--incident-text-dim);
}

.grid-background {
    position: absolute;
    width: 500%;
    height: 500%;
    top: -100%;
    left: -100%;
    transform: rotateX(75deg) translateY(5em);
    transform-origin: center;
    background: repeating-linear-gradient(to right, rgba(255, 136, 0, 0.2), rgba(255, 136, 0, 0.2) 1px, transparent 1px, transparent 50px),
                repeating-linear-gradient(to bottom, rgba(255, 136, 0, 0.2), rgba(255, 136, 0, 0.2) 1px, transparent 1px, transparent 50px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
}

.grid-background::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, transparent, rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.incident-header {
    padding: 2rem 0;
    text-align: center;
    position: relative;
    z-index: 2;
}

.incident-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.incident-header .subtitle {
    font-size: 1.2rem;
    color: var(--incident-text-dim);
    margin-bottom: 2rem;
}

.incident-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat-card {
    background: var(--card-bg);
    backdrop-filter: blur(var(--incident-glass-blur));
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1.5rem;
    min-width: 160px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 136, 0, 0.6);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--incident-accent);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--incident-text-dim);
    font-weight: 500;
}

.incident-panel {
    padding: 2rem 0;
    position: relative;
    z-index: 2;
}

.panel-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.panel-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0;
}

.incidents-list {
    background: var(--card-bg);
    backdrop-filter: blur(var(--incident-glass-blur));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
}

.report-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--incident-accent);
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.report-btn:hover {
    background: #ff8800;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 136, 0, 0.4);
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--incident-text);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(0, 0, 0, 0.5);
}

.filter-btn.active {
    background: var(--incident-accent);
    color: #000;
    border-color: var(--incident-accent);
}

.incidents-container {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.incident-card {
    background: rgba(0, 0, 0, 0.3);
    border-left: 4px solid;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.incident-card:not(.pending):hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.incident-card.selected {
    background: rgba(255, 136, 0, 0.15);
    border-left-width: 6px;
    transform: translateX(8px);
    box-shadow: 0 5px 20px rgba(255, 136, 0, 0.3);
}

.incident-card.pending {
    cursor: default;
}

.incident-card:not(.pending)::after {
    content: '→';
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--incident-accent);
    opacity: 0;
    transition: all 0.3s ease;
}

.incident-card:not(.pending):hover::after {
    opacity: 1;
    right: 1rem;
}

.incident-card.critical {
    border-left-color: var(--incident-critical);
}

.incident-card.high {
    border-left-color: var(--incident-high);
}

.incident-card.medium {
    border-left-color: var(--incident-medium);
}

.incident-card.low {
    border-left-color: var(--incident-low);
}

.incident-card.pending {
    opacity: 0.7;
    border-style: dashed;
}

.incident-header-row {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.75rem;
}

.incident-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.05rem;
}

.incident-type svg {
    width: 20px;
    height: 20px;
}

.incident-badges {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.severity-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.severity-badge.critical {
    background: rgba(255, 71, 87, 0.2);
    color: var(--incident-critical);
}

.severity-badge.high {
    background: rgba(255, 136, 0, 0.2);
    color: var(--incident-high);
}

.severity-badge.medium {
    background: rgba(243, 156, 18, 0.2);
    color: var(--incident-medium);
}

.severity-badge.low {
    background: rgba(52, 152, 219, 0.2);
    color: var(--incident-low);
}

.pending-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(243, 156, 18, 0.2);
    color: var(--incident-medium);
    animation: pulse-pending 1.5s infinite;
}

@keyframes pulse-pending {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.incident-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--incident-text-dim);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.incident-location svg {
    width: 14px;
    height: 14px;
}

.incident-description {
    color: var(--incident-text);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.incident-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--incident-text-dim);
}

.incident-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.incident-time svg {
    width: 14px;
    height: 14px;
}

.incident-reporter {
    font-weight: 500;
}

.incident-details {
    background: var(--card-bg);
    backdrop-filter: blur(var(--incident-glass-blur));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    height: fit-content;
}

.map-placeholder {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    color: var(--incident-text-dim);
    margin-bottom: 2rem;
}

.map-placeholder svg {
    margin-bottom: 1rem;
    opacity: 0.5;
}

.map-placeholder p {
    margin: 0;
}

.map-instruction {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--incident-text-dim);
    border: 1px solid rgba(255, 136, 0, 0.2);
}

.map-instruction svg {
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.map-instruction p {
    margin: 0;
    font-size: 0.9rem;
}

.selected-incident-info {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--incident-accent);
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.selected-incident-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--incident-accent);
}

.selected-incident-info p {
    font-size: 0.9rem;
    color: var(--incident-text-dim);
    margin-bottom: 0.5rem;
}

.selected-incident-info p:last-child {
    margin-bottom: 0;
    color: var(--incident-text);
}

#incidentMap {
    margin-bottom: 1rem;
    min-height: 400px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.leaflet-container {
    cursor: none !important;
    z-index: 1;
}

.leaflet-popup-content-wrapper {
    cursor: none !important;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.95);
}

.custom-incident-marker {
    animation: marker-pulse 2s infinite;
}

@keyframes marker-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.severity-legend {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
}

.severity-legend h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.legend-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.legend-badge {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.legend-badge.critical {
    background: var(--incident-critical);
}

.legend-badge.high {
    background: var(--incident-high);
}

.legend-badge.medium {
    background: var(--incident-medium);
}

.legend-badge.low {
    background: var(--incident-low);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 100;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--incident-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    margin-bottom: 0;
    font-size: 1.5rem;
}

.close-modal {
    background: none;
    border: none;
    color: var(--incident-text-dim);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--incident-text);
}

.modal-body {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--incident-text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--incident-accent);
    box-shadow: 0 0 0 2px rgba(255, 155, 51, 0.25);
}

.char-counter {
    position: absolute;
    right: 10px;
    bottom: -20px;
    font-size: 0.8rem;
    color: var(--incident-text-dim);
}

.btn-primary {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ff9b33, #ff5500);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 136, 0, 0.4);
}

html, body, a, button, input, textarea, select, label {
    cursor: none !important;
}

.cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--incident-accent);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 10000;
    mix-blend-mode: difference;
}

.cursor-follower {
    position: fixed;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid var(--incident-accent);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

@media (max-width: 992px) {
    .panel-layout {
        grid-template-columns: 1fr;
    }
    
    #incidentMap {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .incident-header h1 {
        font-size: 2.5rem;
    }
    
    .incident-stats {
        gap: 1rem;
    }
    
    .stat-card {
        min-width: calc(50% - 0.5rem);
    }
    
    #incidentMap {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .stat-card {
        min-width: 100%;
    }
    
    .filter-buttons {
        gap: 0.5rem;
    }
    
    .filter-btn {
        flex: 1;
        min-width: calc(50% - 0.25rem);
    }
}

.animate-on-scroll {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
}

.fade-in.animated {
    transform: translateY(0);
}

.slide-up {
    transform: translateY(60px);
}

.slide-up.animated {
    transform: translateY(0);
}

.slide-left {
    transform: translateX(60px);
}

.slide-left.animated {
    transform: translateX(0);
}

.slide-right {
    transform: translateX(-60px);
}

.slide-right.animated {
    transform: translateX(0);
}

.scale-up {
    transform: scale(0.85);
}

.scale-up.animated {
    transform: scale(1);
}

