:root {
    --bg-body: #141824;
    --bg-sidebar: #1f2937;
    --bg-card: #1f2937;
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.15);
    --border-color: #374151;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    font-size: 0.9rem;
}

.sidebar {
    width: 260px;
    height: 100vh;
    background-color: var(--bg-sidebar);
    position: fixed;
    top: 0; left: 0;
    padding: 20px;
    border-right: 1px solid var(--border-color);
    z-index: 100;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 15px;
    background: #374151;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.user-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: 0.3s;
    font-weight: 500;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    background-color: var(--accent);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.sidebar-menu i { width: 20px; text-align: center; }

.content {
    margin-left: 260px;
    padding: 30px 40px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.breadcrumb { color: var(--text-muted); font-size: 0.9rem; }
.breadcrumb span { color: white; font-weight: 600; }

.date-filters button {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    margin-left: 5px;
    transition: 0.2s;
}

.date-filters button.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

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

.stat-card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 140px;
    position: relative;
    border: 1px solid var(--border-color);
}

.stat-icon {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.stat-value { font-size: 2rem; font-weight: 700; margin: 10px 0; }
.stat-label { color: var(--text-muted); font-size: 0.9rem; }

.badge {
    position: absolute;
    top: 20px; right: 20px;
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.chart-container {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    height: 400px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.text-success { color: #34d399; }
h1, h2, h3 { color: white; }

.form-card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

label {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

input, select {
    background-color: #374151;
    border: 1px solid #4b5563;
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
    width: 100%;
    outline: none;
    font-family: inherit;
    transition: 0.3s;
}

input:focus, select:focus {
    border-color: var(--accent);
    background-color: #1f2937;
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.table-card {
    background: var(--bg-card);
    padding: 0;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

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

th {
    background-color: rgba(0,0,0,0.2);
    text-align: left;
    padding: 10px 15px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 8px 15px;
    border-bottom: 1px solid var(--border-color);
    color: #e5e7eb;
    vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tr:hover { background-color: rgba(255,255,255,0.02); }

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s;
}

.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: #2563eb; }

.btn-icon {
    width: 28px; height: 28px;
    border-radius: 6px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.btn-edit { background: rgba(245, 158, 11, 0.1); color: #fbbf24; }
.btn-edit:hover { background: rgba(245, 158, 11, 0.2); transform: scale(1.05); }

.btn-delete { background: rgba(239, 68, 68, 0.1); color: #f87171; }
.btn-delete:hover { background: rgba(239, 68, 68, 0.2); transform: scale(1.05); }

.role-tag {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}
.role-admin { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.role-operator { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.role-user { background: rgba(107, 114, 128, 0.15); color: #9ca3af; }

.login-body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #1f2937 0%, #111827 100%);
}

.login-card {
    background: var(--bg-card);
    width: 100%;
    max-width: 400px;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 0 0 1px #374151, 0 20px 50px rgba(0,0,0,0.5);
    text-align: center;
}

.login-logo {
    width: 80px;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
}

.login-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    color: #9ca3af;
    font-size: 0.85rem;
    margin-bottom: 8px;
    display: block;
}

.form-input {
    width: 100%;
    background: #374151;
    border: 1px solid #4b5563;
    color: white;
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 1rem;
    transition: 0.3s;
}

.form-input:focus {
    background: #1f2937;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    outline: none;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

.btn-login:hover {
    background: #2563eb;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

.copyright {
    margin-top: 30px;
    font-size: 0.8rem;
    color: #4b5563;
}

.status-badge {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    min-width: 80px;
    text-align: center;
}
.status-aktif { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.2); }
.status-isolir { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.2); }
.status-non-aktif { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.2); }

.search-box {
    display: flex;
    align-items: center;
    background: #374151;
    border: 1px solid #4b5563;
    border-radius: 8px;
    padding: 0 15px;
    width: 300px;
    transition: 0.3s;
}

.search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-box input {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 10px 0;
    margin-left: 10px;
    width: 100%;
}
.search-box i { color: #9ca3af; }

.table-header-control {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.price-tag {
    color: #10b981;
    font-weight: 700;
    font-size: 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}

.speed-badge {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 5px;
    display: inline-block;
}

.package-desc {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-top: 5px;
    font-style: italic;
}

.btn-restore {
    background: rgba(16, 185, 129, 0.15); 
    color: #34d399; 
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.btn-restore:hover {
    background: rgba(16, 185, 129, 0.3); 
    transform: scale(1.05);
}

.empty-state {
    text-align: center;
    padding: 50px;
    color: #6b7280;
}
.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.clock-container {
    text-align: right;
    font-family: 'Poppins', sans-serif;
    line-height: 1.2;
}

.clock-time {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3b82f6;
    letter-spacing: 1px;
}

.clock-date {
    font-size: 0.85rem;
    color: #9ca3af;
    font-weight: 400;
    margin-top: 2px;
}

.monitor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.monitor-card {
    background-color: #1f2937;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.monitor-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #9ca3af;
    font-size: 0.9rem;
    font-weight: 600;
}

.monitor-value {
    color: white;
    font-weight: bold;
}

.progress-bg {
    width: 100%;
    height: 8px;
    background-color: #374151;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.fill-cpu { background-color: #ef4444; }
.fill-ram { background-color: #f59e0b; }
.fill-disk { background-color: #3b82f6; }
.fill-net { background-color: #10b981; }
