/**
 * Laundry POS System - Modern Dashboard Style
 * Inspired by modern sales management dashboard design
 */

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --sidebar-bg: #1e3a5f;
    --sidebar-active: #2a4d75;
    --sidebar-text: #ffffff;
    --sidebar-hover: #2a4d75;
    --main-bg: #f5f7fa;
    --card-bg: #ffffff;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --border-color: #e2e8f0;
    --primary-color: #667eea;
    --success-color: #48bb78;
    --danger-color: #f56565;
    --warning-color: #ed8936;
    --info-color: #4299e1;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-sm: 8px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--main-bg);
    overflow-x: hidden;
}

/* ===== APP LAYOUT ===== */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 280px;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 30px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--sidebar-text);
    margin-bottom: 5px;
}

.sidebar-subtitle {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    padding: 20px 0;
}

.nav-section {
    margin-bottom: 30px;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 20px;
    margin-bottom: 15px;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    margin: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background-color: var(--sidebar-hover);
    border-left-color: var(--sidebar-text);
}

.nav-item.active {
    background-color: var(--sidebar-active);
    border-left-color: var(--sidebar-text);
    font-weight: 600;
}

.nav-icon {
    font-size: 18px;
    margin-right: 12px;
    width: 24px;
    text-align: center;
}

.nav-text {
    font-size: 14px;
}

.nav-footer {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    padding: 0 20px;
}

.logout-item {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
}

/* ===== MAIN WRAPPER ===== */
.main-wrapper {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== TOP HEADER ===== */
.top-header {
    background-color: var(--card-bg);
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-header-left {
    flex: 1;
}

.welcome-text {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.top-header-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    position: relative;
}

.user-profile:hover {
    background-color: var(--main-bg);
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

.profile-info {
    display: flex;
    flex-direction: column;
}

.profile-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.profile-role {
    font-size: 12px;
    color: var(--text-secondary);
}

.dropdown-arrow {
    font-size: 10px;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.user-profile.active .dropdown-arrow {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: var(--card-bg);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    z-index: 1000;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.user-dropdown-menu.show {
    display: block !important;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: var(--main-bg);
    color: var(--primary-color);
}

.dropdown-icon {
    font-size: 18px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

.content-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== CARDS ===== */
.card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 25px;
}

/* ===== KPI CARDS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 50%;
    transform: translate(20px, -20px);
}

.stat-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-icon {
    position: absolute;
    right: 25px;
    top: 25px;
    font-size: 48px;
    opacity: 0.2;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #5568d3;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--text-secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6c7d;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #38a169;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #e53e3e;
}

.btn-info {
    background-color: var(--info-color);
    color: white;
}

.btn-info:hover {
    background-color: #3182ce;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    background-color: var(--card-bg);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ===== TABLES ===== */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
}

.data-table thead {
    background-color: var(--main-bg);
}

.data-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-primary);
}

.data-table tbody tr:hover {
    background-color: var(--main-bg);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* ===== BADGES ===== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background-color: rgba(72, 187, 120, 0.1);
    color: var(--success-color);
}

.badge-warning {
    background-color: rgba(237, 137, 54, 0.1);
    color: var(--warning-color);
}

.badge-danger {
    background-color: rgba(245, 101, 101, 0.1);
    color: var(--danger-color);
}

.badge-info {
    background-color: rgba(66, 153, 225, 0.1);
    color: var(--info-color);
}

/* ===== MODALS ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.modal-close:hover {
    background-color: var(--main-bg);
}

/* ===== ALERTS ===== */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background-color: rgba(72, 187, 120, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-error {
    background-color: rgba(245, 101, 101, 0.1);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.alert-info {
    background-color: rgba(66, 153, 225, 0.1);
    color: var(--info-color);
    border-left: 4px solid var(--info-color);
}

/* ===== PAGE HEADER ===== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.page-actions {
    display: flex;
    gap: 10px;
}

/* ===== DASHBOARD SECTIONS ===== */
.dashboard-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.section {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

.section h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

/* ===== MOBILE MENU TOGGLE ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: fixed;
    top: 20px;
    left: 20px;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--text-secondary);
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-wrapper {
        margin-left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .top-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
    
    .top-header-left,
    .top-header-right {
        flex: none;
        width: 100%;
    }
    
    .welcome-text {
        font-size: 20px;
    }
    
    .user-dropdown-menu {
        right: auto;
        left: 0;
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sections {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        padding: 20px 15px;
    }
    
    .user-profile {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .page-header h2 {
        font-size: 24px;
    }
}

/* ===== LOGIN PAGE ===== */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-box {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
}

.login-box h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 10px;
}

.login-box h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 30px;
}

.login-note {
    margin-top: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
}

.error-message {
    background-color: rgba(245, 101, 101, 0.1);
    color: var(--danger-color);
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-top: 15px;
    border-left: 4px solid var(--danger-color);
    font-size: 14px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .sidebar,
    .top-header,
    .page-actions,
    .btn,
    .mobile-menu-toggle {
        display: none;
    }
    
    .main-wrapper {
        margin-left: 0;
    }
    
    .main-content {
        padding: 0;
    }
}

/* ===== POS PAGE STYLES ===== */
.pos-page {
    padding: 0;
    height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    background-color: var(--main-bg);
}

/* Customer Selection Bar */
.pos-customer-bar {
    background-color: var(--card-bg);
    padding: 15px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.customer-search-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.form-group-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    position: relative;
}

.form-group-inline label {
    margin: 0;
    white-space: nowrap;
    font-weight: 600;
}

.form-group-inline .form-control {
    flex: 1;
    max-width: 400px;
}

.customer-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    margin-top: 5px;
    display: none;
}

.customer-results.show {
    display: block;
}

.customer-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}

.customer-item:hover {
    background-color: var(--main-bg);
}

.customer-item:last-child {
    border-bottom: none;
}

.customer-item strong {
    display: block;
    margin-bottom: 4px;
}

.customer-item small {
    color: var(--text-secondary);
}

.selected-customer-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    background-color: var(--main-bg);
    border-radius: var(--radius-sm);
}

