/* Restaurant POS System - Main Stylesheet */
/* Blue and White Theme */

:root {
    --primary-blue: #2563eb;
    --primary-blue-dark: #1d4ed8;
    --primary-blue-light: #3b82f6;
    --secondary-blue: #1e40af;
    --accent-blue: #60a5fa;
    --light-blue: #dbeafe;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 8px;
    --border-radius-lg: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 1rem 2rem;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    font-size: 2rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background-color: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Main Container */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Card Styles */
.card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--gray-200);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-blue-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
    background-color: var(--gray-200);
}

.btn-success {
    background-color: var(--success);
    color: var(--white);
}

.btn-success:hover {
    background-color: #059669;
}

.btn-warning {
    background-color: var(--warning);
    color: var(--white);
}

.btn-warning:hover {
    background-color: #d97706;
}

.btn-error {
    background-color: var(--error);
    color: var(--white);
}

.btn-error:hover {
    background-color: #dc2626;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--gray-700);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.table th {
    background-color: var(--gray-50);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.table tbody tr:hover {
    background-color: var(--gray-50);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-800);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: var(--gray-100);
    color: var(--gray-600);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

/* Grid System */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-blue);
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray-600);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== CASHIER SYSTEM - FINAL DESIGN ===== */

/* Order Type Selection */
.order-type-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}

.order-type-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.order-type-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-700);
    min-width: 160px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.order-type-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.order-type-btn:hover::before {
    left: 100%;
}

.order-type-btn:hover {
    border-color: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.order-type-btn.active {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, var(--primary-blue), #3b82f6);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.order-type-btn i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.order-type-btn:hover i {
    transform: scale(1.1);
}

/* Main Layout */
.cashier-main-layout {
    display: flex;
    justify-content: center;
    min-height: calc(100vh - 200px);
    transition: all 0.3s ease;
}

.cashier-main-layout.with-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.cashier-center {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 1200px;
}

.cashier-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.categories-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.category-tab {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-600);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.category-tab:hover {
    background: var(--gray-50);
    color: var(--gray-800);
}

.category-tab.active {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.search-box {
    max-width: 100%;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    max-height: 500px;
    overflow-y: auto;
}

/* Tables Grid */
.tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    max-height: 600px;
    overflow-y: auto;
    padding: 0.5rem;
}

.table-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.table-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gray-300);
    transition: background 0.3s ease;
}

.table-card.available::before {
    background: var(--success);
}

.table-card.occupied::before {
    background: var(--error);
}

.table-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--primary-blue);
}

.table-card.active {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, var(--light-blue), #e0f2fe);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.table-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.table-capacity {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.table-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 auto;
    background: var(--gray-400);
}

.table-status.available {
    background: var(--success);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.table-status.occupied {
    background: var(--error);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

/* Orders Grid */
.orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
    max-height: 600px;
    overflow-y: auto;
    padding: 0.5rem;
}

.order-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.order-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gray-300);
    transition: background 0.3s ease;
}

.order-card.pending::before {
    background: var(--warning);
}

.order-card.preparing::before {
    background: var(--primary-blue);
}

.order-card.ready::before {
    background: var(--success);
}

.order-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: var(--primary-blue);
}

.order-card.selected {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, var(--light-blue), #e0f2fe);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.order-number {
    font-weight: bold;
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.order-status {
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.order-status.pending {
    background: var(--warning);
    color: var(--white);
}

.order-status.preparing {
    background: var(--info);
    color: var(--white);
}

.order-status.ready {
    background: var(--success);
    color: var(--white);
}

.order-status.completed {
    background: var(--gray-500);
    color: var(--white);
}

.order-status.cancelled {
    background: var(--error);
    color: var(--white);
}

.order-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.order-customer {
    font-weight: 500;
    color: var(--gray-800);
}

.order-total {
    font-weight: bold;
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.order-time {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Cashier Panel Design */
.cashier-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 1rem 2rem;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.cashier-header .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.role-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cashier-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Order Type Tabs */
.order-type-tabs {
    display: flex;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    margin-bottom: 2rem;
    overflow: hidden;
}

.order-tab {
    flex: 1;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--gray-600);
    position: relative;
}

.order-tab:hover {
    background: var(--gray-50);
    color: var(--gray-800);
}

.order-tab.active {
    background: var(--primary-blue);
    color: var(--white);
}

.order-tab i {
    font-size: 1.5rem;
}

.order-tab .coming-soon {
    font-size: 0.75rem;
    opacity: 0.7;
    font-weight: 400;
}

/* Cashier Content Layout */
.cashier-content {
    display: grid;
    grid-template-columns: 250px 1fr 300px;
    gap: 2rem;
    min-height: 600px;
}

/* Areas Sidebar */
.areas-sidebar {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    padding: 1.5rem;
    height: fit-content;
}

.areas-sidebar h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-blue);
}

.areas-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.area-item {
    padding: 1rem;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.area-item:hover {
    background: var(--light-blue);
    border-color: var(--primary-blue);
    transform: translateX(4px);
}

.area-item.active {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    transform: translateX(4px);
}

.area-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.area-tables {
    font-size: 0.75rem;
    opacity: 0.8;
}

.no-areas {
    text-align: center;
    padding: 2rem;
    color: var(--gray-500);
}

.no-areas i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Tables Section */
.tables-section {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    padding: 1.5rem;
}

.tables-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-100);
}

.tables-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

.selected-area {
    background: var(--light-blue);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--accent-blue);
}

.selected-area span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-blue);
}

.tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.table-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.table-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gray-300);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.table-card.available::before {
    background: var(--success);
}

.table-card.occupied::before {
    background: var(--error);
}

.table-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: var(--primary-blue);
}

.table-card.active {
    border-color: var(--primary-blue);
    background: var(--light-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.table-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.table-info {
    font-size: 0.75rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.table-area {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.table-capacity {
    opacity: 0.8;
}

.table-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-400);
    margin-top: 0.5rem;
}

.table-status.available {
    background: var(--success);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.table-status.occupied {
    background: var(--error);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.no-tables {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--gray-500);
}

.no-tables i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Orders Sidebar */
.orders-sidebar {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    padding: 1.5rem;
    height: fit-content;
}

.orders-sidebar h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-blue);
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 500px;
    overflow-y: auto;
}

.order-item {
    padding: 1rem;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.order-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gray-300);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.order-item.pending::before {
    background: var(--warning);
}

.order-item.confirmed::before {
    background: var(--info);
}

.order-item.preparing::before {
    background: var(--primary-blue);
}

.order-item.ready::before {
    background: var(--success);
}

.order-item:hover {
    background: var(--light-blue);
    border-color: var(--primary-blue);
    transform: translateX(4px);
}

.order-item.active {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    transform: translateX(4px);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.order-number {
    font-weight: 600;
    font-size: 0.9rem;
}

.order-time {
    font-size: 0.75rem;
    opacity: 0.8;
}

.order-details {
    margin-bottom: 0.5rem;
}

.order-table {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.order-amount {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--success);
}

.order-item.active .order-amount {
    color: var(--white);
}

.order-status {
    margin-top: 0.5rem;
}

.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-confirmed {
    background: #d1ecf1;
    color: #0c5460;
}

.status-preparing {
    background: #cce7ff;
    color: #004085;
}

.status-ready {
    background: #d4edda;
    color: #155724;
}

.no-orders {
    text-align: center;
    padding: 2rem;
    color: var(--gray-500);
}

.no-orders i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Tables Grid */
.tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.table-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.table-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gray-300);
    transition: background 0.3s ease;
}

.table-card.available::before {
    background: var(--success);
}

.table-card.occupied::before {
    background: var(--error);
}

.table-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: var(--primary-blue);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.table-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
}

.table-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-400);
}

.table-status.available {
    background: var(--success);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.table-status.occupied {
    background: var(--error);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.table-info {
    margin-bottom: 1rem;
}

.table-area {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.table-capacity {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.table-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

/* Areas Grid */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.area-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.area-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--success);
    transition: background 0.3s ease;
}

.area-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: var(--primary-blue);
}

.area-card.active {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, var(--light-blue), #e0f2fe);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
}

.area-card.active::before {
    background: var(--primary-blue);
}

.area-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.area-content {
    flex: 1;
}

.area-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.area-tables {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.area-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Order Status Colors */
.table-card.out-for-delivery {
    border-left: 4px solid #f59e0b;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.table-card.delivered {
    border-left: 4px solid #10b981;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.table-status.out-for-delivery {
    background: #f59e0b;
}

.table-status.delivered {
    background: #10b981;
}

.status-text {
    font-size: 0.75rem;
    color: var(--success);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.area-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Orders Grid */
.orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.order-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.order-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gray-300);
    transition: background 0.3s ease;
}

.order-card.pending::before {
    background: var(--warning);
}

.order-card.confirmed::before {
    background: var(--info);
}

.order-card.preparing::before {
    background: var(--primary-blue);
}

.order-card.ready::before {
    background: var(--success);
}

.order-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: var(--primary-blue);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.order-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.order-time {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.order-info {
    margin-bottom: 1rem;
}

.order-table {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.order-type {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}

.order-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--success);
}

.order-status {
    margin-bottom: 1rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.item-count {
    font-size: 0.7rem;
    color: var(--gray-500);
    margin-left: 0.5rem;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-confirmed {
    background: #d1ecf1;
    color: #0c5460;
}

.status-preparing {
    background: #cce7ff;
    color: #004085;
}

.status-ready {
    background: #d4edda;
    color: #155724;
}

.order-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

/* Settings Grid */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.setting-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.setting-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: var(--primary-blue);
}

.setting-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.setting-content {
    flex: 1;
}

.setting-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.setting-content p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.action-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--gray-300);
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--gray-600);
}

.action-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    transform: scale(1.1);
}

.kitchen-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--warning);
    color: var(--white);
    padding: 0.25rem;
    border-radius: 50%;
    font-size: 0.75rem;
}

.product-card {
    position: relative;
}

.empty-cart {
    text-align: center;
    padding: 2rem;
    color: var(--gray-400);
}

.empty-cart i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

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

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 500;
    color: var(--gray-800);
}

.cart-item-price {
    color: var(--primary-blue);
    font-size: 0.875rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity {
    min-width: 2rem;
    text-align: center;
    font-weight: 500;
}

.total-line {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.total-line:last-child {
    border-bottom: none;
}

.total-final {
    font-weight: bold;
    font-size: 1.1rem;
    border-top: 2px solid var(--primary-blue);
    margin-top: 0.5rem;
    padding-top: 0.75rem;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.payment-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-method:hover {
    border-color: var(--primary-blue);
}

.payment-method input[type="radio"] {
    display: none;
}

.payment-method input[type="radio"]:checked + .payment-icon {
    color: var(--primary-blue);
}

.payment-method input[type="radio"]:checked {
    border-color: var(--primary-blue);
    background: var(--light-blue);
}

.payment-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--gray-400);
}

.table-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    padding: 0.5rem;
    display: flex;
    gap: 0.25rem;
    z-index: 10;
}

