*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #0b0f19;
    color: #f1f5f9;
    min-height: 100vh;
}

/* =========================================
   LOGIN VIEW
   ========================================= */
body.login-view {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.login-card {
    background-color: #111827;
    border: 1px solid #1f2937;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.login-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #f97316;
    text-align: center;
}

.login-subtitle {
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: #94a3b8;
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.25rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 0.4rem;
}

.form-group input {
    background-color: #0f172a;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 0.65rem 0.85rem;
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: #38bdf8;
}

.btn-submit {
    width: 100%;
    background-color: #0284c7;
    color: #ffffff;
    font-weight: 700;
    border: none;
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background-color 0.2s;
}

.btn-submit:hover {
    background-color: #0369a1;
}

.alert-box {
    background-color: rgba(220, 38, 38, 0.2);
    border: 1px solid #dc2626;
    color: #fca5a5;
    padding: 0.6rem;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    text-align: center;
}

/* =========================================
   DASHBOARD VIEW
   ========================================= */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #1e293b;
    padding-bottom: 1.25rem;
    margin-bottom: 2rem;
}

.dash-title {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.dash-status {
    font-size: 0.875rem;
    color: #38bdf8;
    margin-top: 0.2rem;
}

.btn-logout {
    background-color: #334155;
    color: #f8fafc;
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.btn-logout:hover {
    background-color: #dc2626;
}

/* KPI Kacheln */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.kpi-card {
    background-color: #111827;
    border: 1px solid #1f2937;
    padding: 1.25rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.kpi-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 1px;
}

.kpi-value {
    font-size: 2rem;
    font-weight: 900;
    margin-top: 0.4rem;
}

.text-blue { color: #38bdf8; }
.text-orange { color: #f97316; }
.text-green { color: #10b981; }

/* Table Container & DataTables Overrides */
.table-card {
    background-color: #111827;
    border: 1px solid #1f2937;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
}

table.dataTable {
    color: #cbd5e1 !important;
    border-bottom: 1px solid #1f2937 !important;
}

table.dataTable thead th {
    background-color: #0f172a !important;
    color: #94a3b8 !important;
    border-bottom: 1px solid #334155 !important;
    font-size: 0.85rem;
}

table.dataTable tbody tr {
    background-color: transparent !important;
    border-bottom: 1px solid #1f2937;
}

table.dataTable tbody tr:hover {
    background-color: #1e293b !important;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    color: #94a3b8 !important;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.dataTables_wrapper .dataTables_filter input {
    background-color: #0f172a;
    border: 1px solid #334155;
    color: #ffffff;
    border-radius: 4px;
    padding: 0.3rem 0.6rem;
    outline: none;
}

.ip-tag {
    font-family: monospace;
    font-weight: 700;
    color: #38bdf8;
}

.country-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.badge-code {
    background: #334155;
    color: #f8fafc;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
}

.city-text {
    color: #94a3b8;
    font-size: 0.8rem;
    margin-left: 0.25rem;
}

.method-tag {
    background: #1e293b;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    color: #facc15;
}

.col-agent {
    font-size: 0.85rem;
    color: #cbd5e1;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}