/* ============================
    ADMINITY THEME UPGRADE
============================= */

:root {
    --primary: #4a6cf7;
    --primary-dark: #3952c2;
    --bg: #f2f4f7;
    --sidebar-bg: #ffffff;
    --text: #333;
    --muted: #777;
    --danger: #e53935;
    --radius: 12px;
    --shadow: 0 6px 20px rgba(0,0,0,0.06);
    --transition: .25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
}

/* ============================
        SIDEBAR
============================= */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 240px;
    height: 100vh;
    background: var(--sidebar-bg);
    box-shadow: var(--shadow);
    padding: 25px 0;
}

.sidebar h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 22px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    padding: 14px 22px;
    cursor: pointer;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text);
    transition: var(--transition);
}

.sidebar ul li:hover,
.sidebar ul li.active {
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
}

/* ============================
        TOPBAR
============================= */
.topbar {
    margin-left: 240px;
    height: 68px;
    background: #fff;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
}

.brand {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-actions input {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* ============================
        BUTTON
============================= */
.btn {
    padding: 8px 12px;
    border-radius: 8px;
    background: var(--primary);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background: var(--primary-dark);
}

.danger {
    background: var(--danger);
}

.link-btn {
    border: none;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
}

/* ============================
        LAYOUT / PANEL
============================= */
.container {
    margin-left: 260px;
    padding: 25px;
}

.panel {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
}

.table th, .table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

/* ============================
        AUTH PAGE
============================= */
.auth-page {
    height: 100vh;
    background: linear-gradient(rgba(38,55,228,0.15), rgba(38,55,228,0.15)),
                url('https://images.unsplash.com/photo-1521791136064-7986c2920216?auto=format&fit=crop&q=60&w=1200');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: 380px;
    background: #fff;
    padding: 28px;
    border-radius: 14px;
    box-shadow: var(--shadow);
    text-align: center;
}

.auth-card h1 {
    color: var(--primary);
    margin-bottom: 18px;
}

.auth-card input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* ============================
        MODAL
============================= */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-card {
    width: 420px;
    background: #fff;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.modal-card input,
.modal-card select {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 10px;
}

/* ============================
   COLLAPSIBLE SIDEBAR
============================= */

.sidebar {
    transition: width 0.25s ease;
    overflow: hidden;
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar.collapsed ul li {
    text-align: center;
    padding: 14px 0;
}

.sidebar.collapsed h2 {
    font-size: 0;
    height: 0;
    overflow: hidden;
}

/* ikon kecil ketika collapsed */
.sidebar ul li .icon {
    display: inline-block;
    width: 20px;
    margin-right: 10px;
}

.sidebar.collapsed ul li .text {
    display: none;
}

