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

:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --success: #27ae60;
    --warning: #f39c12;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --gray: #95a5a6;
    --rush: #9b59b6;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: white;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Screen Management */
.screen {
    display: none;
    width: 100%;
    min-height: 100vh;
}

.screen.active {
    display: block;
}

/* Login Screen */
#loginScreen {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

#loginScreen.active {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.login-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    max-width: 450px;
    width: 100%;
    text-align: center;
}

.login-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-header p {
    color: var(--gray);
    margin-bottom: 30px;
}

.login-form {
    text-align: left;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark);
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.input-group select,
.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-group select:focus,
.input-group input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--success), #219a52);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(39, 174, 96, 0.3);
}

.login-btn:disabled {
    background: var(--gray);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.login-info {
    margin-top: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    font-size: 14px;
}

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

/* POS Screen */
#posScreen {
    display: none;
    width: 100%;
    min-height: 100vh;
    background: white;
}

#posScreen.active {
    display: block;
}

/* Professional Header */
.professional-header {
    background: white;
    padding: 15px 30px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
}

.header-left h1 {
    color: var(--dark);
    font-size: 1.5em;
    margin-bottom: 5px;
}

.session-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.staff-badge {
    background: var(--light);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.time-display {
    color: var(--gray);
    font-size: 14px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.active-orders {
    background: var(--warning);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
}

.order-count {
    background: white;
    color: var(--warning);
    padding: 2px 8px;
    border-radius: 10px;
    margin-right: 5px;
}

.manager-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.manager-btn:hover {
    background: #1a252f;
    transform: translateY(-2px);
}

.logout-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* Professional Layout */
.professional-layout {
    display: grid;
    grid-template-columns: 300px 1fr 350px;
    gap: 0;
    height: calc(100vh - 80px);
}

/* Tables Section */
.tables-section {
    background: #f8f9fa;
    padding: 20px;
    border-right: 1px solid #e9ecef;
    overflow-y: auto;
}

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

.section-header h3 {
    color: var(--dark);
}

.tables-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.table-item {
    background: white;
    border: 3px solid #e9ecef;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.table-item:hover {
    border-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.2);
}

.table-item.active {
    border-color: var(--success);
    background: #f8fff9;
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.2);
}

.table-item.closed {
    border-color: var(--accent);
    background: #fff5f5;
    cursor: not-allowed;
    opacity: 0.7;
}

.table-item.closed:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--accent);
}

.table-number {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--dark);
    margin-bottom: 10px;
}

.table-status {
    font-size: 0.9em;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
}

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

.table-status.closed {
    background: var(--accent);
    color: white;
}

.table-usage {
    font-size: 11px;
    color: var(--gray);
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
}

.rush-menu-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px dashed #e9ecef;
}

.rush-menu-section h4 {
    color: var(--rush);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rush-menu-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.rush-item {
    background: white;
    border: 2px solid var(--rush);
    border-radius: 10px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    line-height: 1.4;
}

.rush-item:hover {
    background: #f5e6ff;
    transform: translateY(-2px);
}

/* Main Order Section */
.main-order-section {
    padding: 20px;
    overflow-y: auto;
    background: white;
}

.current-order-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.current-order-header h3 {
    margin-bottom: 10px;
}

.order-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    opacity: 0.9;
}

/* Search */
.search-container {
    margin: 10px 0 20px 0;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.categories-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    margin-bottom: 20px;
}

.category-btn {
    padding: 12px 20px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-btn:hover {
    border-color: var(--secondary);
    background: #f0f8ff;
}

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

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

.menu-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: var(--secondary);
}

.menu-item.selected {
    border-color: var(--success);
    background: #f8fff9;
}

.menu-item.out-of-stock {
    border-color: #e74c3c !important;
    background: #fff5f5 !important;
    cursor: not-allowed;
}

.menu-item.out-of-stock:hover {
    transform: none;
    box-shadow: none;
    border-color: #e74c3c !important;
}

.menu-item.low-stock {
    border-color: var(--warning) !important;
    background: #fffaf0 !important;
}

.item-name {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
    line-height: 1.4;
}

.item-price {
    font-weight: bold;
    color: var(--success);
    font-size: 16px;
}

.item-category {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--secondary);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
}

.stock-status {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
}

.stock-status.out-of-stock {
    background: #e74c3c;
    color: white;
    animation: pulse 2s infinite;
}

.stock-status.low-stock {
    background: #f39c12;
    color: white;
}

