
/* =========================
   GLOBAL BASE
========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: #eef2f7;
    font-size: 14px;
    font-family: Arial, sans-serif;
    color: #333;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

/* =========================
   TYPOGRAPHY
========================= */

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 600;
}

/* =========================
   DASHBOARD LAYOUT (FIXED FLEX)
========================= */

.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

/* =========================
   SIDEBAR
========================= */

.sidebar {
    width: 240px;
    flex-shrink: 0;
    background: #111827;
    padding: 20px 15px;
    overflow-y: auto;
    z-index: 1000;
}

/* scrollbar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.15);
    border-radius: 10px;
}

/* logo */
.sidebar h5 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 30px;
}

/* menu list */
.sidebar .list-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* menu item */
.sidebar .list-group-item {
    background: transparent !important;
    border: none !important;
    color: #cbd5e1 !important;
    padding: 13px 15px;
    border-radius: 12px !important;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all .15s ease;
}

/* icon */
.sidebar .list-group-item i {
    width: 18px;
    margin-right: 10px;
    font-size: 16px;
    text-align: center;
}

/* hover */
.sidebar .list-group-item:hover {
    background: rgba(255,255,255,.06) !important;
    color: #fff !important;
    transform: translateX(3px);
}

/* active */
.sidebar .list-group-item.active {
    background: #2563eb !important;
    color: #fff !important;
    font-weight: 600;
    border-left: 4px solid #60a5fa;
    padding-left: 11px;
    box-shadow: 0 4px 12px rgba(37,99,235,.25);
}

/* =========================
   MAIN CONTENT (FIXED)
========================= */

.main,
.content,
.main-content {
    flex: 1;
    min-width: 0;
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
    background: #eef2f7;
}

/* =========================
   TOPBAR
========================= */

.topbar {
    background: #fff;
    padding: 15px 20px;
    border-radius: 14px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    position: sticky;
    top: 0;
    z-index: 900;
}

/* =========================
   CARD
========================= */

.card,
.card-box {
    border: none !important;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    transition: transform .15s ease, box-shadow .15s ease;
}

.card:hover,
.card-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,.10);
}



/* =========================
   TABLE
========================= */

.table {
    margin-bottom: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.table thead th {
    background: #f8f9fa;
    font-size: 13px;
    border-bottom: 1px solid #eee;
}

.table-responsive {
    border-radius: 12px;
    overflow-x: auto;
}

/* =========================
   BUTTON
========================= */

.btn {
    border-radius: 10px;
}

.btn-primary {
    box-shadow: 0 3px 10px rgba(13,110,253,.25);
}

.btn .btn-icon {
    font-size: 14px;
}

.btn .btn-text {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .3px;
}

/* =========================
   FORM
========================= */

.form-control,
.form-select {
    border-radius: 10px;
    font-size: 14px;
}

.form-control:focus,
.form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 .2rem rgba(13,110,253,.15);
}

/* =========================
   BADGE
========================= */

.badge {
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 12px;
}

/* =========================
   ALERT
========================= */

.alert {
    border: none;
    border-radius: 12px;
    padding: 12px 15px;
}

/* =========================
   PAGINATION
========================= */

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 20px;
}

/* =========================
   FOOTER
========================= */

footer {
    margin-top: 30px;
    text-align: center;
    font-size: 13px;
    color: #888;
}



/* =========================
   ARTIKEL
========================= */

