/* assets/apm-style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Fira+Code:wght@400;500&display=swap');

:root {
    --bg-main: #0c0e14;
    --bg-side: #181b21;
    --bg-card: #1d2128;
    --border: #2d333d;
    --text-muted: #8a94a6;
    --accent-blue: #007aff;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: #f0f0f0;
    margin: 0;
    overflow-x: hidden;
}

/* Sidebar Tetap di Kiri */
.sidebar {
    width: 240px;
    background: var(--bg-side);
    border-right: 1px solid var(--border);
    height: 100vh;
    position: fixed;
    top: 0; left: 0;
    z-index: 100;
    padding: 20px 0;
}

.nav-label { padding: 20px 20px 8px; font-size: 10px; font-weight: 700; color: #4a5568; text-transform: uppercase; letter-spacing: 1.5px; }
.nav-item { padding: 10px 20px; display: flex; align-items: center; color: var(--text-muted); font-size: 13px; text-decoration: none; transition: 0.2s; }
.nav-item:hover, .nav-item.active { background: rgba(255,255,255,0.05); color: #fff; border-right: 3px solid var(--accent-blue); }

/* Konten Utama - Mengambil sisa layar */
.main-content {
    margin-left: 240px;
    padding: 40px;
    min-height: 100vh;
    width: calc(100% - 240px);
}

.apm-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

/* Table Style */
.apm-table { width: 100%; border-collapse: collapse; }
.apm-table th { background: #15191e; color: var(--text-muted); font-size: 10px; text-transform: uppercase; padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--border); }
.apm-table td { padding: 16px 20px; border-bottom: 1px solid #22262c; font-size: 13px; color: #cbd5e0; }

/* Modal Centering (Fix) */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    padding: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Input Style */
.apm-input {
    background: #0c0e14;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 14px;
    color: #fff;
    font-size: 14px;
    width: 100%;
}

.btn-primary { background: var(--accent-blue); color: white; padding: 10px 20px; border-radius: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; }

/* Status Badges */
.badge-on { background: #2ecc71; color: #000; padding: 2px 6px; border-radius: 4px; font-weight: 900; font-size: 10px; }
.badge-off { background: #e74c3c; color: #fff; padding: 2px 6px; border-radius: 4px; font-weight: 900; font-size: 10px; }