body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    padding-bottom: 30px;
}

.pulse-btn {
    animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    50% { box-shadow: 0 0 0 8px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

.danger-marker {
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.danger-item-high {
    background: rgba(220, 53, 69, 0.3);
    border-left: 4px solid #dc3545;
}

.danger-item-medium {
    background: rgba(255, 193, 7, 0.2);
    border-left: 4px solid #ffc107;
}

.danger-item-low {
    background: rgba(13, 202, 240, 0.2);
    border-left: 4px solid #0dcaf0;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.live-dot {
    width: 10px;
    height: 10px;
    background: #dc3545;
    border-radius: 50%;
    animation: live-blink 1s infinite;
}

@keyframes live-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    border-radius: 12px;
}

.card-header {
    background: rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 600;
    border-radius: 12px 12px 0 0;
}

.location-card {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.3), rgba(255, 193, 7, 0.2));
    border: 2px solid rgba(220, 53, 69, 0.5);
}

.location-card h4 {
    font-size: 1.3rem;
}

.coordinates {
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
}

.radius-badge {
    background: rgba(13, 110, 253, 0.3);
    border: 1px solid rgba(13, 110, 253, 0.5);
    border-radius: 10px;
    padding: 10px 15px;
    text-align: center;
}

.radius-badge span {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
}

.radius-badge small {
    display: block;
    font-size: 0.7rem;
    opacity: 0.8;
}

.search-card .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.search-card .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-card .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(13, 110, 253, 0.5);
    color: white;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.search-card .input-group-text {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.search-results .list-group-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.search-results .list-group-item:hover {
    background: rgba(13, 110, 253, 0.3);
    border-color: rgba(13, 110, 253, 0.5);
}

.btn-outline-danger {
    border-color: #dc3545;
    color: #ff6b6b;
}

.btn-outline-danger:hover {
    background: rgba(220, 53, 69, 0.3);
    border-color: #dc3545;
    color: white;
}

.btn-outline-success {
    border-color: #198754;
    color: #20c997;
}

.btn-outline-success:hover {
    background: rgba(25, 135, 84, 0.3);
    border-color: #198754;
    color: white;
}

.map-card {
    overflow: hidden;
}

.map-card .card-body {
    padding: 0;
}

#map {
    background: rgba(0, 0, 0, 0.2);
}

.political-warning-card {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.3), rgba(220, 53, 69, 0.2));
    border: 2px solid rgba(255, 193, 7, 0.6);
    animation: pulse-warning 3s infinite;
}

@keyframes pulse-warning {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 193, 7, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 193, 7, 0.5);
    }
}

.hotspots-card {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15), rgba(255, 193, 7, 0.1));
}

.hotspot-item {
    background: rgba(0, 0, 0, 0.2);
    border-left: 3px solid #6c757d;
}

.hotspot-critical {
    border-left-color: #dc3545;
    background: rgba(220, 53, 69, 0.15);
}

.hotspot-high {
    border-left-color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
}

.hotspot-moderate {
    border-left-color: #0dcaf0;
    background: rgba(13, 202, 240, 0.1);
}

.update-item {
    background: rgba(255, 255, 255, 0.05);
    border-left: 2px solid rgba(13, 110, 253, 0.5);
}

.news-card {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(102, 16, 242, 0.1));
}

.news-item {
    background: rgba(0, 0, 0, 0.2);
    border-left: 3px solid rgba(13, 110, 253, 0.5);
}

.news-item:hover {
    background: rgba(13, 110, 253, 0.15);
}

.news-item h6 {
    font-size: 0.95rem;
    line-height: 1.3;
}

.border-danger {
    border-left: 5px solid #dc3545 !important;
    animation: pulse-danger 2s infinite;
}

.border-warning {
    border-left: 5px solid #ffc107 !important;
}

@keyframes pulse-danger {
    0%, 100% {
        box-shadow: 0 0 5px rgba(220, 53, 69, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(220, 53, 69, 0.8);
    }
}

h1 {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

h4, h5, h6 {
    color: #fff;
}

a {
    color: #ffc107;
    text-decoration: none;
}

a:hover {
    color: #ffda6a;
    text-decoration: underline;
}

.alert-link {
    color: #ffc107 !important;
    font-weight: bold;
}

.btn-primary {
    background: rgba(13, 110, 253, 0.8);
    border: 1px solid rgba(13, 110, 253, 1);
}

.btn-primary:hover {
    background: rgba(13, 110, 253, 1);
}

.btn-info {
    background: rgba(13, 202, 240, 0.8);
    border: 1px solid rgba(13, 202, 240, 1);
}

.btn-info:hover {
    background: rgba(13, 202, 240, 1);
}

.btn-secondary {
    background: rgba(108, 117, 125, 0.8);
    border: 1px solid rgba(108, 117, 125, 1);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    color: white;
}

.btn-outline-warning {
    border-color: #ffc107;
    color: #ffc107;
}

.btn-outline-warning:hover {
    background: #ffc107;
    color: #000;
}

.text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.text-warning {
    color: #ffc107 !important;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.5);
    color: white;
}

.bg-dark {
    background: rgba(0, 0, 0, 0.3) !important;
}

pre {
    color: #0f0;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.fas, .fa {
    margin-right: 5px;
}

.btn-group {
    gap: 5px;
}

.emergency-card {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.3), rgba(13, 202, 240, 0.2));
    border: 2px solid rgba(25, 135, 84, 0.5);
}

.emergency-card i {
    color: #20c997;
}

.travel-advisory-card {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.2), rgba(255, 193, 7, 0.2));
    border: 1px solid rgba(255, 193, 7, 0.4);
}

.safety-tips-card {
    background: linear-gradient(135deg, rgba(13, 202, 240, 0.15), rgba(25, 135, 84, 0.1));
}

.safety-tips-card ul {
    padding-left: 1.2rem;
}

.safety-tips-card li {
    margin-bottom: 0.3rem;
    color: rgba(255, 255, 255, 0.9);
}

.crime-stats-card {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15), rgba(255, 193, 7, 0.1));
}

.crime-stats-card .table {
    margin-bottom: 0;
}

.crime-stats-card .table td {
    border-color: rgba(255, 255, 255, 0.1);
    padding: 0.4rem;
}

.crime-stats-card .table td:first-child {
    color: rgba(255, 255, 255, 0.7);
}

.embassy-card {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.15), rgba(102, 16, 242, 0.1));
}

.embassy-card .form-select {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.embassy-card .form-select option {
    background-color: #1a1a2e;
    color: white;
}

.embassy-card .form-control {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.embassy-card .form-label {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.25rem;
}

.btn-outline-warning {
    border-color: #ffc107;
    color: #ffc107;
}

.btn-outline-warning:hover {
    background: rgba(255, 193, 7, 0.3);
    border-color: #ffc107;
    color: white;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
    }
}

.supply-status {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.75rem;
}

.supply-item {
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.supply-ok {
    border-left: 3px solid #28a745;
}

.supply-caution {
    border-left: 3px solid #17a2b8;
    background: rgba(23, 162, 184, 0.1);
}

.supply-shortage {
    border-left: 3px solid #ffc107;
    background: rgba(255, 193, 7, 0.15);
    animation: amber-pulse 2s ease-in-out infinite;
}

@keyframes amber-pulse {
    0%, 100% { background: rgba(255, 193, 7, 0.1); }
    50% { background: rgba(255, 193, 7, 0.25); }
}

.blink-amber {
    animation: blink-amber-anim 1s ease-in-out infinite;
}

@keyframes blink-amber-anim {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