.article-content{
    font-size:14px;
    line-height:1.7;
    color:#2b2b2b;
    max-width: 820px;
    margin: 0 auto;
    padding: 20px 30px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* ISOLATE EDITOR STYLE */

.note-editable {
    background: #fff;
    font-family: Arial;
    font-size: 14px;
}

/* HEADINGS */
.article-content h1{
    margin-top:30px;
    margin-bottom:20px;
    font-size:28px;
    font-weight:800;
    letter-spacing:-0.5px;
    color:#111;
    line-height:1.2;
}

.article-content h2{
    margin-top:30px;
    margin-bottom:18px;
    font-size:26px;
    font-weight:800;
    color:#1a1a1a;
    position: relative;
    padding-left: 14px;
}

.article-content h2::before{
    content:"";
    position:absolute;
    left:0;
    top:6px;
    width:4px;
    height:70%;
    background: linear-gradient(180deg,#0d6efd,#6ea8fe);
    border-radius: 4px;
}

.article-content h3{
    margin-top:25px;
    margin-bottom:14px;
    font-size:22px;
    font-weight:700;
    color:#222;
}

.article-content h4{
    font-size: 18px;
    margin: 14px 0 8px;
    font-weight: 600;
}


/* PARAGRAPH */
.article-content p{
    margin-bottom:10px;
    color:#444;
}
/* IMAGE */
.article-content img{
    max-width:100%;
    height:auto;
    border-radius:14px;
    margin:30px 0;
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-content img:hover{
    transform: scale(1.01);
    box-shadow: 0 18px 35px rgba(0,0,0,0.12);
}

/* LIST */
.article-content ul,
.article-content ol{
    margin-bottom:24px;
    padding-left:22px;
}

.article-content ul li,
.article-content ol li{
    margin-bottom:10px;
}

/* BLOCKQUOTE */
.article-content blockquote{
    background: linear-gradient(135deg,#f8f9fa,#ffffff);
    border-left:5px solid #0d6efd;
    padding:22px;
    margin:30px 0;
    border-radius:12px;
    color:#333;
    box-shadow: 0 8px 18px rgba(0,0,0,0.04);
    font-style: italic;
}

/* TABLE */
.article-content table{
    width:100%;
    margin:25px 0;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.article-content table th{
    background:#0d6efd;
    color:white;
    text-align:left;
}

.article-content table td,
.article-content table th{
    border:1px solid #eee;
    padding:12px 14px;
}

/* HOVER ROW */
.article-content table tr:hover{
    background:#f6f9ff;
}


/* =========================
   MOBILE FIX (FINAL)
========================= */

@media (max-width: 768px) {

    .dashboard-wrapper {
        flex-direction: column;
    }

    .sidebar {
        display: none; /* ❌ sembunyikan sidebar di mobile */
    }

    .main,
    .content,
    .main-content {
        padding: 15px;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }


    /* Artikel Mobile */

    .article-content{
    font-size:13px;
    padding: 0px 0px;
    line-height:1.6;
    color:#333;
    }

    .article-content h1{
        margin-top:24px;
        margin-bottom:16px;
        font-size:24px;
        line-height:1.3;
        font-weight:700;
    }

    .article-content h2{
        margin-top:14px;
        margin-bottom:14px;
        font-size:18px;
        line-height:1.3;
        font-weight:700;
    }

    .article-content h3{
        margin-top:14px;
        margin-bottom:12px;
        font-size:16px;
        line-height:1.3;
        font-weight:600;
    }

    .article-content p{
        margin-bottom:12px;
    }

    .article-content ul,
    .article-content ol{
        margin-bottom:18px;
        padding-left:22px;
    }

    .article-content img{
        max-width:100%;
        height:auto;
        border-radius:12px;
        margin:20px 0;
    }



    .article-content blockquote{
        background:#f8f9fa;
        border-left:4px solid #0d6efd;
        padding:16px;
        margin:20px 0;
        border-radius:10px;
    }

    .article-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .article-content table td,
    .article-content table th{
        border:1px solid #ddd;
        padding:10px;
    }
}

/* =========================
   INFO BOX
========================= */

.info-box{
    margin:20px 0;
    border:1px solid #dbeafe;
    border-radius:10px;
    background:#eff6ff;
    overflow:hidden;
}

.info-box summary{
    cursor:pointer;
    padding:15px;
    font-weight:600;
    color:#1e40af;
    list-style:none;
}

.info-box summary::-webkit-details-marker{
    display:none;
}

.info-box summary::after{
    content:'-';
    float:right;
    font-size:12px;
}

.info-box[close] summary::after{
    content:'+';
}

.info-content{
    padding:0 15px 15px;
}

/* =========================
   BOOTSTRAP & SUMMERNOTE
========================= */

/* Bootstrap modal */
.modal-backdrop {
    z-index: 1040;
}

.modal {
    z-index: 1050;
}

/* Summernote modal (HARUS LEBIH TINGGI) */
.note-modal-backdrop {
    z-index: 1070 !important;
}

.note-modal {
    z-index: 1080 !important;
}

/* editor toolbar */
.note-editor,
.note-toolbar {
    z-index: 1060 !important;
}