
body {
    background: #050b18;
    color: white;
    font-family: Arial, sans-serif;
}

nav {
    padding: 20px;
    background: #101826;
    color: #00d4ff;
}

.dashboard {
    padding: 30px;
}

.card,
.chart-panel,
.alert-panel,
.table-panel {
    background: #101826;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

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

.card p {
    font-size: 28px;
    color: #00d4ff;
    font-weight: bold;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid #1f2937;
}

button {
    padding: 10px 16px;
    background: #00d4ff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

input[type="file"] {
    color: #fff;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.table-panel {
    overflow-x: auto;
}

.alert-item {
    background: rgba(255, 68, 68, 0.12);
    border-left: 4px solid #ff4444;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    color: #ffb4b4;
}

td:nth-child(2) {
    font-weight: bold;
}

.warning-row {
    background: rgba(255, 165, 0, 0.08);
}

.warning-row td:nth-child(2) {
    color: #ffb347;
    font-weight: bold;
}

.warning-text {
    color: #ffb347;
    font-weight: 700;
}

.info-text {
    color: #22d3ee;
    font-weight: 700;
}

.chart-panel {
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#eventChart {
    max-height: 300px;
}

.table-controls input,
.table-controls select {
    background: #0f172a;
    color: white;
    border: 1px solid #1e293b;
    padding: 8px 12px;
    border-radius: 8px;
}

.upload-box {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
}

#logFile {
    display: none;
}

.file-label {
    background: #0f172a;
    color: #00d4ff;
    border: 1px solid #00d4ff;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}

.file-label:hover {
    background: rgba(0, 212, 255, 0.12);
}

#fileName {
    color: #94a3b8;
    font-size: 15px;
    font-weight: 500;
}

#uploadBtn {
    margin-left: auto;
}

.alert-panel {
    max-height: 350px;
    overflow-y: auto;
}

.ioc-panel {
    background: #101826;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.ioc-item {
    background: rgba(0, 212, 255, 0.08);
    border-left: 4px solid #00d4ff;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
}

.malicious-ip {
    color: #ff4444;
    font-weight: bold;
}

.threat-level {
    margin-top: 10px;
    font-size: 16px;
    color: #94a3b8;
    font-weight: 600;
}