/* ============================================
   Warung Pancong Bahagia - Custom CSS
   Vintage / Retro Theme
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Shrikhand&family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --navy: #1a2744;
    --navy-dark: #121c33;
    --navy-light: #2a3d5e;
    --cream: #f6ebd3;
    --cream-light: #faf6e9;
    --cream-dark: #e8dfc4;
    --red: #d42b2b;
    --red-dark: #b71c1c;
    --red-light: #ef5350;
    --gold: #c4952a;
    --white: #ffffff;
    --text-dark: #1a2744;
    --text-muted: #6b7b95;
    --border-color: #d4c9a8;
    --success: #2e7d32;
    --warning: #f57f17;
    --danger: #d32f2f;
    
    /* Sizes */
    --sidebar-width: 220px;
    --header-stripe-height: 18px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 12px 36px rgba(0,0,0,0.15);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--cream);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================
   TOP AWNING STRIPE DECORATION (Matching Mockup)
   ============================================ */
.top-stripe, .top-awning-stripe {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 18px;
    background: repeating-linear-gradient(
        90deg,
        #1a2744 0px,
        #1a2744 22px,
        #d73229 22px,
        #d73229 44px,
        transparent 44px,
        transparent 66px
    );
    z-index: 9999;
}

.page-brand {
    font-family: 'Shrikhand', cursive, serif;
    font-size: 32px;
    color: #1a2744;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    font-weight: normal;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    position: fixed;
    left: 0;
    top: var(--header-stripe-height);
    bottom: 0;
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: var(--cream);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
    transition: var(--transition);
}

.sidebar-logo {
    padding: 22px 18px 14px;
    text-align: center;
}

.sidebar-logo img {
    max-width: 145px;
    width: 100%;
    height: auto;
    border-radius: 14px;
    object-fit: contain;
    filter: drop-shadow(0 6px 16px rgba(0,0,0,0.35));
    transition: var(--transition);
    display: inline-block;
}

.sidebar-logo img:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 8px 22px rgba(0,0,0,0.45));
}

.sidebar-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 14px;
    margin-top: 12px;
    color: var(--cream);
    letter-spacing: 0.5px;
}

.sidebar-nav {
    flex: 1;
    padding: 10px 12px;
}

.sidebar-nav .nav-item {
    list-style: none;
    margin-bottom: 4px;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: rgba(245, 238, 214, 0.75);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.sidebar-nav .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: var(--red);
    border-radius: var(--border-radius);
    transition: width 0.3s ease;
    z-index: -1;
}

.sidebar-nav .nav-link:hover {
    color: var(--cream);
    background: rgba(255,255,255,0.08);
}

.sidebar-nav .nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    font-weight: 600;
    box-shadow: none;
    border-radius: 8px;
}

.sidebar-nav .nav-link i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar-footer .logout-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: rgba(245, 238, 214, 0.75);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.sidebar-footer .logout-link:hover {
    color: var(--red-light);
    background: rgba(255,255,255,0.05);
}

.sidebar-user {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-user .user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.sidebar-user .user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--cream);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 40px 36px 36px;
    min-height: calc(100vh - var(--header-stripe-height));
    margin-top: var(--header-stripe-height);
}

.page-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 32px;
    color: var(--navy);
    margin-bottom: 8px;
    font-style: italic;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--navy);
    margin-bottom: 24px;
    font-style: italic;
}

/* ============================================
   TOOLBAR / FILTER BAR
   ============================================ */
.toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.toolbar .search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
    max-width: 400px;
}

.toolbar .search-box input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--white);
    font-size: 13.5px;
    color: var(--text-dark);
    transition: var(--transition);
}

.toolbar .search-box input:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(26, 39, 68, 0.1);
}

.toolbar .search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

.toolbar select {
    padding: 10px 36px 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--white);
    font-size: 13.5px;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7b95' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.toolbar select:focus {
    outline: none;
    border-color: var(--navy);
}

