/* Cyberpunk Theme Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
    background: radial-gradient(circle at center, #071026 0%, #02050d 100%);
    color: #00f0ff;
    min-height: 100vh;
    box-sizing: border-box;
}

/* Layout Grid Utama Split Screen */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    max-width: 1600px;
    margin: 0 auto;
}

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

.container {
    background: rgba(10, 20, 47, 0.7);
    border: 2px solid #00f0ff;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
    padding: 25px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    position: relative;
}

/* Container khusus Live Map */
.map-container {
    background: rgba(10, 20, 47, 0.7);
    border: 2px solid #ff007f;
    box-shadow: 0 0 20px rgba(255, 0, 127, 0.3);
    padding: 20px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 90px);
    min-height: 550px;
}

h2 {
    color: #00f0ff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
    margin-top: 0;
    border-bottom: 2px solid #ff007f;
    padding-bottom: 10px;
    display: inline-block;
}

.map-title {
    color: #ff007f !important;
    border-bottom: 2px solid #00f0ff !important;
    text-shadow: 0 0 10px rgba(255, 0, 127, 0.7) !important;
}

label {
    display: block;
    margin: 10px 0 8px 0;
    color: #ff007f;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(255, 0, 127, 0.5);
}

textarea {
    width: 100%;
    height: 100px;
    padding: 12px;
    box-sizing: border-box;
    background-color: rgba(2, 5, 13, 0.9);
    border: 1px solid #00ff66;
    border-radius: 4px;
    color: #00ff66;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    margin-bottom: 15px;
    outline: none;
    box-shadow: inset 0 0 10px rgba(0, 255, 102, 0.2);
    transition: all 0.3s ease;
    resize: vertical;
}

textarea:focus {
    border-color: #ff007f;
    box-shadow: inset 0 0 10px rgba(255, 0, 127, 0.2), 0 0 10px rgba(0, 255, 102, 0.5);
}

/* Controls Layout */
.controls-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.select-mode {
    background-color: rgba(2, 5, 13, 0.9);
    color: #00f0ff;
    border: 2px solid #00f0ff;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: bold;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
    transition: all 0.3s ease;
}

.select-mode:focus {
    border-color: #ff007f;
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.5);
}

.select-mode option {
    background-color: #071026;
    color: #00f0ff;
}

button {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-process {
    background: transparent;
    color: #00f0ff;
    border: 2px solid #00f0ff;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.btn-process:hover {
    background-color: #00f0ff;
    color: #02050d;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.8);
}

.btn-copy {
    background: transparent;
    color: #ff007f;
    border: 2px solid #ff007f;
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.3);
}

.btn-copy:hover {
    background-color: #ff007f;
    color: white;
    box-shadow: 0 0 20px rgba(255, 0, 127, 0.8);
}

.btn-clear {
    background: transparent;
    color: #ffcc00;
    border: 2px solid #ffcc00;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.3);
}

.btn-clear:hover {
    background-color: #ffcc00;
    color: #02050d;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.8);
}

/* Tampilan Total Logs Info */
.total-logs-display {
    background: rgba(2, 5, 13, 0.9);
    border: 1px dashed #ffcc00;
    color: #ffcc00;
    padding: 9px 15px;
    font-size: 13px;
    font-weight: bold;
    border-radius: 4px;
    text-shadow: 0 0 5px rgba(255, 204, 0, 0.5);
    margin-left: auto;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .total-logs-display {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
}

/* Table Styling */
.table-container {
    overflow-x: auto;
    border: 1px solid rgba(0, 240, 255, 0.5);
    border-radius: 4px;
    background: rgba(2, 5, 13, 0.8);
    max-height: 400px;
    overflow-y: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    color: #ffffff;
}

th {
    background-color: #0d1e3d;
    color: #00f0ff;
    text-align: left;
    padding: 12px 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #00f0ff;
    position: sticky;
    top: 0;
    z-index: 10;
}

td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    border-right: 1px solid rgba(0, 240, 255, 0.1);
    vertical-align: middle;
}

td:last-child {
    border-right: none;
}

tr:hover {
    background-color: rgba(0, 240, 255, 0.1);
}

/* Neon Glow Severities */
.sev-CRITICAL { 
    color: #ff0055; 
    font-weight: bold; 
    text-shadow: 0 0 8px rgba(255, 0, 85, 0.6); 
}
.sev-HIGH { 
    color: #ff5500; 
    font-weight: bold; 
    text-shadow: 0 0 8px rgba(255, 85, 0, 0.6); 
}
.sev-MEDIUM { 
    color: #ffcc00; 
    font-weight: bold; 
    text-shadow: 0 0 8px rgba(255, 204, 0, 0.6); 
}
.sev-LOW { 
    color: #00ff66; 
    font-weight: bold; 
    text-shadow: 0 0 8px rgba(0, 255, 102, 0.6); 
}

.bold-text {
    font-weight: bold;
}
.center-text {
    text-align: center;
}
.host-color {
    color: #e0e6ed;
    line-height: 1.5;
    white-space: pre-line;
}
.impact-color {
    color: #a0aec0;
}

/* Wrapper & Efek Filter Peta */
.iframe-wrapper {
    flex-grow: 1;
    border: 1px solid #ff007f;
    border-radius: 4px;
    overflow: hidden;
    background: #000;
    box-shadow: inset 0 0 15px rgba(255, 0, 127, 0.4);
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: hue-rotate(60deg) saturate(2.5) brightness(1.1);
}

/* Cyberpunk Toast Notification */
.toast {
    position: fixed;
    top: -100px;
    right: 20px;
    background: rgba(2, 5, 13, 0.95);
    color: #00f0ff;
    border: 2px solid #00f0ff;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
    padding: 15px 25px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9999;
    pointer-events: none;
}
.toast.show {
    top: 20px;
}
.toast-warn {
    color: #ff0055;
    border: 2px solid #ff0055;
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.5);
}