/* POS Main Layout */
.pos-main-layout {
    display: grid;
    grid-template-columns: 280px 1fr 380px;
    gap: 0;
    flex: 1;
    overflow: hidden;
}

/* Left Sidebar - Categories */
.pos-sidebar-left {
    background-color: var(--card-bg);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    padding: 20px;
}

.category-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.category-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.category-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.category-card:hover {
    border-color: var(--success-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-card.active {
    border-color: var(--success-color);
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.1) 0%, rgba(72, 187, 120, 0.05) 100%);
}

.category-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.category-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Center - Item Customization */
.pos-center {
    background-color: var(--main-bg);
    overflow-y: auto;
    padding: 25px;
}

.item-customization {
    max-width: 800px;
    margin: 0 auto;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.empty-state p {
    font-size: 16px;
}

/* Item Display */
.item-display {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
}

.item-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.item-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-secondary);
    min-width: 40px;
}

.item-image-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e2e8f0 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.item-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.item-info .item-price {
    font-size: 20px;
    font-weight: 600;
    color: var(--success-color);
}

/* Customization Options */
.customization-section {
    margin-bottom: 25px;
}

.customization-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: block;
}

.option-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.option-btn {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background-color: var(--card-bg);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 60px;
    text-align: center;
}

.option-btn:hover {
    border-color: var(--success-color);
    color: var(--success-color);
}

.option-btn.active {
    background-color: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.amount-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.amount-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 80px;
}

.amount-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--main-bg);
    border-radius: var(--radius-sm);
    padding: 5px;
}

.amount-btn {
    width: 36px;
    height: 36px;
    border: none;
    background-color: var(--card-bg);
    border-radius: var(--radius-sm);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.amount-btn:hover {
    background-color: var(--success-color);
    color: white;
}

.amount-input {
    width: 60px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.topping-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.topping-btn {
    width: 80px;
    height: 80px;
    border: 2px solid var(--border-color);
    background-color: var(--card-bg);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.topping-btn:hover {
    border-color: var(--success-color);
    transform: scale(1.05);
}

.topping-btn.active {
    border-color: var(--success-color);
    background-color: rgba(72, 187, 120, 0.1);
}

.topping-btn.active::after {
    content: '✓';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    background-color: var(--success-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.topping-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.topping-name {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.2;
}

.add-to-cart-btn {
    width: 100%;
    padding: 16px;
    background-color: var(--success-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 25px;
}

.add-to-cart-btn:hover {
    background-color: #38a169;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Right Sidebar - Bill */
.pos-sidebar-right {
    background-color: var(--card-bg);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bill-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bill-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.bill-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.bill-items {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.empty-cart-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.bill-item {
    background-color: var(--main-bg);
    border-radius: var(--radius-sm);
    padding: 15px;
    margin-bottom: 12px;
    border-left: 3px solid var(--success-color);
}

.bill-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.bill-item-name {
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.bill-item-price {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 16px;
}

.bill-item-details {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 5px;
    line-height: 1.6;
}

.bill-item-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.bill-item-actions button {
    padding: 4px 8px;
    font-size: 12px;
}

.bill-summary {
    padding: 20px;
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.summary-row:last-child {
    margin-bottom: 0;
}

.total-row {
    font-size: 18px;
    font-weight: 700;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    margin-top: 12px;
}

.total-amount {
    color: var(--success-color);
    font-size: 24px;
}

.discount-input {
    width: 100px;
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    text-align: right;
}

.payment-section {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.payment-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.payment-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.payment-btn {
    padding: 12px;
    border: 2px solid var(--border-color);
    background-color: var(--card-bg);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.payment-btn:hover {
    border-color: var(--success-color);
    color: var(--success-color);
}

.payment-btn.active {
    background-color: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.payment-icon {
    font-size: 24px;
}

.bill-actions {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bill-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Services Grid (when showing services list) */
.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.service-item-card {
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.service-item-card:hover {
    border-color: var(--success-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.service-item-card.active {
    border-color: var(--success-color);
    background-color: rgba(72, 187, 120, 0.05);
}

.service-item-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.service-item-card .price {
    font-size: 18px;
    font-weight: 700;
    color: var(--success-color);
}

/* Responsive POS */
@media (max-width: 1200px) {
    .pos-main-layout {
        grid-template-columns: 250px 1fr 350px;
    }
}

@media (max-width: 768px) {
    .pos-main-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
    }
    
    .pos-sidebar-left {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        max-height: 200px;
    }
    
    .pos-sidebar-right {
        border-left: none;
        border-top: 1px solid var(--border-color);
        max-height: 400px;
    }
    
    .category-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}
