/* --- iQIYI Light Admin Full CSS --- */
:root {
    --iq-green: #00d664;         /* Hijau iQIYI */
    --iq-bg-body: #f7f9fa;       /* Background utama */
    --iq-white: #ffffff;         /* Putih kartu */
    --iq-text-main: #1a1a1a;     /* Teks gelap tajam */
    --iq-text-muted: #8a919f;    /* Teks abu-abu */
    --iq-border: #eef0f2;        /* Garis pembatas */
    --iq-sidebar-width: 260px;

    --iq-light-green: #e6fffa;
}

/* Warna Utama Sekotak */
:root {
    --iq-green: #00d664;
    --iq-light-green: #e6fffa;
}

.iq-navbar {
    background: #fff;
    padding: 15px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.iq-logo {
    font-size: 24px;
    font-weight: 900;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.iq-nav-tools {
    display: flex;
    align-items: center;
    gap: 25px;
}

.btn-posting {
    color: var(--iq-green);
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.notif-badge-wrapper {
    position: relative;
    cursor: pointer;
    color: #555;
    font-size: 20px;
}

.badge-red {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #ff4d4f;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 50%;
    border: 2px solid #fff;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Public Sans', 'Inter', sans-serif;
    background-color: var(--iq-bg-body);
    color: var(--iq-text-main);
    line-height: 1.5;
}

/* --- LAYOUT UTAMA --- */
.layout-wrapper {
    display: flex;
    min-height: 100vh;
}

/* --- SIDEBAR (KIRI) --- */
.layout-menu {
    width: var(--iq-sidebar-width);
    background: var(--iq-white);
    height: 100vh;
    position: fixed;
    border-right: 1px solid var(--iq-border);
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.app-brand {
    padding: 1.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--iq-green);
    text-decoration: none;
    display: block;
}
.app-brand span { color: #000; }

.menu-inner {
    list-style: none;
    padding: 0 1rem;
    margin: 1rem 0;
    flex-grow: 1;
}

.menu-header {
    padding: 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--iq-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu-item { margin-bottom: 4px; }
.menu-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--iq-text-main);
    text-decoration: none;
    border-radius: 12px;
    transition: 0.2s;
}

.menu-link i { margin-right: 0.8rem; width: 20px; text-align: center; }

.menu-item.active .menu-link {
    background-color: rgba(0, 214, 100, 0.1);
    color: var(--iq-green);
    font-weight: 600;
}

.menu-link:hover:not(.active) {
    background-color: #f0f2f5;
}

/* --- AREA KONTEN (KANAN) --- */
.layout-page {
    flex: 1;
    margin-left: var(--iq-sidebar-width); /* Agar konten tidak tertutup sidebar */
    display: flex;
    flex-direction: column;
}

.layout-navbar {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--iq-border);
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
}

.content-wrapper {
    padding: 2rem;
}

/* --- KOMPONEN KARTU & DASHBOARD --- */
.row { display: flex; gap: 1.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }

.card {
    background: var(--iq-white);
    border-radius: 16px;
    padding: 1.5rem;
    flex: 1;
    min-width: 250px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--iq-border);
}

.card h5 { margin: 0 0 0.5rem 0; font-size: 1.1rem; }
.card p { margin: 0; color: var(--iq-text-muted); }

/* --- FORM & TOMBOL --- */
.form-group { margin-bottom: 1.2rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--iq-border);
    border-radius: 10px;
    background: #fcfdfe;
}
.form-control:focus {
    outline: none;
    border-color: var(--iq-green);
    box-shadow: 0 0 0 3px rgba(0, 214, 100, 0.1);
}

.btn-iq {
    background: var(--iq-green);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

/* --- NOTIFIKASI / ALERT --- */
.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}
.alert-success { background: #e6fffa; color: #00a389; border: 1px solid #b2f5ea; }
.alert-danger { background: #fff5f5; color: #e53e3e; border: 1px solid #feb2b2; }

/* Container Utama */
.iq-content { padding: 20px; }

.iq-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.iq-page-title { font-weight: 800; font-size: 24px; color: #1a1a1a; }

.btn-iq-primary {
    background: #00d664;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

/* --- GRID SYSTEM --- */
.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Ini yang bikin kotak sampingan */
    gap: 20px;
}

/* --- CARD DESIGN --- */
.user-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    overflow: hidden;
    transition: 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.user-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.card-top { padding: 30px 20px; text-align: center; }

.avatar-box {
    width: 65px;
    height: 65px;
    background: #f0fff4;
    color: #00d664;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 2px solid #00d664;
}

.username-text { margin: 0 0 10px; font-size: 16px; font-weight: 700; color: #333; }

.role-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #f5f5f5;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #888;
}

.role-badge.is-admin { background: #e6fffa; color: #00d664; }

.card-info-list { padding: 0 20px 20px; }
.info-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.info-row .label { color: #999; }
.status-active { color: #00d664; font-weight: 700; }

/* --- BUTTONS --- */
.card-actions-box {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: #fafafa;
}

.btn-action {
    flex: 1;
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.btn-action.edit { background: #fff; color: #333; border: 1px solid #ddd; }
.btn-action.delete { background: #fff5f5; color: #ff4d4f; }

/* --- EDIT PAGE STYLES --- */
.iq-card-form {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    max-width: 600px;
    margin-top: 20px;
    border: 1px solid #f0f0f0;
}

.form-body { padding: 30px; }

.user-preview-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.avatar-static {
    width: 60px;
    height: 60px;
    background: #e6fffa;
    color: #00d664;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    border-radius: 15px;
}

.user-meta h4 { margin: 0; font-size: 18px; color: #333; }
.user-meta span { font-size: 13px; color: #999; }

.divider { border: 0; border-top: 1px solid #f0f0f0; margin: 25px 0; }

.iq-form-group { margin-bottom: 20px; }
.iq-label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 14px; color: #555; }

.input-with-icon { position: relative; }
.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #00d664;
}

.iq-control {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1.5px solid #eee;
    border-radius: 12px;
    background: #fafafa;
    font-size: 15px;
    transition: 0.3s;
    outline: none;
}

.iq-control:focus {
    background: #fff;
    border-color: #00d664;
    box-shadow: 0 0 0 4px rgba(0, 214, 100, 0.1);
}

.btn-iq-save {
    width: 100%;
    background: #00d664;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-iq-save:hover { background: #00b353; transform: translateY(-2px); }

.btn-iq-back {
    text-decoration: none;
    color: #888;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
}
.btn-iq-back:hover { color: #00d664; }