:root {
    --kobana-primary: #d9232d;
    --kobana-primary-hover: #b81c24;
    --kobana-accent: #f89d13;
    --kobana-dark: #1e2124;
    --kobana-sidebar-bg: #212529;
    --kobana-sidebar-color: #dee2e6;
    --kobana-sidebar-active: #d9232d;
    --kobana-card-bg: #ffffff;
    --kobana-bg: #f4f6f9;
}

body {
    background-color: var(--kobana-bg);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
    color: #333;
    min-height: 100vh;
}

/* Sidebar Styles */
#sidebar-wrapper {
    min-height: 100vh;
    width: 260px;
    background-color: var(--kobana-sidebar-bg);
    color: var(--kobana-sidebar-color);
    transition: margin 0.25s ease-out;
    z-index: 1000;
}

.brand-section {
    padding: 1.25rem 1.5rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-badge {
    background: linear-gradient(135deg, var(--kobana-primary), var(--kobana-accent));
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.sidebar-heading {
    padding: 0.85rem 1.25rem 0.35rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: #8c98a4;
}

.sidebar-menu {
    padding: 0.5rem 0.75rem;
}

.sidebar-menu .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.9rem;
    border-radius: 8px;
    color: #b0bac5;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    transition: all 0.2s ease;
}

.sidebar-menu .nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
}

.sidebar-menu .nav-link.active {
    color: #ffffff;
    background-color: var(--kobana-sidebar-active);
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(217, 35, 45, 0.35);
}

.sidebar-menu .nav-link i {
    font-size: 1.15rem;
}

/* Main Content Area */
#page-content-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.main-navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e9ecef;
    padding: 0.75rem 1.5rem;
}

.main-container {
    padding: 1.5rem;
    flex: 1;
}

/* Card Improvements */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid #f0f2f5;
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.stat-card {
    border-radius: 12px;
    border: none;
    overflow: hidden;
    position: relative;
}

.stat-card .stat-icon {
    position: absolute;
    right: 1.25rem;
    top: 1.25rem;
    font-size: 2.5rem;
    opacity: 0.18;
}

/* Badge Styling */
.badge-role-admin {
    background-color: #d9232d;
    color: #fff;
}
.badge-role-kasir {
    background-color: #0d6efd;
    color: #fff;
}
.badge-role-owner {
    background-color: #198754;
    color: #fff;
}

/* Table Styling */
.table {
    vertical-align: middle;
}
.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
}

/* Buttons */
.btn-primary {
    background-color: var(--kobana-primary);
    border-color: var(--kobana-primary);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--kobana-primary-hover);
    border-color: var(--kobana-primary-hover);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    #sidebar-wrapper {
        display: none;
    }
}
