/* MASTER STYLE - ITAHMILI POS 
   Tema: Merah Tua & Kuning Cream 
*/

:root {
    --itahmili-dark-red: #a12b2a;
    --itahmili-lighter-red: #cc635b;
    --itahmili-yellow: #f5d178;
    --itahmili-cream: #fef1e1;
    --itahmili-brown-red: #8f3a38;
}

/* Global Styling */
body {
    background-color: var(--itahmili-cream);
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

/* --- SIDEBAR & NAVIGASI --- */
#sidebarMenu {
    background-color: var(--itahmili-dark-red);
    min-height: 100vh;
    color: white;
    border-radius: 0 20px 20px 0;
}

#sidebarMenu .nav-link {
    color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    margin: 5px 15px;
    transition: 0.3s;
}

#sidebarMenu .nav-link:hover,
#sidebarMenu .nav-link.active {
    color: var(--itahmili-dark-red) !important;
    background-color: var(--itahmili-yellow);
    font-weight: bold;
}

/* --- DASHBOARD CARDS --- */
.dashboard-card {
    border: none;
    border-radius: 15px;
    padding: 20px;
    transition: transform 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dashboard-card .card-title {
    color: #7d5b12; /* Warna teks kuning tua */
}

.dashboard-card i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}
.yellow-card {
    background-color: var(--itahmili-yellow);
    color: #7d5b12;
}

.dashboard-card.yellow-card {
    background-color: var(--itahmili-yellow);
}

.red-card {
    background-color: var(--itahmili-lighter-red);
    color: white;
}

.dashboard-card.red-card {
    background-color: var(--itahmili-lighter-red);
    color: white;
}

.dashboard-card.red-card .card-title {
    color: white;
}

.brown-card {
    background-color: var(--itahmili-brown-red);
    color: white;
}

.dashboard-card.brown-card {
    background-color: var(--itahmili-brown-red);
    color: white;
}
.dashboard-card.brown-card .card-title {
    color: white;
}

/* --- PRODUK & POS --- */
.product-item {
    border: none;
    border-radius: 15px;
    transition: 0.2s;
    cursor: pointer;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.product-item:active {
    transform: scale(0.95);
}
.product-img {
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 12px;
}

.category-scroll {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 10px;
    padding-bottom: 10px;
}
.category-scroll::-webkit-scrollbar {
    display: none;
}
.btn-cat {
    border-radius: 20px;
    border: 1px solid #ddd;
    background: white;
    padding: 8px 20px;
    transition: 0.3s;
}
.btn-cat.active {
    background: var(--itahmili-dark-red);
    color: white;
    border-color: var(--itahmili-dark-red);
}

/* --- KERANJANG & BILLING --- */
.billing-side {
    background: white;
    height: 100vh;
    position: sticky;
    top: 0;
    border-left: 1px solid #ddd;
    display: flex;
    flex-direction: column;
}

.cart-mobile-trigger {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--itahmili-dark-red);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px 20px 0 0;
    z-index: 1060;
}

/* --- KOMPONEN USER & TABEL --- */
.avatar-circle {
    width: 45px;
    height: 45px;
    background-color: var(--itahmili-yellow);
    color: var(--itahmili-dark-red);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
}

.badge-role {
    font-size: 0.7rem;
    padding: 5px 10px;
    border-radius: 8px;
}
.role-admin {
    background-color: #ffebee;
    color: #c62828;
}

.role-kasir {
    background-color: #e3f2fd;
    color: #1565c2;
}

/* --- MODAL & BUTTONS --- */
.modal-content {
    border-radius: 20px;
    border: none;
}
.bg-soft-success {
    background-color: #e8f5e9;
}

.btn-primary-itahmili {
    background-color: var(--itahmili-dark-red);
    color: white;
    border: none;
    border-radius: 12px;
}
.btn-primary-itahmili:hover {
    background-color: var(--itahmili-brown-red);
    color: white;
}

/* Styling Sidebar (Mobile-First) */
@media (max-width: 991.98px) {
    .offcanvas {
        background-color: var(--itahmili-dark-red);
        color: white;
    }
    .offcanvas .nav-link {
        color: rgba(255, 255, 255, 0.8);
    }
    .offcanvas .nav-link:hover,
    .offcanvas .nav-link.active {
        color: white;
        background-color: rgba(255, 255, 255, 0.1);
    }
    .offcanvas .navbar-brand {
        color: white;
    }
}

@media (min-width: 992px) {
    .navbar {
        display: none; /* Sembunyikan navbar di desktop */
    }
    #sidebarMenu {
        position: sticky;
        top: 0;
        height: 100vh;
        background-color: var(--itahmili-dark-red);
        color: white;
        border-radius: 0 20px 20px 0;
        padding-top: 20px;
    }
    #sidebarMenu .nav-link {
        color: rgba(255, 255, 255, 0.8);
        border-radius: 10px;
        margin: 0 10px;
    }
    #sidebarMenu .nav-link:hover,
    #sidebarMenu .nav-link.active {
        color: #a12b2a;
        background-color: var(--itahmili-yellow);
    }
    #sidebarMenu .navbar-brand {
        color: white;
        display: block;
        text-align: center;
        margin-bottom: 20px;
    }
    .main-content {
        padding: 20px;
    }
}

/* Styling Table Pesanan */
.pesanan-terbaru {
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.pesanan-terbaru .status {
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 0.8rem;
}
.pesanan-terbaru .status.selesai {
    background-color: #e6f7e6;
    color: #1a7f1a;
}
.pesanan-terbaru .status.detil {
    background-color: #e6f2f7;
    color: #1a7fa6;
}

.floating-back {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #f72d00;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 50px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.floating-back:hover {
    background: #c10c0c;
    transform: translateY(-2px);
}

.floating-back i {
    font-size: 16px;
}

.btn-demo-toast {
    display: inline-block;
    background: #fde90d;
    color: #000000;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    text-decoration: none;
}

.btn-demo-toast:hover {
    background: #cdac09;
    color: #000000;
}
