/* --- LOGIN MODAL --- */
.login-card { background: white; width: 85%; max-width: 350px; border-radius: 24px; padding: 0; box-shadow: 0 10px 40px rgba(0,0,0,0.2); overflow: hidden; animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes zoomIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.login-header { background: #1B4D3E; color: white; padding: 30px 20px 20px; text-align: center; }
.login-icon { width: 60px; height: 60px; background: rgba(255,255,255,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; font-size: 24px; border: 2px solid rgba(255,255,255,0.3); }
.login-body { padding: 25px; }
.login-input-group { position: relative; margin-bottom: 15px; }
.login-input-group i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #1B4D3E; font-size: 1rem; opacity: 0.6; }
.login-input-group input { width: 100%; padding: 14px 15px 14px 45px; border: 2px solid #eee; border-radius: 12px; font-size: 1rem; outline: none; background: #f9f9f9; }
.login-input-group input:focus { border-color: #1B4D3E; background: white; }
.btn-login-submit { width: 100%; padding: 14px; background: #1B4D3E; color: white; border: none; border-radius: 12px; font-weight: bold; font-size: 1rem; cursor: pointer; margin-top: 10px; }
.btn-login-cancel { width: 100%; padding: 12px; background: transparent; color: #777; border: none; margin-top: 5px; cursor: pointer; }

/* --- STICKY CART BAR --- */
.cart-sticky-bar { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); width: 92%; max-width: 500px; background-color: #1B4D3E; color: white; padding: 12px 20px; border-radius: 16px; display: none; justify-content: space-between; align-items: center; box-shadow: 0 10px 25px rgba(27, 77, 62, 0.3); z-index: 1100; cursor: pointer; backdrop-filter: blur(10px); }
.cart-sticky-bar.active { display: flex; animation: slideUpBar 0.4s cubic-bezier(0.19, 1, 0.22, 1); }
@keyframes slideUpBar { from { transform: translate(-50%, 100px); } to { transform: translate(-50%, 0); } }
.view-cart-text { font-size: 0.9rem; display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.15); padding: 5px 12px; border-radius: 20px; }

/* --- MODALS --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 2000; display: none; align-items: flex-end; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.modal-overlay.active { display: flex; }
.modal-overlay.center-mode { align-items: center; justify-content: center; }
.modal-content { background: white; width: 100%; max-width: 600px; margin: 0 auto; border-radius: 24px 24px 0 0; padding: 25px; max-height: 90vh; overflow-y: auto; animation: slideUp 0.3s ease-out; display: flex; flex-direction: column; padding-bottom: 40px; box-shadow: 0 -10px 40px rgba(0,0,0,0.1); }
.center-mode .modal-content { border-radius: 24px; width: 90%; max-width: 400px; padding: 30px; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* --- CART ITEMS & NOTES --- */
.modal-header-custom { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.close-modal-btn { width: 36px; height: 36px; background: #f0f2f5; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #555; }
.cart-item { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid #f0f0f0; }
.note-section { margin-top: 20px; background: #fafafa; padding: 15px; border-radius: 12px; border: 1px solid #eee; }
.order-note-input { width: 100%; padding: 12px; border: 2px solid #e0e0e0; border-radius: 8px; font-family: 'Inter', sans-serif; resize: none; outline: none; background: white; }
.order-note-input:focus { border-color: #1B4D3E; }
.cart-table-badge { background: #e8f5e9; color: #1B4D3E; padding: 10px; border-radius: 8px; text-align: center; margin-bottom: 15px; font-weight: 800; border: 1px dashed #2ecc71; }

/* --- GARSON EKRANI (ACTIVE TABLES) --- */
.smart-search-box { position: relative; margin-bottom: 15px; }
.smart-search-box input { width: 100%; padding: 12px 15px 12px 40px; border: 2px solid #3498db; border-radius: 12px; outline: none; font-weight: bold; color: #3498db; background: #f0f8ff; }
.smart-search-box i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #3498db; }
.waiter-input-wrapper { position: relative; margin-bottom: 20px; text-align: center; }
.waiter-input-icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: #1B4D3E; opacity: 0.5; font-size: 1.5rem; }
.waiter-table-input { width: 100%; padding: 20px; padding-left: 50px; font-size: 1.8rem; font-weight: 800; color: #2C3E50; text-align: center; border: 2px solid #e0e0e0; border-radius: 16px; background: #fafafa; }
.waiter-table-input:focus { border-color: #1B4D3E; background: white; }

.at-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; padding: 5px; }
.at-card { background: white; border-radius: 12px; box-shadow: 0 3px 10px rgba(0,0,0,0.05); overflow: hidden; border: 1px solid #eee; display: flex; flex-direction: column; }
.at-card.status-fresh { border-top: 4px solid #2ecc71; }
.at-card.status-mid { border-top: 4px solid #f39c12; }
.at-card.status-old { border-top: 4px solid #e74c3c; }
.at-header { padding: 10px; text-align: center; cursor: pointer; background: #fdfdfd; }
.at-table-no { font-size: 1.2rem; font-weight: 800; color: #2C3E50; }
.at-total { font-size: 0.9rem; font-weight: 700; color: #1B4D3E; background: #e8f5e9; padding: 2px 8px; border-radius: 10px; margin-top: 5px; display: inline-block; }
.at-body { background: white; padding: 0 10px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out, padding 0.3s ease; }
.at-body.open { padding: 10px; max-height: 300px; overflow-y: auto; }
.at-item { display: flex; justify-content: space-between; font-size: 0.8rem; border-bottom: 1px dashed #f0f0f0; padding: 4px 0; }

.place-order-btn { width: 100%; padding: 16px; background: #1B4D3E; color: white; border: none; border-radius: 12px; font-weight: bold; margin-top: 20px; cursor: pointer; font-size: 1.1rem; box-shadow: 0 4px 12px rgba(27, 77, 62, 0.2); }
.waiter-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.waiter-btn-opt { background: white; border: 1px solid #eee; padding: 15px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.02); }
.waiter-btn-opt:active { transform: scale(0.96); background: #f9f9f9; }
.waiter-btn-opt i { font-size: 28px; margin-bottom: 8px; }
.waiter-btn-opt span { font-weight: 600; font-size: 0.9rem; }
.waiter-btn-opt.type-call i { color: #f39c12; }
.waiter-btn-opt.type-bill i { color: #e74c3c; }
.waiter-btn-opt.type-water i { color: #3498db; }
.waiter-btn-opt.type-other i { color: #9b59b6; }