:root {
    --sidebar-width: 260px;
    --primary: #0d6efd;
}

body {
    background: #f4f6f9;
    overflow-x: hidden;
}

#wrapper {
    min-height: 100vh;
}

#sidebar-wrapper {
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    min-height: 100vh;
}

#page-content-wrapper {
    min-width: 0;
}

.sidebar-section {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    padding: 1rem 1rem 0.25rem;
}

.list-group-item.active {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
}

.card-stat {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.card-stat .icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.login-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
}

.login-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.table-actions .btn {
    padding: 0.15rem 0.4rem;
}

.rps-pertemuan-table {
    font-size: 0.78rem;
}

.rps-pertemuan-table th {
    vertical-align: middle;
    line-height: 1.25;
}

.rps-pertemuan-table td {
    vertical-align: top;
}

.rps-preview {
    font-size: 10px;
    color: #000;
}

.rps-preview .rps-title { text-align: center; font-weight: bold; font-size: 13px; }
.rps-preview .rps-subtitle { text-align: center; font-size: 12px; }
.rps-preview table.rps { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.rps-preview table.rps td,
.rps-preview table.rps th {
    border: 1px solid #000;
    padding: 4px 6px;
    vertical-align: top;
}
.rps-preview table.rps th { background: #f0f0f0; text-align: center; }
.rps-preview .section-h { font-weight: bold; margin: 10px 0 4px; }
.rps-preview table.minggu { font-size: 9px; }

@media (max-width: 768px) {
    #sidebar-wrapper {
        margin-left: calc(-1 * var(--sidebar-width));
        position: fixed;
        z-index: 1000;
        transition: margin 0.25s;
    }

    #wrapper.toggled #sidebar-wrapper {
        margin-left: 0;
    }
}