.toolbar .btn-add {
    margin-left: auto;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary-custom {
    background: var(--navy);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary-custom:hover {
    background: var(--navy-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.btn-red {
    background: var(--red);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-red:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--border-color);
    padding: 8px 18px;
    border-radius: var(--border-radius);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.btn-outline:hover {
    border-color: var(--navy);
    background: rgba(26, 39, 68, 0.05);
    color: var(--navy);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

.btn-edit {
    background: var(--white);
    color: var(--navy);
    border: 1.5px solid var(--navy);
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-edit:hover {
    background: var(--navy);
    color: var(--white);
}

.btn-hapus {
    background: var(--white);
    color: var(--red);
    border: 1.5px solid var(--red);
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-hapus:hover {
    background: var(--red);
    color: var(--white);
}

/* ============================================
   DATA TABLE
   ============================================ */
.data-table-wrapper {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    border: 1.5px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--navy);
}

.data-table thead th {
    color: var(--cream);
    padding: 14px 16px;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
    letter-spacing: 0.3px;
    cursor: pointer;
    user-select: none;
    position: relative;
}

.data-table thead th:hover {
    background: var(--navy-light);
}

.data-table thead th .sort-icon {
    margin-left: 4px;
    opacity: 0.5;
    font-size: 10px;
}

.data-table tbody tr {
    border-bottom: 1px solid #eee5cc;
    transition: var(--transition);
}

.data-table tbody tr:hover {
    background: rgba(245, 238, 214, 0.4);
}

.data-table tbody tr:last-child {
    border-bottom: none;
}

.data-table tbody td {
    padding: 14px 16px;
    font-size: 13.5px;
    vertical-align: middle;
}

.data-table .menu-name {
    font-weight: 600;
    color: var(--navy);
    display: block;
}

.data-table .menu-code {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

.data-table .status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-tersedia {
    background: rgba(46, 125, 50, 0.1);
    color: var(--success);
}

.status-habis {
    background: rgba(211, 47, 47, 0.1);
    color: var(--danger);
}

.data-table .stok-zero {
    color: var(--red);
    font-weight: 700;
}

.data-table .actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Table Footer */
.table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-top: 1px solid #eee5cc;
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 10px;
}

.table-footer .info-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pagination-btns {
    display: flex;
    gap: 4px;
}

.pagination-btns button {
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    background: var(--white);
    color: var(--text-dark);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.pagination-btns button:hover {
    border-color: var(--navy);
    background: rgba(26, 39, 68, 0.05);
}

.pagination-btns button.active {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

/* ============================================
   ALERT BANNER
   ============================================ */
.alert-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    margin-top: 16px;
    font-size: 13.5px;
    border-left: 4px solid;
    animation: slideUp 0.4s ease;
}

.alert-banner.alert-warning {
    background: #fff3e0;
    border-left-color: var(--warning);
    color: #e65100;
}

.alert-banner.alert-success {
    background: #e8f5e9;
    border-left-color: var(--success);
    color: #1b5e20;
}

.alert-banner.alert-danger {
    background: #ffebee;
    border-left-color: var(--danger);
    color: #b71c1c;
}

.alert-banner .alert-bold {
    font-weight: 700;
}

/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-box {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: #1a2744;
    color: #ffffff;
    border-top-left-radius: var(--border-radius-xl);
    border-top-right-radius: var(--border-radius-xl);
}

.modal-header h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 19px;
    color: #ffffff;
    font-style: normal;
}

.modal-header .modal-subtitle {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-style: normal;
    font-weight: 400;
    display: block;
    margin-top: 2px;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.modal-body {
    padding: 0 24px 24px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    padding: 0 24px 24px;
}

.modal-footer button, .modal-footer a {
    flex: 1;
    padding: 12px;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.form-control-custom {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    color: var(--text-dark);
    background: var(--white);
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(26, 39, 68, 0.1);
}

.form-control-custom:disabled,
.form-control-custom[readonly] {
    background: #f5f0e5;
    color: var(--text-muted);
    cursor: not-allowed;
}

.form-control-custom::placeholder {
    color: #b0a78e;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

.form-hint {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Radio buttons */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 6px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    cursor: pointer;
    font-size: 14px;
}

.radio-group input[type="radio"] {
    accent-color: var(--navy);
    width: 16px;
    height: 16px;
}

/* Input with prefix */
.input-prefix {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.input-prefix:focus-within {
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(26, 39, 68, 0.1);
}

.input-prefix .prefix {
    padding: 10px 12px;
    background: #f5f0e5;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    border-right: 1.5px solid var(--border-color);
}

.input-prefix input {
    flex: 1;
    border: none;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
}

.input-prefix input:focus {
    outline: none;
}

/* Select custom */
.select-custom {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    color: var(--text-dark);
    background: var(--white);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7b95' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
}

.select-custom:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(26, 39, 68, 0.1);
}

/* ============================================
   DELETE MODAL
   ============================================ */
.delete-modal-icon {
    text-align: center;
    padding: 16px 0;
}

.delete-modal-icon i {
    font-size: 48px;
    color: var(--warning);
}

.delete-modal-text {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}

.delete-modal-desc {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.delete-detail-box {
    background: #fff8f0;
    border: 1px solid #ffe0b2;
    border-left: 4px solid var(--red);
    border-radius: var(--border-radius);
    padding: 14px 18px;
    margin-bottom: 20px;
}

.delete-detail-box .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 13.5px;
}

.delete-detail-box .detail-row .label {
    color: var(--text-muted);
}

.delete-detail-box .detail-row .value {
    font-weight: 600;
    color: var(--navy);
}

/* ============================================
   REPORT / CHART CARDS
   ============================================ */
.report-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.report-filters .filter-btn {
    padding: 8px 20px;
    border: 2px solid var(--navy);
    border-radius: var(--border-radius);
    background: var(--white);
    color: var(--navy);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.report-filters .filter-btn.active {
    background: var(--navy);
    color: var(--white);
}

.report-filters .filter-btn:hover:not(.active) {
    background: rgba(26, 39, 68, 0.08);
}

.report-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.report-card {
    background: var(--white);
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.report-card h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--navy);
    margin-bottom: 16px;
    font-style: italic;
}

.chart-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.chart-tabs button {
    padding: 6px 16px;
    border: 1.5px solid var(--navy);
    border-radius: 20px;
    background: var(--white);
    color: var(--navy);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.chart-tabs button.active {
    background: var(--navy);
    color: var(--white);
}

.total-label {
    font-size: 13px;
    color: var(--text-muted);
}

.total-value {
    font-size: 28px;
    font-weight: 900;
    color: var(--red);
    font-family: 'Playfair Display', serif;
}

.chart-container {
    position: relative;
    height: 250px;
    margin-top: 16px;
}

/* Top Selling Items */
.top-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0ebe0;
}

.top-item:last-child {
    border-bottom: none;
}

.top-item .item-name {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--navy);
    flex: 1;
}

.top-item .item-bar {
    width: 50px;
    height: 20px;
    background: linear-gradient(90deg, var(--navy), var(--navy-light));
    border-radius: 10px;
    margin: 0 12px;
}

.top-item .item-count {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    min-width: 30px;
    text-align: right;
}

/* ============================================
   CARD GENERIC
   ============================================ */
.card-custom {
    background: var(--white);
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 14px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 300px;
    max-width: 420px;
    animation: slideIn 0.4s ease;
    border-left: 4px solid;
}

.toast.toast-success {
    border-left-color: var(--success);
}

.toast.toast-error {
    border-left-color: var(--danger);
}

.toast.toast-warning {
    border-left-color: var(--warning);
}

.toast .toast-message {
    flex: 1;
    font-size: 13.5px;
    font-weight: 500;
}

.toast .toast-close {
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 16px;
    padding: 4px;
}

/* ============================================
   PESANAN / ORDER STYLES
   ============================================ */
.order-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.order-status.status-menunggu {
    background: #fff3e0;
    color: #e65100;
}

.order-status.status-diproses {
    background: #e3f2fd;
    color: #1565c0;
}

.order-status.status-selesai {
    background: #e8f5e9;
    color: #2e7d32;
}

.order-status.status-dibatalkan {
    background: #ffebee;
    color: #c62828;
}

/* ============================================
   SETTING CARDS
   ============================================ */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.setting-group {
    background: var(--white);
    border: 1.5px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
}

.setting-group h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--navy);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--cream-dark);
    font-style: italic;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 24px;
    transition: var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: var(--transition);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--navy);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
.mobile-toggle {
    display: none;
    position: fixed;
    top: 18px;
    left: 12px;
    z-index: 9998;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: none;
    background: var(--navy);
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: 30px 20px;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .report-grid {
        grid-template-columns: 1fr;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .toolbar .search-box {
        max-width: 100%;
    }
    
    .toolbar .btn-add {
        margin-left: 0;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .data-table-wrapper {
        overflow-x: auto;
    }
    
    .table-footer {
        flex-direction: column;
        text-align: center;
    }
    
    .page-brand {
        font-size: 24px;
    }
    
    .page-title {
        font-size: 20px;
    }
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(26, 39, 68, 0.2);
    border-top-color: var(--navy);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-state h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--navy);
}

.empty-state p {
    font-size: 14px;
}

/* ============================================
   LANDING PAGE LOGIN (Matches Image 2 Mockup)
   ============================================ */
.landing-login-body {
    background-color: #f7eed8;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px 20px;
    position: relative;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.landing-main-wrapper {
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
    padding: 20px 0;
    z-index: 2;
}

.landing-grid-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.brand-showcase-column {
    flex: 1;
    max-width: 480px;
}

.brand-logo-frame {
    margin-bottom: 24px;
}

.landing-hero-logo {
    max-width: 240px;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.06));
}

.brand-headline {
    font-family: 'Shrikhand', cursive, sans-serif;
    font-size: 42px;
    color: #1a2744;
    line-height: 1.15;
    margin-bottom: 18px;
    font-weight: normal;
}

.brand-location-desc {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14.5px;
    color: #1a2744;
    line-height: 1.55;
    margin-bottom: 24px;
    max-width: 380px;
    font-weight: 500;
}

.menu-pills-row {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.pill-chip {
    display: inline-block;
    padding: 8px 18px;
    border: 2.5px solid #1a2744;
    border-radius: 9999px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 13.5px;
    color: #1a2744;
    background: transparent;
    white-space: nowrap;
    transition: var(--transition);
}

.pill-chip:hover {
    background: #1a2744;
    color: #f7eed8;
}

/* Kolom Kanan: Card Login */
.login-form-column {
    flex: 1;
    max-width: 440px;
    display: flex;
    justify-content: flex-end;
}

.retro-login-box {
    background: #ffffff;
    border: 2px solid #1a2744;
    border-radius: 22px;
    box-shadow: 8px 8px 0px #1a2744;
    padding: 38px 34px;
    width: 100%;
    max-width: 440px;
}

.retro-box-heading {
    font-family: 'Shrikhand', cursive, sans-serif;
    font-size: 32px;
    color: #1a2744;
    margin-bottom: 22px;
    font-weight: normal;
}

.login-alert-danger {
    background: #ffebee;
    color: #c62828;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #ffcdd2;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
}

.retro-input-group {
    margin-bottom: 18px;
}

.retro-field-label {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1a2744;
    margin-bottom: 8px;
}

.retro-field-control {
    width: 100%;
    height: 48px;
    border: 2px solid #8b9cb0;
    border-radius: 10px;
    padding: 0 16px;
    font-size: 14.5px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #1a2744;
    background: #ffffff;
    outline: none;
    transition: all 0.2s ease;
}

.retro-field-control:focus {
    border-color: #1a2744;
    box-shadow: 0 0 0 3px rgba(26, 39, 68, 0.12);
}

.retro-password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.btn-eye-toggle {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: #6b7b95;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
}

.btn-retro-masuk-primary {
    width: 100%;
    height: 48px;
    background: #d73229;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 0px #a71e17;
    transition: all 0.15s ease;
    margin-top: 6px;
}

.btn-retro-masuk-primary:hover {
    background: #c3271f;
    transform: translateY(-1px);
    box-shadow: 0 5px 0px #a71e17;
}

.btn-retro-masuk-primary:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0px #a71e17;
}

.login-demo-helper {
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px dashed #d4c9a8;
}

.demo-helper-title {
    font-size: 11.5px;
    color: #6b7b95;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.demo-quick-buttons {
    display: flex;
    gap: 8px;
}

.btn-demo-badge {
    flex: 1;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: #faf6e9;
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-demo-badge:hover {
    background: #f0e6c8;
}

/* ============================================
   PAYMENT TABLE BUTTONS (Matching Mockup Image 3)
   ============================================ */
.btn-konfirmasi-bayar {
    background: #d42b2b;
    color: #ffffff;
    border: none;
    padding: 7px 18px;
    border-radius: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
}

.btn-konfirmasi-bayar:hover {
    background: #b71c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(212, 43, 43, 0.3);
}

.btn-lihat-struk {
    background: #ffffff;
    color: var(--navy);
    border: 1.5px solid #4a5568;
    padding: 6px 16px;
    border-radius: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
}

.btn-lihat-struk:hover {
    background: #f7fafc;
    border-color: var(--navy);
}

@media (max-width: 860px) {
    .landing-grid-container {
        flex-direction: column;
        gap: 32px;
    }
    .login-form-column, .brand-showcase-column {
        max-width: 100%;
        width: 100%;
    }
}

/* ============================================
   PAYMENT TABLE STATUS
   ============================================ */
.payment-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.payment-status.lunas {
    background: #e8f5e9;
    color: #2e7d32;
}

.payment-status.belum-lunas {
    background: #fff3e0;
    color: #e65100;
}

.payment-status.refund {
    background: #fce4ec;
    color: #c62828;
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