.stock-status.in-stock {
    background: #27ae60;
    color: white;
}

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

/* Order Summary Panel */
.order-summary-panel {
    background: #f8f9fa;
    padding: 20px;
    border-left: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.summary-header h3 {
    color: var(--dark);
}

.btn-clear {
    background: var(--gray);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.order-items-list {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.item-details {
    flex: 1;
}

.item-details .item-name {
    font-size: 14px;
    margin-bottom: 3px;
}

.item-details .item-price {
    font-size: 12px;
    color: var(--gray);
}

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

.quantity-btn {
    width: 25px;
    height: 25px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.quantity-btn:hover {
    background: #f8f9fa;
}

.empty-state {
    text-align: center;
    color: var(--gray);
    padding: 40px 20px;
}

.empty-icon {
    font-size: 3em;
    margin-bottom: 10px;
    opacity: 0.5;
}

.order-totals {
    border-top: 2px solid #dee2e6;
    padding-top: 15px;
    margin-bottom: 20px;
}

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

.grand-total {
    font-size: 18px;
    font-weight: bold;
    color: var(--dark);
    border-top: 1px solid #dee2e6;
    padding-top: 10px;
    margin-top: 10px;
}

/* Upsell Section */
.upsell-section {
    background: #fffaf0;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px dashed var(--warning);
}

.upsell-section h4 {
    color: var(--warning);
    margin-bottom: 10px;
    text-align: center;
}

.upsell-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.upsell-btn {
    background: white;
    border: 2px solid var(--warning);
    border-radius: 8px;
    padding: 12px 10px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: var(--warning);
    transition: all 0.2s ease;
}

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

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.btn {
    padding: 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

.btn-save:hover {
    background: #2980b9;
}

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

.btn-checkout:hover {
    background: #219a52;
}

.btn-save:disabled,
.btn-checkout:disabled,
.btn-clear:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.active-orders-list {
    flex: 1;
    overflow-y: auto;
}

.active-orders-list h4 {
    margin-bottom: 10px;
    color: var(--dark);
}

.active-order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 12px;
}

.active-order-item button {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

/* Manager Dashboard Styles */
#managerDashboard {
    display: none;
    width: 100%;
    min-height: 100vh;
    background: #f8f9fa;
}

#managerDashboard.active {
    display: block;
}

.btn-back {
    background: var(--gray);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    margin-right: 10px;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 0;
    height: calc(100vh - 80px);
}

.dashboard-sidebar {
    background: white;
    padding: 20px;
    border-right: 1px solid #e9ecef;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-btn {
    padding: 15px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    font-weight: 500;
    transition: all 0.3s ease;
}

.menu-btn:hover {
    border-color: var(--secondary);
    background: #f0f8ff;
}

.menu-btn.active {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.dashboard-content {
    padding: 30px;
    overflow-y: auto;
    background: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.tab-header h2 {
    color: var(--dark);
    margin: 0;
}

.btn-primary {
    background: var(--success);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #219a52;
    transform: translateY(-2px);
}

.btn-primary:disabled {
    background: var(--gray);
    cursor: not-allowed;
    transform: none;
}

/* Report Controls */
.report-controls {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px solid #e9ecef;
}

.report-filters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    align-items: end;
}

.report-filters .form-group {
    margin-bottom: 0;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Report Statistics */
.report-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--gray);
    font-size: 14px;
}

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

.inventory-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.inventory-item.low-stock {
    border-color: var(--warning);
    background: #fffaf0;
}

.inventory-item.out-of-stock {
    border-color: var(--accent);
    background: #fff5f5;
}

.inventory-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.inventory-info {
    flex: 1;
}

.inventory-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--dark);
}

.inventory-category {
    font-size: 12px;
    color: var(--gray);
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 5px;
}

.inventory-stock {
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

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

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

.stock-out {
    background: var(--accent);
    color: white;
}

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

.stock-info {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 5px;
}

.stock-value {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e9ecef;
    color: var(--success);
    font-weight: 600;
}

.inventory-controls {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-small {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

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

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

.empty-inventory {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.empty-inventory .empty-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-inventory h3 {
    margin-bottom: 10px;
    color: var(--dark);
}

.empty-inventory p {
    margin-bottom: 20px;
}

/* Staff List */
.staff-list {
    display: grid;
    gap: 15px;
}

.staff-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.staff-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.staff-info h4 {
    margin: 0 0 5px 0;
    color: var(--dark);
}

.staff-role {
    color: var(--gray);
    font-size: 14px;
}

.staff-id {
    font-size: 12px;
    color: #666;
}

.staff-performance {
    text-align: right;
}

.performance-metric {
    font-size: 14px;
    margin-bottom: 5px;
}

.staff-controls {
    display: flex;
    gap: 10px;
}

/* Customer List */
.customers-list {
    display: grid;
    gap: 15px;
}

.customer-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.customer-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.customer-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.customer-info {
    flex: 1;
}

.customer-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--dark);
    margin-bottom: 5px;
}

.customer-phone {
    color: var(--gray);
    font-size: 14px;
}

.customer-stats {
    text-align: right;
}

.customer-total {
    font-weight: bold;
    color: var(--success);
    font-size: 18px;
}

.customer-details {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 10px;
}

.customer-details div {
    margin-bottom: 5px;
}

.customer-orders {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #e9ecef;
}

.order-history-item {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 12px;
}

.order-history-item .staff-name {
    color: var(--secondary);
    font-weight: 600;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 0;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px 20px;
    border-bottom: 2px solid #e9ecef;
}

.modal-header h3 {
    margin: 0;
    color: var(--dark);
    font-size: 1.3em;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray);
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f8f9fa;
    color: var(--accent);
}

/* Form Styles */
form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group input::placeholder {
    color: #adb5bd;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

/* Modal Actions */
.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.btn-secondary {
    background: var(--gray);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #7b8a8b;
    transform: translateY(-1px);
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-left: 4px solid var(--success);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10001;
    max-width: 350px;
}

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

.notification-error {
    border-left-color: var(--accent);
}

.notification-info {
    border-left-color: var(--secondary);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-icon {
    font-size: 1.2em;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .professional-layout {
        grid-template-columns: 250px 1fr;
    }
    
    .order-summary-panel {
        position: fixed;
        right: -400px;
        top: 80px;
        width: 350px;
        height: calc(100vh - 80px);
        transition: right 0.3s ease;
        z-index: 1000;
    }
}

@media (max-width: 768px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sidebar {
        display: none;
    }
    
    .tab-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .report-filters {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10px;
        max-width: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions button {
        width: 100%;
    }
    
    .notification {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .inventory-grid {
        grid-template-columns: 1fr;
    }
    
    .inventory-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .inventory-controls {
        flex-direction: column;
    }
    
    .inventory-controls button {
        width: 100%;
    }
    
    .staff-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .staff-performance {
        text-align: left;
        width: 100%;
    }
    
    .staff-controls {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ==================== */
/* ANIMATED BACKGROUND - WORKING VERSION */
/* ==================== */

/* Key trick: Use ::before pseudo-element on body */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: bgAnimation 15s infinite ease-in-out;
    opacity: 0.5; /* Adjust this for visibility */
}

/* Animation definition */
@keyframes bgAnimation {
    0% {
        background-image: url('logo.jpg');
    }
    33.33% {
        background-image: url('logo1.jpg');
    }
    66.66% {
        background-image: url('logo2.jpg');
    }
    100% {
        background-image: url('logo.jpg');
    }
}

/* Make sure content backgrounds are opaque */
#loginScreen.active {
    background: none !important; /* Remove any background */
}

.login-container {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Make POS screen background transparent */
#posScreen.active,
#managerDashboard.active {
    background: transparent !important;
}

.professional-layout,
.dashboard-layout {
    background: rgba(255, 255, 255, 0.98) !important;
}

/* Add to your existing CSS file */

/* Order Type Buttons */
.order-type-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.order-type-btn.active {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.order-type-btn:hover {
    border-color: var(--secondary);
}

/* Manager Edit Buttons */
.menu-item-edit-btns {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    z-index: 10;
}

.menu-item-edit-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.menu-item-edit-btn:hover {
    transform: scale(1.1);
}

.edit-btn {
    background: #007bff;
    color: white;
}

.delete-btn {
    background: #dc3545;
    color: white;
}

/* Report Filters */
.report-controls {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px solid #e9ecef;
}

.report-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.report-filters .form-group {
    margin-bottom: 0;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Staff Management Controls */
.staff-controls {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-edit-staff {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.btn-delete-staff {
    background: var(--accent);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

/* Order Type Badge */
.order-type-badge {
    background: #28a745;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.order-type-badge.delivery {
    background: #17a2b8;
}

/* Stock Status Indicators */
.stock-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    z-index: 5;
}

.stock-out {
    background: #e74c3c;
    color: white;
}

.stock-low {
    background: #f39c12;
    color: white;
}

.stock-good {
    background: #27ae60;
    color: white;
}

/* Customer Info in Order */
.customer-info-section {
    background: #e9f7fe;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #007bff;
}

.customer-info-section h4 {
    margin-bottom: 10px;
    color: #2c3e50;
}

/* Modal Styles for Add Item */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 0;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px 20px;
    border-bottom: 2px solid #e9ecef;
}

.modal-header h3 {
    margin: 0;
    color: var(--dark);
    font-size: 1.3em;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray);
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f8f9fa;
    color: var(--accent);
}

/* Form Styles in Modal */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Modal Actions */
.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.btn-secondary {
    background: var(--gray);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #7b8a8b;
    transform: translateY(-1px);
}

/* Customer Form Section */
.customer-form-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px dashed #dee2e6;
}

/* Add these styles to your existing CSS file */

/* Payment Section */
.payment-section {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.payment-section h4 {
    margin-bottom: 10px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.payment-btn {
    padding: 12px 10px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.payment-btn:hover {
    border-color: var(--secondary);
    background: #f0f8ff;
}

.payment-btn.active {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.payment-btn.cash {
    border-color: #28a745;
}

.payment-btn.cash.active {
    background: #28a745;
    border-color: #28a745;
}

.payment-btn.transfer {
    border-color: #007bff;
}

.payment-btn.transfer.active {
    background: #007bff;
    border-color: #007bff;
}

.payment-btn.atm {
    border-color: #6c757d;
}

.payment-btn.atm.active {
    background: #6c757d;
    border-color: #6c757d;
}

.payment-btn.pos {
    border-color: #17a2b8;
}

.payment-btn.pos.active {
    background: #17a2b8;
    border-color: #17a2b8;
}

#paymentReference {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 12px;
    transition: all 0.3s ease;
}

#paymentReference:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Payment Status Indicators */
.payment-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    margin-left: 5px;
}

.payment-cash {
    background: #d4edda;
    color: #155724;
}

.payment-transfer {
    background: #cce5ff;
    color: #004085;
}

.payment-atm {
    background: #e2e3e5;
    color: #383d41;
}

.payment-pos {
    background: #d1ecf1;
    color: #0c5460;
}

/* Receipt Payment Info */
.receipt-payment {
    margin: 10px 0;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 5px;
    font-weight: bold;
}

.receipt-reference {
    font-size: 11px;
    color: #666;
    margin-top: 3px;
}



/* Add to your existing CSS file */

/* Order Type Buttons */
.order-type-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.order-type-btn.active {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.order-type-btn:hover {
    border-color: var(--secondary);
}

/* Manager Edit Buttons */
.menu-item-edit-btns {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 5px;
    z-index: 10;
}

.menu-item-edit-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.menu-item-edit-btn:hover {
    transform: scale(1.1);
}

.edit-btn {
    background: #007bff;
    color: white;
}

.delete-btn {
    background: #dc3545;
    color: white;
}

/* Report Filters */
.report-controls {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px solid #e9ecef;
}

.report-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.report-filters .form-group {
    margin-bottom: 0;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Staff Management Controls */
.staff-controls {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-edit-staff {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.btn-delete-staff {
    background: var(--accent);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

/* Order Type Badge */
.order-type-badge {
    background: #28a745;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.order-type-badge.delivery {
    background: #17a2b8;
}

/* Stock Status Indicators */
.stock-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    z-index: 5;
}

.stock-out {
    background: #e74c3c;
    color: white;
}

.stock-low {
    background: #f39c12;
    color: white;
}

.stock-good {
    background: #27ae60;
    color: white;
}

/* Customer Info in Order */
.customer-info-section {
    background: #e9f7fe;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #007bff;
}

.customer-info-section h4 {
    margin-bottom: 10px;
    color: #2c3e50;
}

/* Modal Styles for Add Item */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 0;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px 20px;
    border-bottom: 2px solid #e9ecef;
}

.modal-header h3 {
    margin: 0;
    color: var(--dark);
    font-size: 1.3em;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray);
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f8f9fa;
    color: var(--accent);
}

/* Form Styles in Modal */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Modal Actions */
.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.btn-secondary {
    background: var(--gray);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #7b8a8b;
    transform: translateY(-1px);
}

/* Customer Form Section */
.customer-form-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px dashed #dee2e6;
}