/* ========================================
   WARUNG KUPIE - MODERN POS INTERFACE
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-brown: #bb946d;
    --secondary-brown: #3b301e;
    --accent-orange: #404134;
    --accent-green: #4CAF50;
    --light-bg: #fdf1cb;
    --white: #fdf1cb;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --border-color: #E0E0E0;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #3d3220 0%, #8D6E63 100%);
    --gradient-accent: linear-gradient(135deg, #3b301e 0%, #bb946d 100%);
}

/* ========================================
   LOGO STYLING
   ======================================== */

/* Logo di sidebar */
.sidebar-header .logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 15px;
}

.sidebar-logo {
    max-height: 70px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Logo di login page */
.login-logo {
    max-height: 80px;
    width: auto;
    margin: 0 auto 20px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

/* Logo di struk */
.receipt-logo {
    max-height: 60px;
    width: auto;
    margin: 0 auto 15px;
    display: block;
}

/* Logo di dashboard header */
.dashboard-logo {
    max-height: 40px;
    width: auto;
    margin-right: 15px;
}

/* Responsive logo */
@media (max-width: 992px) {
    .sidebar-logo {
        max-height: 60px;
    }

    .login-logo {
        max-height: 70px;
    }
}

@media (max-width: 768px) {
    .sidebar-logo {
        max-height: 50px;
    }

    .login-logo {
        max-height: 60px;
    }

    .dashboard-logo {
        max-height: 30px;
    }
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* ========================================
   LOGIN PAGE - Modern Redesign
   ======================================== */

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #3c311f;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(252, 240, 202);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.login-page::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(252, 240, 202);
    border-radius: 50%;
    bottom: -50px;
    left: -50px;
}


.login-container h1 {
    color: #fcf2cd !important;
    /* Ubah warna */
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 700;
    background: none !important;
    /* Hapus gradient */
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #fcf2cd !important;
    background-clip: border-box !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Ubah juga subtitle jika perlu */
.login-container .subtitle {
    color: rgba(252, 242, 205, 0.9) !important;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container h1 {
    color: var(--primary-brown);
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-container .subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 0.95rem;
}

.login-container form {
    background: transparent;
    padding: 0;
    box-shadow: none;
    border: none;
}

.login-container label {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    font-size: 0.95rem;
}

.login-container .input-group {
    position: relative;
    margin-bottom: 24px;
}

.login-container .input-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.1rem;
}

.login-container input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.login-container input:focus {
    border-color: var(--accent-orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}

.login-container button {
    width: 100%;
    background: var(--gradient-primary);
    color: white;
    padding: 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.login-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(93, 64, 55, 0.3);
}

.login-container button:active {
    transform: translateY(0);
}

.login-container button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.login-container button:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }

    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.error {
    background: linear-gradient(135deg, #FFE7E7 0%, #FFCDD2 100%);
    color: #C62828;
    padding: 14px 20px;
    border-radius: 12px;
    border-left: 4px solid #C62828;
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
    animation: shake 0.5s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* ========================================
   SIDEBAR - Modern Design
   ======================================== */

nav {
    width: 280px;
    background: var(--gradient-primary);
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow-y: auto;
    transition: all 0.3s ease;
}

/* Sidebar Header */
.sidebar-header {
    background: white;
    padding: 30px 25px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.sidebar-header h1 {
    color: var(--primary-brown);
    font-size: 1.6rem;
    margin: 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-header h1::before {
    content: '☕';
    font-size: 2rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* User Info */
.user-info {
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.1);
    margin: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-info p {
    color: white;
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.user-info .username {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: white;
    opacity: 1;
}

/* Navigation Menu */
nav ul {
    list-style: none;
    padding: 15px 0;
    margin: 0;
}

nav li {
    margin: 0;
    position: relative;
}

nav a {
    display: flex;
    align-items: center;
    padding: 16px 30px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: rgba(255, 255, 255, 0.1);
    transition: width 0.3s ease;
}

nav a:hover::before {
    width: 100%;
}

nav a:hover,
nav a.active {
    color: white;
    border-left-color: var(--accent-orange);
    background: rgba(255, 255, 255, 0.05);
}

nav a i {
    margin-right: 12px;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

/* Active indicator */
nav a.active::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #fcf0ca;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 152, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0);
    }
}

/* ========================================
   MAIN LAYOUT
   ======================================== */

.container {
    margin-left: 280px;
    padding: 40px;
    min-height: 100vh;
    background: var(--light-bg);
    transition: all 0.3s ease;
}

/* Page Header */
.page-header {
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.page-header h1 {
    color: var(--text-dark);
    font-size: 2.2rem;
    margin: 0;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Welcome Message */
.welcome-message {
    background: white;
    padding: 25px 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--accent-orange);
}

.welcome-message p {
    color: var(--text-light);
    margin: 0;
    font-size: 1rem;
}

.welcome-message .highlight {
    color: var(--primary-brown);
    font-weight: 600;
}

/* Back Button */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    color: var(--primary-brown) !important;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
}

.btn-back:hover {
    background: var(--primary-brown);
    color: white !important;
    transform: translateX(-5px);
    border-color: var(--primary-brown);
}

.btn-back i {
    font-size: 1rem;
}

/* Cards */
.card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.card-header h2 {
    color: var(--primary-brown);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    border: none;
    padding: 0;
}

/* ========================================
   FORMS - Enhanced Design
   ======================================== */

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(93, 64, 55, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #F44336 0%, #EF5350 100%);
    color: white;
}

.btn-warning {
    background: var(--gradient-accent);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary-brown);
    border: 2px solid var(--primary-brown);
}

.btn-outline:hover {
    background: var(--primary-brown);
    color: white;
}

/* ========================================
   TABLES - Modern Design
   ======================================== */

.table-container {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table thead {
    background: var(--gradient-primary);
}

.table th {
    padding: 18px 24px;
    text-align: left;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
    vertical-align: middle;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background: rgba(141, 110, 99, 0.05);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Status Badges */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.badge-success {
    background: rgba(76, 175, 80, 0.1);
    color: #2E7D32;
}

.badge-warning {
    background: rgba(255, 152, 0, 0.1);
    color: #EF6C00;
}

.badge-danger {
    background: rgba(244, 67, 54, 0.1);
    color: #C62828;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.action-buttons .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    min-width: 80px;
}

/* ========================================
   DASHBOARD - Stats Cards
   ======================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
}

.stat-card .stat-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 152, 0, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--accent-orange);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-brown);
    margin-bottom: 5px;
}

.stat-card .stat-label {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.quick-action-btn {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.quick-action-btn:hover {
    background: var(--primary-brown);
    color: white;
    border-color: var(--primary-brown);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.quick-action-btn i {
    font-size: 2rem;
    color: var(--accent-orange);
}

.quick-action-btn:hover i {
    color: white;
}

.quick-action-btn span {
    font-weight: 600;
    font-size: 0.95rem;
}

/* ========================================
   TRANSACTION PAGE - Redesign
   ======================================== */

.transaksi-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    margin-top: 20px;
}

/* Menu List */
.menu-categories {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 10px 20px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.category-tab:hover,
.category-tab.active {
    background: var(--primary-brown);
    color: white;
    border-color: var(--primary-brown);
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.menu-item {
    background: white;
    border-radius: 16px;
    padding: 20px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.menu-item:hover {
    border-color: var(--accent-orange);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.menu-item-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.menu-item-price {
    background: var(--gradient-primary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.menu-item-category {
    display: inline-block;
    background: rgba(141, 110, 99, 0.1);
    color: var(--secondary-brown);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.menu-item-stock {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.menu-item-stock.low {
    color: #EF6C00;
    font-weight: 600;
}

.menu-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-item-actions .btn {
    flex: 1;
    padding: 10px;
    font-size: 0.9rem;
}

/* Cart */
.cart-container {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    position: sticky;
    top: 30px;
    height: fit-content;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cart-items {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 10px;
}

.cart-items::-webkit-scrollbar {
    width: 6px;
}

.cart-items::-webkit-scrollbar-track {
    background: var(--light-bg);
    border-radius: 10px;
}

.cart-items::-webkit-scrollbar-thumb {
    background: var(--primary-brown);
    border-radius: 10px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--light-bg);
    border-radius: 12px;
    margin-bottom: 8px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: var(--text-dark);
}

.cart-item-price {
    color: var(--text-light);
    font-size: 0.9rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-qty button {
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50%;
    background: white;
    color: var(--primary-brown);
    border: 2px solid var(--border-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-qty button:hover {
    background: var(--primary-brown);
    color: white;
    border-color: var(--primary-brown);
}

.cart-total {
    background: linear-gradient(135deg, var(--primary-brown) 0%, var(--secondary-brown) 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.cart-total-label {
    font-size: 1rem;
    opacity: 0.9;
}

.cart-total-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 5px;
}

/* ========================================
   PAYMENT SECTION - Perbaikan Kolom Kembalian
   ======================================== */

.payment-section {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
}

.payment-input {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    width: 100%;
}

.payment-input span {
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    min-width: 80px;
    flex-shrink: 0;
}

.payment-input input {
    flex: 1;
    text-align: right;
    font-weight: 600;
    font-size: 1rem;
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
    min-width: 0; /* Penting untuk flexbox */
    width: 100%;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

.payment-input input:focus {
    border-color: var(--accent-orange);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}


#kembalian {
    width: 100%;
    max-width: 200px;
    padding: 10px 12px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background: #f8f9fa;
    color: #28a745;
    font-weight: 700;
    font-size: 1rem;
    text-align: right;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'Poppins', sans-serif;
}

/* Untuk input bayar agar konsisten */
#bayar {
    width: 100%;
    max-width: 200px;
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    color: #28a745;
    font-weight: 700;
    font-size: 1rem;
    text-align: right;
    box-sizing: border-box;
}

/* Pastikan container payment input tidak flex-wrap */
.payment-input {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: nowrap; /* Penting! */
    width: 100%;
}

.payment-input span {
    min-width: 100px;
    flex-shrink: 0;
}
    
    .payment-input input {
        width: 100%;
        font-size: 0.95rem;
        padding: 8px 10px;
    }


/* Untuk struk cetak - sembunyikan payment section */
@media print {
    .payment-section {
        display: none !important;
    }
}

/* ========================================
   RECEIPT DESIGN
   ======================================== */

.receipt {
    background: white;
    border: 2px solid var(--primary-brown);
    border-radius: 16px;
    padding: 40px;
    margin: 40px auto;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.receipt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: repeating-linear-gradient(45deg,
            var(--primary-brown),
            var(--primary-brown) 10px,
            var(--accent-orange) 10px,
            var(--accent-orange) 20px);
}

.receipt-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px dashed var(--border-color);
    padding-bottom: 20px;
}

.receipt-header h2 {
    color: var(--primary-brown);
    font-size: 1.8rem;
    margin: 0;
    font-weight: 700;
}

.receipt-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.receipt-info-item {
    display: flex;
    flex-direction: column;
}

.receipt-info-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.receipt-info-value {
    font-weight: 600;
    color: var(--text-dark);
}

.receipt-items {
    margin: 25px 0;
    border-top: 2px dashed var(--border-color);
    border-bottom: 2px dashed var(--border-color);
    padding: 20px 0;
}

.receipt-total {
    background: var(--gradient-primary);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    margin-top: 25px;
}

.receipt-total-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

.receipt-total-value {
    font-size: 2.2rem;
    font-weight: 700;
    margin-top: 10px;
}

/* ========================================
   PRINT STYLES - Struk Only
   ======================================== */

@media print {
    /* Sembunyikan semua elemen */
    body * {
        display: none !important;
    }
    
    /* Hanya tampilkan struk */
    #struk,
    #struk * {
        display: block !important;
        visibility: visible !important;
    }
    
    /* Reset posisi struk */
    #struk {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 80mm !important;
        height: auto !important;
        margin: 0 !important;
        padding: 10px !important;
        border: none !important;
        box-shadow: none !important;
        background: white !important;
    }
    
    /* Hilangkan tombol */
    .no-print,
    .print-btn,
    button,
    .btn {
        display: none !important;
    }
    
    /* Reset font untuk struk */
    .receipt {
        font-family: 'Courier New', monospace !important;
        font-size: 11px !important;
        line-height: 1.2 !important;
    }
    
    .receipt-header h2 {
        font-size: 14px !important;
        margin: 5px 0 !important;
    }
    
    .receipt-info {
        font-size: 10px !important;
    }
    
    /* Ukuran kertas */
    @page {
        size: 80mm auto;
        margin: 0;
    }
    
    /* Hilangkan header/footer browser */
    @page :first {
        margin-top: 0;
    }
    
    /* Pastikan struk tidak terpotong */
    .receipt-info,
    .receipt-items,
    .receipt-total {
        page-break-inside: avoid;
    }
}

/* ========================================
   MESSAGES & ALERTS
   ======================================== */

.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    color: #2E7D32;
    border-left-color: #4CAF50;
}

.alert-error {
    background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%);
    color: #C62828;
    border-left-color: #F44336;
}

.alert-info {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    color: #1565C0;
    border-left-color: #2196F3;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
    .transaksi-container {
        grid-template-columns: 1fr;
    }

    .cart-container {
        position: static;
    }
}

@media (max-width: 992px) {
    nav {
        width: 240px;
    }

    .container {
        margin-left: 240px;
        padding: 30px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    nav {
        width: 100%;
        height: auto;
        position: relative;
    }

    .container {
        margin-left: 0;
        padding: 20px;
    }

    .sidebar-header {
        padding: 20px;
    }

    nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px;
    }

    nav li {
        flex: 1 0 auto;
        min-width: 120px;
    }

    nav a {
        padding: 12px 15px;
        font-size: 0.9rem;
        justify-content: center;
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    nav a i {
        margin-right: 0;
        font-size: 1.4rem;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .menu-items {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 15px;
    }

    .login-container {
        padding: 30px 20px;
        margin: 15px;
    }

    .card {
        padding: 20px;
    }

    .table th,
    .table td {
        padding: 12px 15px;
    }

    .action-buttons {
        flex-direction: column;
    }

    .receipt {
        padding: 25px;
        margin: 20px;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    body {
        background: white;
    }

    nav,
    .btn-back,
    .btn:not(.print-btn) {
        display: none !important;
    }

    .container {
        margin-left: 0;
        padding: 20px;
    }

    .receipt {
        border: 2px solid black;
        box-shadow: none;
        margin: 0;
        max-width: 100%;
    }

    .print-btn {
        display: none;
    }

    /* ========================================
   LOGO STYLING - Add to style.css
   ======================================== */

    .logo {
        max-height: 60px;
        width: auto;
        object-fit: contain;
    }

    .logo-small {
        max-height: 40px;
        width: auto;
    }

    .logo-large {
        max-height: 100px;
        width: auto;
    }

    /* Logo di sidebar header */
    .sidebar-header .logo {
        max-height: 70px;
        margin-bottom: 15px;
    }

    /* Logo di login page */
    .login-logo {
        max-height: 80px;
        margin-bottom: 20px;
        filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    }

    /* Logo di struk */
    .receipt-logo {
        max-height: 60px;
        margin: 0 auto 15px;
    }
}
