/* Restoran White-Label / SaaS - Pure Blade Custom Stylesheet */
:root {
    --ceu-primary: #ea580c;
    --ceu-primary-hover: #c2410c;
    --ceu-primary-light: #fff7ed;
    --ceu-primary-glow: rgba(234, 88, 12, 0.18);
    
    --ceu-sidebar-bg: #111827;
    --ceu-sidebar-hover: rgba(255, 255, 255, 0.08);
    --ceu-sidebar-active: #ea580c;
    
    --ceu-body-bg: #f8fafc;
    --ceu-card-bg: #ffffff;
    --ceu-border: #e2e8f0;
    --ceu-text-main: #0f172a;
    --ceu-text-muted: #64748b;
}

[data-bs-theme="light"], body {
    background-color: var(--ceu-body-bg) !important;
    color: var(--ceu-text-main) !important;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Sidebar Overrides for Sleek Look */
.app-sidebar {
    background-color: var(--ceu-sidebar-bg) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-brand {
    background-color: #0b0f19 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 1rem 1.25rem !important;
}

.sidebar-menu .nav-link {
    color: #94a3b8 !important;
    border-radius: 0.5rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.15s ease;
    margin-bottom: 0.2rem;
}

.sidebar-menu .nav-link:hover {
    color: #ffffff !important;
    background-color: var(--ceu-sidebar-hover) !important;
}

.sidebar-menu .nav-link.active {
    color: #ffffff !important;
    background-color: var(--ceu-sidebar-active) !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
}

.nav-header {
    color: #64748b !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    padding: 1rem 0.85rem 0.35rem !important;
}

/* Top Navbar */
.app-header {
    background-color: #ffffff !important;
    border-bottom: 1px solid var(--ceu-border) !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04) !important;
}

/* Main Content Area */
.app-main {
    background-color: var(--ceu-body-bg) !important;
    padding-bottom: 3rem;
}

/* Cards & Widgets */
.card-proposal {
    background: #ffffff !important;
    border: 1px solid var(--ceu-border) !important;
    border-radius: 0.875rem !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    transition: box-shadow 0.2s ease;
}

.card-proposal:hover {
    box-shadow: 0 6px 16px -2px rgba(0, 0, 0, 0.08) !important;
}

/* Role Badges */
.badge-superadmin { background-color: #7c3aed !important; color: #fff !important; }
.badge-owner { background-color: #0f172a !important; color: #fbbf24 !important; border: 1px solid #334155; }
.badge-admin { background-color: #dc2626 !important; color: #fff !important; }
.badge-manager { background-color: #ea580c !important; color: #fff !important; }
.badge-kasir { background-color: #2563eb !important; color: #fff !important; }
.badge-gudang { background-color: #0891b2 !important; color: #fff !important; }
.badge-chef { background-color: #16a34a !important; color: #fff !important; }

/* Status Badges */
.badge-tercapai {
    background-color: #dcfce7 !important;
    color: #15803d !important;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 0.375rem;
}

.badge-hampir {
    background-color: #fef3c7 !important;
    color: #b45309 !important;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 0.375rem;
}

/* Standard Button Overrides */
.btn-primary {
    background-color: var(--ceu-primary) !important;
    border-color: var(--ceu-primary) !important;
    color: #ffffff !important;
    font-weight: 600;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--ceu-primary-hover) !important;
    border-color: var(--ceu-primary-hover) !important;
    color: #ffffff !important;
}
.btn-outline-primary {
    color: var(--ceu-primary) !important;
    border-color: var(--ceu-primary) !important;
    font-weight: 600;
}
.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
    background-color: var(--ceu-primary) !important;
    border-color: var(--ceu-primary) !important;
    color: #ffffff !important;
}

/* Standard Card Header */
.card-header-standard {
    background-color: #ffffff !important;
    border-bottom: 1px solid var(--ceu-border) !important;
    padding: 1rem 1.25rem !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.card-header-standard .card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ceu-text-main);
    margin-bottom: 0;
}

/* DataTables Standard Overrides */
div.dataTables_wrapper {
    padding: 1rem 1.25rem;
}

div.dataTables_wrapper .dataTables_length label {
    font-size: 0.85rem;
    color: var(--ceu-text-muted);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

div.dataTables_wrapper .dataTables_length select {
    border-radius: 0.375rem;
    border: 1px solid var(--ceu-border);
    padding: 0.25rem 2rem 0.25rem 0.5rem;
    font-size: 0.85rem;
}

div.dataTables_wrapper .dataTables_filter label {
    font-size: 0.85rem;
    color: var(--ceu-text-muted);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

div.dataTables_wrapper .dataTables_filter input {
    border-radius: 0.375rem;
    border: 1px solid var(--ceu-border);
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    box-shadow: none;
    outline: none;
}

div.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--ceu-primary);
    box-shadow: 0 0 0 2px var(--ceu-primary-glow);
}

div.dataTables_wrapper .dataTables_info {
    font-size: 0.82rem;
    color: var(--ceu-text-muted);
    padding-top: 1rem;
}

div.dataTables_wrapper .dataTables_paginate {
    padding-top: 0.75rem;
}

div.dataTables_wrapper .pagination .page-item .page-link {
    font-size: 0.82rem;
    color: var(--ceu-text-main);
    border-color: var(--ceu-border);
    border-radius: 0.375rem;
    margin: 0 2px;
}

div.dataTables_wrapper .pagination .page-item.active .page-link {
    background-color: var(--ceu-primary) !important;
    border-color: var(--ceu-primary) !important;
    color: #ffffff !important;
}

table.dataTable.no-footer {
    border-bottom: 1px solid var(--ceu-border) !important;
}

table.dataTable thead th {
    border-bottom: 1px solid var(--ceu-border) !important;
    font-weight: 600;
}

/* ========================================================
   AUTH SYSTEM - RESTORAN CEU EMI LUXURY PORTAL
   ======================================================== */
.auth-body {
    background: radial-gradient(circle at 10% 20%, #1e293b 0%, #0f172a 90%);
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
    margin: 0;
    padding: 0;
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 10% 20%, #1e293b 0%, #0f172a 90%);
    padding: 2.5rem 1rem;
    width: 100%;
    box-sizing: border-box;
}

.auth-container {
    width: 100%;
    max-width: 1060px;
    background: #ffffff;
    border-radius: 1.25rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-hero-side {
    background: linear-gradient(145deg, #18191d 0%, #262930 100%);
    color: #ffffff;
    padding: 3.5rem 3rem;
    position: relative;
    overflow: hidden;
}

.auth-hero-side::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(234, 88, 12, 0.35) 0%, rgba(234, 88, 12, 0) 70%);
    pointer-events: none;
}

.auth-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(234, 88, 12, 0.15);
    border: 1px solid rgba(234, 88, 12, 0.3);
    color: #fb923c;
    padding: 0.35rem 0.85rem;
    border-radius: 50rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.brand-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 8px 18px -4px rgba(234, 88, 12, 0.5);
    flex-shrink: 0;
}

.feature-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.feature-pill:hover {
    background: rgba(255, 255, 255, 0.09);
    transform: translateX(4px);
}

.auth-form-side {
    padding: 3rem 2.75rem;
    background: #ffffff;
}

@media (max-width: 991.98px) {
    .auth-hero-side {
        display: none !important;
    }
    .auth-form-side {
        padding: 2.25rem 1.5rem;
    }
}

/* Custom Input Group Styles */
.custom-input-group {
    display: flex;
    align-items: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.45rem 0.85rem;
    background-color: #f8fafc;
    transition: all 0.2s ease;
}

.custom-input-group:focus-within {
    border-color: #ea580c;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

.custom-input-group .input-icon {
    color: #94a3b8;
    margin-right: 0.75rem;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.custom-input-group:focus-within .input-icon {
    color: #ea580c;
}

.custom-input-group input {
    border: none !important;
    background: transparent !important;
    padding: 0.35rem 0 !important;
    width: 100%;
    outline: none !important;
    font-size: 0.925rem;
    color: #0f172a;
    font-family: inherit;
    box-shadow: none !important;
}

.custom-input-group input::placeholder {
    color: #94a3b8;
}

/* Role Chip Buttons */
.role-chip {
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    border-radius: 0.65rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #334155;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    transition: all 0.15s ease;
    width: 100%;
    user-select: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.role-chip:hover {
    border-color: #ea580c;
    background: #fff7ed;
    color: #c2410c;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(234, 88, 12, 0.15);
}

.role-chip.active {
    border-color: #ea580c;
    background: #ffedd5;
    color: #9a3412;
    box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.25);
}

.role-chip .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Primary Button for Auth & Portal */
.btn-ceu {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    color: #ffffff !important;
    border: none;
    font-weight: 600;
    border-radius: 0.75rem;
    padding: 0.75rem 1.25rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-ceu:hover {
    background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(234, 88, 12, 0.45);
}

.btn-ceu:active {
    transform: translateY(0);
}

/* Simple Auth Card for Register, Forgot Password, etc. */
.auth-simple-card {
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 2.5rem 2.25rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

