
/* ===== SIDEBAR & CARD ===== */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}
.card-header {
    font-weight: 600;
    background-color: #ffffff;
    border-bottom: 1px solid #d9e6f2;
}
.offcanvas-header {
    background: #0a2a44;
    color: white;
}
.offcanvas-start {
    width: 280px !important;
}

/* Sidebar links */
.list-unstyled a {
    transition: color 0.2s;
}
.list-unstyled a:hover {
    color: #1e5a8b !important;
}

/* Sticky */
.sticky-top {
    z-index: 1020;
}


.sidebar-modern {
    position: sticky;
    top: 20px;
}

.sidebar-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.sidebar-header {
    background: linear-gradient(135deg, #0F7EA6, #028ABD);
    border: none;
    padding: 16px 20px;
    font-weight: 600;
    font-size: 1.1rem;
}

.sidebar-body {
    padding: 20px;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-item {
    margin-bottom: 12px;
    position: relative;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #2d3436;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    background: #f8f9fa;
}

.sidebar-link:hover {
    background: linear-gradient(135deg, #29799E, #106085);
    color: white;
    transform: translateX(5px);
}

.sidebar-link i {
    width: 20px;
    text-align: center;
    margin-right: 12px;
    transition: transform 0.3s ease;
}

.sidebar-link:hover i {
    transform: scale(1.2);
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    margin-bottom: 8px;
}

.category-link {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #2d3436;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.category-link:hover {
    background-color: #f1f2f6;
    color: #6c5ce7;
}

.recent-post {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f2f6;
}

.recent-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post a {
    color: #2d3436;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    display: block;
    margin-bottom: 4px;
}

.recent-post a:hover {
    color: #6c5ce7;
}

.post-date {
    font-size: 0.85rem;
    color: #636e72;
}

.admin-badge {
    background: linear-gradient(135deg, #fdcb6e, #ffeaa7);
    color: #2d3436;
}

/* Animasi untuk menu aktif */
.sidebar-link.active {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    color: white;
}

/* Efek untuk card admin */
.admin-card .sidebar-link:hover {
    background: linear-gradient(135deg, #fdcb6e, #ffeaa7);
    color: #2d3436;
}