.table-management {
    margin: 1rem 0;
}

.table-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Settings Button */
.settings-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.settings-button .btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, var(--primary-blue), #3b82f6);
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.settings-button .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.settings-button .btn:hover::before {
    left: 100%;
}

.settings-button .btn:hover {
    background: linear-gradient(135deg, #1d4ed8, var(--primary-blue));
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.5);
}

.settings-button .btn:active {
    transform: scale(0.95);
}

/* Settings Modal */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.setting-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
}

.setting-item h4 {
    margin-bottom: 1rem;
    color: var(--gray-800);
}

/* Reservation Styles */
.reservation-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--gray-600);
    font-weight: 500;
}

.tab-btn:hover {
    color: var(--primary-blue);
}

.tab-btn.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.reservation-content {
    min-height: 300px;
}

.reservation-list {
    max-height: 400px;
    overflow-y: auto;
}

.reservation-item {
    padding: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
    background: var(--white);
}

.reservation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.reservation-customer {
    font-weight: 600;
    color: var(--gray-800);
}

.reservation-status {
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.reservation-status.pending {
    background: var(--warning);
    color: var(--white);
}

.reservation-status.confirmed {
    background: var(--success);
    color: var(--white);
}

.reservation-status.cancelled {
    background: var(--error);
    color: var(--white);
}

.reservation-details {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.reservation-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.reservation-actions .btn {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
}

/* Order Types Vertical */
.order-types-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.order-type-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.order-type-card:hover {
    border-color: var(--primary-blue);
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.order-type-card.active {
    border-color: var(--primary-blue);
    background-color: var(--light-blue);
}

.order-type-icon {
    font-size: 1.5rem;
    color: var(--primary-blue);
    width: 24px;
    text-align: center;
}

.order-type-title {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.9rem;
}

/* Categories */
.categories-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-tab {
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-600);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-size: 0.875rem;
}

.category-tab:hover {
    background: var(--gray-50);
    color: var(--gray-800);
}

.category-tab.active {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

/* Search Box */
.search-box {
    width: 100%;
}

/* Tables Grid */
.tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.table-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.table-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.table-card.occupied {
    border-color: var(--error);
    background-color: #fef2f2;
}

.table-card.available {
    border-color: var(--success);
    background-color: #f0fdf4;
}

.table-card.active {
    border-color: var(--primary-blue);
    background-color: var(--light-blue);
}

.table-number {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.table-capacity {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.table-status {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.table-status.occupied {
    background-color: var(--error);
}

.table-status.available {
    background-color: var(--success);
}

/* Orders Grid */
.orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.order-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.order-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gray-300);
    transition: background 0.3s ease;
}

.order-card.pending::before {
    background: var(--warning);
}

.order-card.preparing::before {
    background: var(--primary-blue);
}

.order-card.ready::before {
    background: var(--success);
}

.order-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: var(--primary-blue);
}

.order-card.selected {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, var(--light-blue), #e0f2fe);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.order-number {
    font-weight: bold;
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.order-status {
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.order-status.pending {
    background: var(--warning);
    color: var(--white);
}

.order-status.preparing {
    background: var(--info);
    color: var(--white);
}

.order-status.ready {
    background: var(--success);
    color: var(--white);
}

.order-status.completed {
    background: var(--gray-500);
    color: var(--white);
}

.order-status.cancelled {
    background: var(--error);
    color: var(--white);
}

.order-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.order-customer {
    font-weight: 500;
    color: var(--gray-800);
}

.order-total {
    font-weight: bold;
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.order-time {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.product-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    width: 100%;
    height: 80px;
    background-color: var(--gray-100);
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
}

.product-name {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
    line-height: 1.2;
}

.product-price {
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 0.8rem;
}

.kitchen-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--warning);
    color: var(--white);
    padding: 0.25rem;
    border-radius: 50%;
    font-size: 0.75rem;
}

/* Cart Styles */
.cart-container {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.empty-cart {
    text-align: center;
    padding: 2rem;
    color: var(--gray-400);
}

.empty-cart i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.empty-cart p {
    margin: 0;
    font-size: 0.875rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

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

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 500;
    color: var(--gray-800);
    font-size: 0.875rem;
}

.cart-item-price {
    color: var(--primary-blue);
    font-size: 0.75rem;
    font-weight: 600;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity {
    min-width: 1.5rem;
    text-align: center;
    font-weight: 500;
    font-size: 0.875rem;
}

.total-line {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.875rem;
}

.total-line:last-child {
    border-bottom: none;
}

.total-final {
    font-weight: bold;
    font-size: 1rem;
    border-top: 2px solid var(--primary-blue);
    margin-top: 0.5rem;
    padding-top: 0.75rem;
}

/* Settings Button */
.settings-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.settings-button .btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, var(--primary-blue), #3b82f6);
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.settings-button .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.settings-button .btn:hover::before {
    left: 100%;
}

.settings-button .btn:hover {
    background: linear-gradient(135deg, #1d4ed8, var(--primary-blue));
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.5);
}

.settings-button .btn:active {
    transform: scale(0.95);
}

/* Settings Modal */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.setting-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
}

.setting-item h4 {
    margin-bottom: 1rem;
    color: var(--gray-800);
}

/* Payment Methods */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.payment-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-method:hover {
    border-color: var(--primary-blue);
}

.payment-method input[type="radio"] {
    display: none;
}

.payment-method input[type="radio"]:checked + .payment-icon {
    color: var(--primary-blue);
}

.payment-method input[type="radio"]:checked {
    border-color: var(--primary-blue);
    background: var(--light-blue);
}

.payment-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--gray-400);
}

/* Table Options */
.table-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    padding: 0.5rem;
    display: flex;
    gap: 0.25rem;
    z-index: 10;
}

.table-management {
    margin: 1rem 0;
}

.table-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .cashier-main-layout {
        grid-template-columns: 200px 1fr 250px;
    }
}

@media (max-width: 768px) {
    .cashier-main-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cashier-sidebar {
        order: 2;
    }
    
    .cashier-center {
        order: 1;
    }
    
    .cashier-right-sidebar {
        order: 3;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .tables-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

@media (max-width: 480px) {
    .tables-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .settings-button {
        bottom: 1rem;
        right: 1rem;
    }
    
    .settings-button .btn {
        width: 50px;
        height: 50px;
    }
}

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

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-container {
        padding: 1rem;
    }
    
    .header {
        padding: 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .order-types {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tables-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .modal-content {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
    }
    
    /* Cashier responsive */
    .cashier-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .areas-sidebar {
        order: 2;
    }
    
    .tables-section {
        order: 1;
    }
    
    .orders-sidebar {
        order: 3;
    }
    
    .order-type-tabs {
        flex-direction: column;
    }
    
    .order-tab {
        padding: 1rem;
        text-align: left;
    }
    
    .tables-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.75rem;
    }
    
    .table-card {
        padding: 0.75rem;
    }
    
    .table-number {
        font-size: 1.25rem;
    }
    
    .table-info {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .order-types {
        grid-template-columns: 1fr;
    }
    
    .tables-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Notification Container */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
}

.notification {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 15px 20px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    will-change: transform, opacity;
    position: relative;
    overflow: hidden;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.hide {
    transform: translateX(100%);
    opacity: 0;
}

.notification.success {
    border-left: 4px solid var(--success);
    background: #f8fff9;
}

.notification.error {
    border-left: 4px solid var(--danger);
    background: #fff8f8;
}

.notification.warning {
    border-left: 4px solid var(--warning);
    background: #fffdf8;
}

.notification.info {
    border-left: 4px solid var(--info);
    background: #f8fcff;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.badge-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.badge-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.badge-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.badge-primary {
    background-color: #cce7ff;
    color: #004085;
    border: 1px solid #b3d7ff;
}

.badge-secondary {
    background-color: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--primary-blue); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-error { color: var(--error); }
.text-gray { color: var(--gray-600); }
.bg-primary { background-color: var(--primary-blue); }
.bg-success { background-color: var(--success); }
.bg-warning { background-color: var(--warning); }
.bg-error { background-color: var(--error); }
.hidden { display: none; }
.visible { display: block; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }

/* ===== MANAGEMENT STYLES ===== */
.manage-table-card, .manage-area-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
}

.table-info, .area-info {
    flex: 1;
}

.table-info h4, .area-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--gray-800);
}

.table-info p, .area-info p {
    margin: 0.25rem 0;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.table-actions, .area-actions {
    display: flex;
    gap: 0.5rem;
}

.table-management-tabs, .area-management-tabs, .integration-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.table-management-tabs .tab-btn, .area-management-tabs .tab-btn, .integration-tabs .tab-btn {
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    color: var(--gray-600);
    transition: all 0.3s ease;
}

.table-management-tabs .tab-btn.active, .area-management-tabs .tab-btn.active, .integration-tabs .tab-btn.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.table-actions, .area-actions {
    display: flex;
    gap: 0.5rem;
}

.integration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.integration-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.integration-item h5 {
    margin: 0 0 1rem 0;
    color: var(--gray-800);
    font-size: 1.1rem;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--gray-500);
    font-style: italic;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.form-checkbox input[type="checkbox"] {
    margin: 0;
}

/* ===== CASHIER RESPONSIVE DESIGN - FINAL ===== */
@media (max-width: 1200px) {
    .cashier-main-layout.with-sidebar {
        grid-template-columns: 1fr 280px;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .cashier-main-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cashier-main-layout.with-sidebar {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cashier-right {
        order: -1;
    }
    
    .tables-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }
    
    .orders-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .order-type-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .order-type-btn {
        min-width: auto;
        width: 100%;
        padding: 1rem 1.5rem;
    }
    
    .settings-button {
        bottom: 1rem;
        right: 1rem;
    }
    
    .settings-button .btn {
        width: 56px;
        height: 56px;
        font-size: 1.25rem;
    }
    
    .area-item {
        padding: 1rem;
    }
    
    .area-name {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .order-type-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .tables-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.5rem;
    }
    
    .table-card {
        padding: 1rem;
    }
    
    .table-number {
        font-size: 1.25rem;
    }
    
    .order-card {
        padding: 1rem;
    }
    
    .settings-button .btn {
        width: 52px;
        height: 52px;
        font-size: 1.125rem;
    }
}

/* Printer Settings Styles */
.printer-settings-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.printer-settings-tabs .tab-btn {
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.printer-settings-tabs .tab-btn.active {
    border-bottom-color: #007bff;
    color: #007bff;
}

.printer-content {
    margin-top: 20px;
}

.printer-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-indicator {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.status-indicator.online {
    background: #d4edda;
    color: #155724;
}

.status-indicator.offline {
    background: #f8d7da;
    color: #721c24;
}

.status-indicator.testing {
    background: #fff3cd;
    color: #856404;
}

.test-section {
    text-align: center;
    padding: 20px;
}

.test-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.test-buttons .btn {
    min-width: 150px;
}

.test-results {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    min-height: 50px;
}

/* Status Badge Styles */
.status-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-confirmed {
    background: #d4edda;
    color: #155724;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.status-completed {
    background: #d1ecf1;
    color: #0c5460;
}

/* Reservation Edit Form Styles */
.reservation-edit-form {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
}

.edit-form-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dee2e6;
}

.edit-form-header h5 {
    margin: 0;
    color: #495057;
}

.reservation-edit-form .form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 15px;
}

/* Connection Type Styles */
.connection-type {
    display: flex;
    gap: 20px;
    margin: 10px 0;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.form-check input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.form-check-label {
    margin: 0;
    cursor: pointer;
    font-weight: 500;
}

/* Printer Connection Settings */
.printer-connection-settings {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.printer-connection-settings h5 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 14px;
    font-weight: 600;
}

/* Bluetooth Scan Button */
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
}

/* Printer Status Enhanced */
.printer-status {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.status-indicator {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-indicator.online {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-indicator.offline {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-indicator.testing {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-indicator.connecting {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status-indicator.testing {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Reports Styles */
.reports-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.reports-tabs .tab-btn {
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.reports-tabs .tab-btn.active {
    border-bottom-color: #007bff;
    color: #007bff;
    font-weight: 600;
}

.report-content {
    padding: 20px 0;
}

.report-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 200px;
}

.filter-group .form-control {
    margin: 0;
}

.report-summary {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.report-summary h4 {
    margin-bottom: 20px;
    color: #495057;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.summary-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.summary-card h5 {
    margin: 0 0 10px 0;
    color: #6c757d;
    font-size: 14px;
    font-weight: 600;
}

.summary-card .amount {
    font-size: 24px;
    font-weight: bold;
    color: #28a745;
}

.summary-card .count {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
}

.summary-card .product,
.summary-card .table,
.summary-card .time {
    font-size: 18px;
    font-weight: 600;
    color: #495057;
}

/* Table Order Modal Styles */
.table-order-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    height: 70vh;
}

.menu-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-right: 1px solid #e9ecef;
    padding-right: 20px;
}

.menu-categories h4,
.menu-products h4 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 16px;
    font-weight: 600;
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.category-item {
    flex: 1;
    min-width: 120px;
}

.category-btn {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e9ecef;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.category-btn:hover {
    background: #f8f9fa;
    border-color: #007bff;
}

.category-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.products-list {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: white;
}

.product-info h5 {
    margin: 0 0 5px 0;
    color: #495057;
    font-size: 16px;
}

.product-price {
    margin: 0 0 5px 0;
    color: #28a745;
    font-weight: 600;
    font-size: 14px;
}

.product-description {
    margin: 0;
    color: #6c757d;
    font-size: 12px;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-actions .quantity {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.order-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.table-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.table-number {
    font-size: 18px;
    font-weight: 600;
    color: #495057;
}

.order-time {
    font-size: 14px;
    color: #6c757d;
}

.order-actions {
    display: flex;
    gap: 10px;
}

.order-items-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
}

.order-items {
    flex: 1;
    height: 100%;
    overflow-y: auto;
    padding: 10px;
    background: #f8f9fa;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 150px;
}

.empty-order {
    text-align: center;
    color: #6c757d;
    padding: 40px 20px;
    font-style: italic;
    background: white !important;
    border: 2px dashed #dee2e6 !important;
    border-radius: 8px !important;
    margin: 20px 0 !important;
    font-size: 16px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.order-item {
    display: grid !important;
    grid-template-columns: 1fr auto auto auto;
    gap: 15px;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f8f9fa;
    background: white !important;
    border: 1px solid #e9ecef !important;
    border-radius: 6px !important;
    margin: 8px 0 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

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

.item-info h6 {
    margin: 0 0 5px 0;
    color: #495057;
    font-size: 14px;
}

.item-price {
    margin: 0;
    color: #6c757d;
    font-size: 12px;
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-total {
    font-weight: 600;
    color: #495057;
}

.item-actions {
    display: flex;
    gap: 5px;
}

.order-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.summary-row.total {
    font-size: 18px;
    font-weight: bold;
    color: #495057;
    border-top: 1px solid #dee2e6;
    padding-top: 10px;
    margin-top: 10px;
}

.order-actions-bottom {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.order-actions-bottom .btn {
    flex: 1;
    max-width: 150px;
}

/* Table Card Clickable */
.table-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.table-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Empty state styles */
.empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--gray-500);
    font-size: 1.1rem;
    text-align: center;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border: 2px dashed var(--gray-300);
}

/* Area Cards */
.area-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    position: relative;
    overflow: hidden;
}

.area-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gray-300);
    transition: background 0.3s ease;
}

.area-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-color: var(--primary-blue);
}

.area-card.active {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, var(--light-blue), #e0f2fe);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.area-card.active::before {
    background: var(--primary-blue);
}

.area-name {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.area-description {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Table Management Modal Styles */
.table-info-section {
    background: var(--gray-50);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    border: 1px solid var(--gray-200);
}

.table-details h4 {
    margin: 0 0 10px 0;
    color: var(--gray-800);
    font-size: 1.5rem;
}

.table-details p {
    margin: 5px 0;
    color: var(--gray-600);
}

.table-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.table-actions .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.3s ease;
}

.table-orders-section h4 {
    margin: 0 0 15px 0;
    color: var(--gray-800);
    font-size: 1.2rem;
}

.orders-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    background: var(--white);
}

.order-card {
    padding: 15px;
    border-bottom: 1px solid var(--gray-100);
    transition: all 0.3s ease;
}

.order-card:hover {
    background: var(--gray-50);
}

.order-card:last-child {
    border-bottom: none;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.order-header h4 {
    margin: 0;
    color: var(--gray-800);
    font-size: 1.1rem;
}

.order-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-preparing {
    background: #d1ecf1;
    color: #0c5460;
}

.status-ready {
    background: #d4edda;
    color: #155724;
}

.status-completed {
    background: #d1ecf1;
    color: #0c5460;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.order-details {
    margin-bottom: 15px;
}

.order-details p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.order-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.order-actions .btn {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.empty-orders {
    text-align: center;
    color: var(--gray-500);
    padding: 40px 20px;
    font-style: italic;
}

.loading {
    text-align: center;
    color: var(--gray-500);
    padding: 20px;
    font-style: italic;
}

/* History Styles */
.history-item {
    padding: 15px;
    border-bottom: 1px solid var(--gray-100);
    background: var(--white);
}

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

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.history-header h5 {
    margin: 0;
    color: var(--gray-800);
}

.history-details p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* Order Details Styles */
.order-info {
    background: var(--gray-50);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.order-info h4 {
    margin: 0 0 15px 0;
    color: var(--gray-800);
}

.order-info p {
    margin: 8px 0;
    color: var(--gray-600);
}

.order-items h5 {
    margin: 0 0 15px 0;
    color: var(--gray-800);
}

.items-list {
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    background: var(--white);
}

.item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid var(--gray-100);
}

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

.item-row span {
    color: var(--gray-700);
}

.item-row span:first-child {
    font-weight: 500;
}

.item-row span:last-child {
    font-weight: 600;
    color: var(--success);
}

/* Order Modal Styles */
.order-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    height: 100%;
}

.menu-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.menu-categories h4,
.menu-products h4 {
    margin: 0 0 15px 0;
    color: var(--gray-800);
    font-size: 1.2rem;
    border-bottom: 2px solid var(--primary-blue);
    padding-bottom: 8px;
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 10px;
    background: var(--white);
}

.category-btn {
    padding: 10px 15px;
    border: 1px solid var(--gray-300);
    background: var(--white);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-weight: 500;
}

.category-btn:hover {
    background: var(--gray-50);
    border-color: var(--primary-blue);
}

.category-btn.active {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.products-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    background: var(--white);
}

.product-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 15px;
    background: var(--white);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: var(--primary-blue);
}

.product-name {
    margin: 0 0 8px 0;
    color: var(--gray-800);
    font-size: 1rem;
    font-weight: 600;
}

.product-description {
    margin: 0 0 10px 0;
    color: var(--gray-600);
    font-size: 0.85rem;
    line-height: 1.4;
}

.product-price {
    margin: 0 0 15px 0;
    color: var(--success);
    font-size: 1.1rem;
    font-weight: 600;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}

.product-actions .quantity {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    color: var(--gray-700);
}

.order-section {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    background: var(--white);
    overflow: hidden;
    height: 100%;
    min-height: 500px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.table-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.table-number {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-800);
}

.order-time {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.order-actions {
    display: flex;
    gap: 8px;
}

.order-items {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    max-height: 300px;
    min-height: 200px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.empty-order {
    text-align: center;
    color: #6c757d;
    padding: 40px 20px;
    font-style: italic;
    font-size: 16px;
    background: white;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    margin: 20px 0;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin: 8px 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

.item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-name {
    font-weight: 500;
    color: var(--gray-800);
}

.item-price {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.item-quantity {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    color: var(--gray-700);
}

.order-summary {
    padding: 20px;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1rem;
}

.summary-row.total {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-800);
    border-top: 2px solid var(--gray-300);
    padding-top: 10px;
    margin-top: 10px;
}

.order-actions-bottom {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
}

.order-actions-bottom .btn {
    flex: 1;
    padding: 12px 20px;
    font-weight: 600;
    border-radius: var(--border-radius);
}

/* Responsive Design */
@media (max-width: 768px) {
    .order-layout {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .products-list {
        grid-template-columns: 1fr;
    }
    
    .order-actions-bottom {
        flex-direction: column;
    }
    
    .order-actions-bottom .btn {
        width: 100%;
    }
}

/* Payment Modal Styles */
.payment-summary {
    background: var(--gray-50);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    border: 1px solid var(--gray-200);
}

.payment-summary h4 {
    margin: 0 0 15px 0;
    color: var(--gray-800);
    font-size: 1.2rem;
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--success);
    padding: 10px 0;
    border-top: 2px solid var(--gray-300);
    margin-top: 10px;
}

.payment-methods h4 {
    margin: 0 0 15px 0;
    color: var(--gray-800);
    font-size: 1.2rem;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.payment-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 15px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-blue);
    background: var(--white);
    color: var(--primary-blue);
}

.payment-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.payment-btn i {
    font-size: 1.5rem;
}

/* Dynamic Content Area */
#dynamic-content {
    display: none;
    grid-template-columns: 250px 1fr 300px;
    gap: 2rem;
    min-height: 600px;
}

#dynamic-content .loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#dynamic-content .error {
    text-align: center;
    color: var(--error);
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Takeaway Type Items */
.takeaway-type-item {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.takeaway-type-item:hover {
    background: var(--gray-50);
    border-color: var(--gray-200);
}

.takeaway-type-item.active {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.takeaway-type-item .area-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.takeaway-type-item .area-name i {
    font-size: 1.1rem;
}

.takeaway-type-item.active .area-name i {
    color: var(--white);
}

/* Create Order Button */
.create-order-btn {
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.create-order-btn:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 2rem;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.action-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.action-item i {
    font-size: 1.5rem;
    color: var(--primary-blue);
    width: 30px;
    text-align: center;
}

.action-info {
    flex: 1;
}

.action-title {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.action-count {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-blue);
}

/* Stats Section */
.stats-section {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}

.stats-section h4 {
    margin: 0 0 1rem 0;
    color: var(--gray-800);
    font-size: 1.1rem;
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: 0.5rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
}

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

.stat-label {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.stat-value {
    font-weight: 600;
    color: var(--gray-800);
}

/* Takeaway Order Modal */
.takeaway-modal {
    max-width: 1000px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Delivery Order Modal */
.delivery-modal {
    max-width: 1000px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
    margin: 0;
    color: var(--gray-800);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.order-type-selection {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
}

.type-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.type-option:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.type-option.active {
    border-color: var(--primary-blue);
    background: var(--light-blue);
}

.type-option i {
    font-size: 1.5rem;
    color: var(--gray-600);
}

.type-option.active i {
    color: var(--primary-blue);
}

.type-option span {
    font-weight: 600;
    color: var(--gray-800);
}

.customer-info-section,
.menu-selection-section,
.selected-items-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.customer-info-section h4,
.menu-selection-section h4,
.selected-items-section h4 {
    margin: 0 0 1rem 0;
    color: var(--gray-800);
    border-bottom: 2px solid var(--gray-200);
    padding-bottom: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--gray-700);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.delivery-section {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--success);
}

.category-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.category-tab {
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-tab:hover {
    background: var(--gray-200);
}

.category-tab.active {
    background: var(--primary-blue);
    color: var(--white);
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.menu-item {
    padding: 1rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-item:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.menu-item-name {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.menu-item-price {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.menu-item-description {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.menu-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--gray-300);
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    padding: 0.25rem;
}

.selected-items {
    max-height: 200px;
    overflow-y: auto;
}

.selected-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
}

.selected-item-info {
    flex: 1;
}

.selected-item-name {
    font-weight: 600;
    color: var(--gray-800);
}

.selected-item-price {
    color: var(--primary-blue);
    font-weight: 600;
}

.selected-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remove-item-btn {
    background: var(--error);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-item-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.order-summary {
    background: var(--gray-50);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.summary-row.total {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--gray-800);
    border-top: 2px solid var(--gray-300);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.no-selected-items,
.no-items {
    text-align: center;
    color: var(--gray-500);
    padding: 2rem;
}

.no-selected-items i,
.no-items i {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Modern Modal Styles */
.modern-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.modern-modal-container {
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    margin: 2rem;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.modern-modal-overlay.show .modern-modal-container {
    transform: scale(1) translateY(0);
}

.modern-modal {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.modern-modal-header {
    background: linear-gradient(135deg, var(--primary-blue), #4f46e5);
    color: var(--white);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.modern-modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.modal-title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.modal-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-title h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.modal-title p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.modern-modal-close {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 12px;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
}

.modern-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.modern-modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modern-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-100);
    overflow: hidden;
    transition: all 0.3s ease;
}

.modern-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--gray-200);
    position: relative;
}

.card-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.card-header h4 {
    margin: 0;
    color: var(--gray-800);
    font-size: 1.1rem;
    font-weight: 600;
}

.item-count {
    margin-left: auto;
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.card-content {
    padding: 1.5rem;
}

.modern-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.modern-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modern-form-group label {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.9rem;
}

.modern-input,
.modern-textarea {
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
    font-family: inherit;
}

.modern-input:focus,
.modern-textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.modern-textarea {
    resize: vertical;
    min-height: 80px;
}

.modern-category-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.modern-category-tab {
    padding: 0.75rem 1.25rem;
    background: var(--gray-100);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.modern-category-tab:hover {
    background: var(--gray-200);
    transform: translateY(-1px);
}

.modern-category-tab.active {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.modern-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.modern-menu-item {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modern-menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-blue), #4f46e5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-menu-item:hover {
    border-color: var(--primary-blue);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.2);
}

.modern-menu-item:hover::before {
    opacity: 0.05;
}

.modern-menu-item-name {
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.modern-menu-item-price {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.modern-menu-item-description {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

.modern-menu-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.modern-quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modern-quantity-btn {
    width: 36px;
    height: 36px;
    border: 2px solid var(--gray-300);
    background: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: var(--gray-600);
}

.modern-quantity-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    transform: scale(1.1);
}

.modern-quantity-input {
    width: 60px;
    text-align: center;
    border: 2px solid var(--gray-300);
    border-radius: 10px;
    padding: 0.5rem;
    font-weight: 600;
    background: var(--white);
}

.modern-selected-items {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.modern-selected-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.modern-selected-item:hover {
    background: var(--gray-100);
    transform: translateX(4px);
}

.modern-selected-item-info {
    flex: 1;
}

.modern-selected-item-name {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.modern-selected-item-price {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
}

.modern-selected-item-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modern-remove-item-btn {
    background: #ef4444;
    color: var(--white);
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.modern-remove-item-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.modern-modal-footer {
    background: var(--gray-50);
    padding: 2rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.order-summary {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.summary-item.total {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--gray-800);
    border-top: 2px solid var(--gray-300);
    padding-top: 0.75rem;
    margin-top: 0.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
}

.modern-btn {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 140px;
    justify-content: center;
}

.modern-btn.primary {
    background: linear-gradient(135deg, var(--primary-blue), #4f46e5);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.modern-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.modern-btn.secondary {
    background: var(--white);
    color: var(--gray-600);
    border: 2px solid var(--gray-300);
}

.modern-btn.secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
    transform: translateY(-1px);
}

.loading-state,
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--gray-500);
}

.loading-state .loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    color: var(--gray-400);
}

.empty-state p {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: var(--gray-600);
}

.empty-state small {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modern-modal-container {
        margin: 1rem;
        max-height: 95vh;
    }
    
    .modern-modal-header {
        padding: 1.5rem;
    }
    
    .modern-modal-body {
        padding: 1.5rem;
    }
    
    .modern-form-row {
        grid-template-columns: 1fr;
    }
    
    .modern-menu-grid {
        grid-template-columns: 1fr;
    }
    
    .modern-modal-footer {
        flex-direction: column;
        gap: 1rem;
    }
    
    .modal-actions {
        width: 100%;
    }
    
    .modern-btn {
        flex: 1;
    }
}

/* Coming Soon Content */
.coming-soon-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    color: var(--gray-500);
    text-align: center;
}

.coming-soon-content i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.coming-soon-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--gray-700);
}

.coming-soon-content p {
    font-size: 1.1rem;
    opacity: 0.7;
}

/* Legacy Modal Styles - Keeping for compatibility */
.table-popup-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.table-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    max-width: 1400px;
    height: 95%;
    max-height: 900px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.table-popup-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table-info h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.table-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.table-popup-body {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 0;
    overflow: hidden;
}

/* Menu Section */
.menu-section {
    background: #f8f9fa;
    padding: 1.5rem;
    overflow-y: auto;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.menu-header h3 {
    margin: 0;
    color: var(--gray-800);
}

.menu-search {
    position: relative;
    width: 250px;
}

.menu-search input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 25px;
    font-size: 0.9rem;
}

.menu-search i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
}

.categories-grid {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 1rem 1.5rem;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    flex-wrap: nowrap;
}

.categories-grid::-webkit-scrollbar {
    height: 4px;
}

.categories-grid::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 2px;
}

.categories-grid::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 2px;
}

.category-card {
    min-width: 6rem;
    padding: 1rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.category-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.category-card.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

.category-icon {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.category-name {
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.3;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
    padding: 1rem;
}

.category-products {
    display: none !important;
}

.category-products.active {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.5rem;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
    min-height: 80px;
    font-size: 0.75rem;
}

.product-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.add-product-btn {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 1.25rem;
    height: 1.25rem;
    background: var(--primary-blue);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 0.6rem;
    cursor: pointer;
    opacity: 0.9;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card:hover .add-product-btn {
    opacity: 1;
    transform: scale(1.1);
}

.add-product-btn:hover {
    background: var(--primary-blue-dark);
    transform: scale(1.1);
}

.product-image {
    width: 1.5rem;
    height: 1.5rem;
    background: var(--gray-100);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--gray-400);
}

.product-info h4 {
    margin: 0 0 0.125rem 0;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--gray-800);
}

.product-description {
    margin: 0 0 0.125rem 0;
    font-size: 0.55rem;
    color: var(--gray-500);
    min-height: 0.75rem;
}

.product-price {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.add-product-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.add-product-btn:hover {
    background: var(--secondary-blue);
    transform: scale(1.1);
}

/* Order Section */
.order-section {
    background: white;
    border-left: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

.current-order {
    flex: 1;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.order-header h3 {
    margin: 0;
    color: var(--gray-800);
}

.order-total {
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.order-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.order-item-info {
    flex: 1;
}

.order-item-name {
    font-weight: 500;
    color: var(--gray-800);
}

.order-item-price {
    color: var(--success);
    font-weight: 600;
}

.order-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border-radius: 20px;
    padding: 0.25rem;
}

.quantity-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.quantity-input {
    width: 30px;
    text-align: center;
    border: none;
    background: none;
    font-weight: 600;
}

.remove-item-btn {
    color: var(--error);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
}

.bill-summary {
    padding: 1.5rem;
    background: var(--gray-50);
}

.bill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.bill-header h3 {
    margin: 0;
    color: var(--gray-800);
}

.bill-details {
    margin-bottom: 1.5rem;
}

.bill-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.bill-item.total {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-blue);
    border-bottom: 2px solid var(--primary-blue);
}

.order-actions {
    padding: 1rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    flex-shrink: 0;
    background: white;
}

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

/* Responsive */
@media (max-width: 1200px) {
    .table-popup-content {
        width: 98%;
        height: 95%;
    }
    
    .table-popup-body {
        grid-template-columns: 1fr 350px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

@media (max-width: 768px) {
    .table-popup-content {
        height: 98%;
        max-height: none;
    }
    
    .table-popup-body {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
        height: calc(100% - 80px);
    }
    
    .order-section {
        border-left: none;
        border-top: 1px solid var(--gray-200);
        height: auto;
        max-height: 400px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .category-card {
        min-height: 80px;
        padding: 0.75rem;
    }
    
    .category-icon {
        font-size: 1.2rem;
    }
    
    .category-name {
        font-size: 0.8rem;
    }
    
    .product-card {
        min-height: 180px;
        padding: 0.75rem;
    }
    
    .product-image {
        width: 60px;
        height: 60px;
    }
    
    .product-image i {
        font-size: 1.5rem;
    }
}

