/* ============================================================= */
/* assets/css/style.css → DARK CLASSY PREMIUM (FULL TOOLS.PHP) */
/* Semua card hitam, tulisan jelas, tombol Info cantik         */
/* ============================================================= */

:root {
    --bg: #0a0a0a;
    --sidebar: #0f0f0f;
    --card: #141414;
    --card-hover: #1a1a1a;
    --border: #262626;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --success: #10b981;
    --danger: #ef4444;
    --radius: 18px;
    --shadow: 0 8px 32px rgba(0,0,0,0.4);
    --transition: all 0.3s ease;
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

/* Scrollbar halus */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }

/* Layout */
.container { display:flex; min-height:100vh; }

/* Sidebar (tetap sama) */
.sidebar { width:270px; background:var(--sidebar); position:fixed; height:100vh; overflow-y:auto; border-right:1px solid var(--border); box-shadow:var(--shadow); }
.sidebar-header { padding:44px 28px; text-align:center; border-bottom:1px solid var(--border); }
.sidebar-header h2 { font-size:1.85rem; font-weight:700; color:white; }
.admin-badge { margin-top:10px; color:#fbbf24; font-size:0.82rem; font-weight:600; }

.sidebar-menu ul { list-style:none; }
.sidebar-menu a { display:flex; align-items:center; padding:17px 28px; color:var(--text-muted); text-decoration:none; font-weight:500; transition:var(--transition); }
.sidebar-menu a i { width:32px; font-size:1.3rem; margin-right:16px; color:var(--text-muted); }
.sidebar-menu a:hover { background:rgba(99,102,241,0.12); color:white; }
.sidebar-menu a.active { background:var(--primary); color:white; position:relative; }
.sidebar-menu a.active::before { content:''; position:absolute; left:0; top:0; bottom:0; width:5px; background:white; }

.sidebar-footer { padding:28px; border-top:1px solid var(--border); text-align:center; }
.user-avatar { width:78px; height:78px; border-radius:50%; border:4px solid var(--primary); margin:0 auto 16px; box-shadow:0 8px 30px rgba(99,102,241,0.25); }
.logout-btn { margin-top:20px; display:flex; justify-content:center; gap:10px; background:var(--primary); color:white; padding:15px 24px; border-radius:14px; text-decoration:none; font-weight:500; }
.logout-btn:hover { background:var(--primary-hover); transform:translateY(-3px); }

/* Main content */
.main-content { margin-left:270px; padding:48px; flex:1; overflow-y:auto; height:100vh; }

/* Header */
.header { background:var(--card); padding:36px 42px; border-radius:var(--radius); box-shadow:var(--shadow); margin-bottom:40px; border:1px solid var(--border); }
.header h1 { font-size:2.4rem; font-weight:700; color:white; }

/* TOOL CARD & FORM (halaman tools.php) */
.tool-card {
    background: var(--card) !important;
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    margin-bottom: 28px;
    transition: var(--transition);
}
.tool-card:hover { transform:translateY(-6px); box-shadow:0 16px 40px rgba(0,0,0,0.5); }
.tool-card h3 { font-size:1.4rem; margin-bottom:12px; color:white; }

/* Form */
.form-group { margin-bottom:20px; }
.form-group label { display:block; margin-bottom:8px; font-weight:600; color:var(--text); }
.form-control, textarea {
    width:100%;
    padding:14px;
    background: #1a1a1a !important;
    border:1px solid var(--border);
    border-radius:12px;
    color:var(--text) !important;
    font-family: monospace;
    font-size:0.95rem;
}
.form-control:focus, textarea:focus {
    outline:none;
    border-color:var(--primary);
    box-shadow:0 0 0 3px rgba(99,102,241,0.2);
}

/* Button */
.btn {
    padding:12px 24px;
    border:none;
    border-radius:12px;
    font-weight:600;
    cursor:pointer;
    transition:var(--transition);
}
.btn-primary { background:var(--primary); color:white; }
.btn-primary:hover { background:var(--primary-hover); transform:translateY(-2px); }
.btn-danger { background:#ef4444; color:white; }
.btn-info { background:#0ea5e9; color:white; font-size:0.8rem; padding:6px 14px; }

/* Alert */
.alert {
    padding:16px;
    border-radius:12px;
    margin-bottom:24px;
    font-weight:500;
}
.alert-success { background:#064e3b; color:#6ee7b7; border:1px solid #065f46; }
.alert-error { background:#450a0a; color:#fca5a5; border:1px solid #7f1d1d; }

/* Quick Stats Grid */
.tool-card .grid {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
    gap:16px;
}
.tool-card .stat-box {
    text-align:center;
    padding:20px;
    background:#1a1a1a;
    border-radius:12px;
    border:1px solid var(--border);
}

/* Recent Check History (list-group-item) */
.list-group-item {
    background: var(--card) !important;
    border:1px solid var(--border) !important;
    border-radius:14px !important;
    padding:20px !important;
    margin-bottom:16px !important;
    transition:var(--transition);
}
.list-group-item:hover {
    background: var(--card-hover) !important;
    transform:translateY(-4px);
    box-shadow:0 12px 30px rgba(99,102,241,0.2);
}

/* Tombol Info (yang kamu tambah) */
.btn-info.info-btn {
    background:var(--primary);
    color:white;
    font-size:0.8rem;
    padding:6px 16px;
    border-radius:20px;
    font-weight:600;
}

/* Modal */
.modal-overlay {
    position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.7); display:none; align-items:center; justify-content:center; z-index:1000;
}
.modal-content {
    background:var(--card);
    padding:32px;
    border-radius:var(--radius);
    width:90%; max-width:500px;
    border:1px solid var(--border);
    box-shadow:var(--shadow);
    position:relative;
}
.modal-close { position:absolute; top:12px; right:16px; font-size:28px; cursor:pointer; color:#aaa; }
.modal-close:hover { color:white; }
.modal-table td {
    padding:10px 0;
    border-bottom:1px solid var(--border);
}
.modal-table td:first-child { font-weight:600; color:var(--text-muted); width:35%; }

/* Responsive */
@media (max-width:992px) {
    .sidebar { width:82px; }
    .sidebar-header h2, .sidebar-menu a span, .user-info p, .user-info span, .logout-btn span, .admin-badge { display:none; }
    .sidebar-menu a { justify-content:center; padding:22px; }
    .main-content { margin-left:82px; padding:24px; }
}