* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #f5f0eb; color: #333; }

/* Login */
.login-container { display: flex; justify-content: center; align-items: center; min-height: 100vh; }
.login-card { background: #fff; padding: 3rem 2.5rem; border-radius: 16px; box-shadow: 0 4px 24px rgba(0,0,0,0.08); text-align: center; }
.login-card h1 { font-size: 1.8rem; margin-bottom: 0.5rem; color: #905c44; }
.login-card p { color: #666; margin-bottom: 2rem; }
.google-btn {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 12px 24px; border: 1px solid #ddd; border-radius: 8px;
    background: #fff; color: #333; text-decoration: none; font-size: 1rem;
    transition: box-shadow 0.2s;
}
.google-btn:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.12); }
.line-btn {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 12px 24px; border: none; border-radius: 8px;
    background: #06C755; color: #fff; text-decoration: none; font-size: 1rem;
    transition: box-shadow 0.2s; margin-bottom: 12px;
}
.line-btn:hover { box-shadow: 0 2px 12px rgba(6,199,85,0.4); }
.login-input { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 1rem; margin-bottom: 12px; }
.login-submit { width: 100%; padding: 12px; border: none; border-radius: 8px; background: #905c44; color: #fff; font-size: 1rem; cursor: pointer; }
.login-submit:hover { background: #7a4d39; }

/* Navbar */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 20px; background: #905c44; color: #fff;
    position: sticky; top: 0; z-index: 100;
}
.nav-brand { font-size: 1.2rem; font-weight: bold; }
.nav-user { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; }
.avatar { width: 32px; height: 32px; border-radius: 50%; }

/* Buttons */
.btn { padding: 6px 14px; border: none; border-radius: 6px; cursor: pointer; font-size: 0.85rem; background: rgba(255,255,255,0.2); color: #fff; text-decoration: none; }
.btn-primary { background: #905c44; color: #fff; }
.btn-danger { background: #e74c3c; color: #fff; }
.btn-sm { padding: 4px 10px; font-size: 0.8rem; }
.btn-block { width: 100%; padding: 14px; font-size: 1.1rem; border-radius: 10px; }

/* Container */
.container { max-width: 600px; margin: 0 auto; padding: 16px; }

/* Tabs */
.tabs { display: flex; gap: 0; margin-bottom: 16px; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.tab { flex: 1; padding: 12px; border: none; background: transparent; cursor: pointer; font-size: 0.95rem; color: #666; transition: all 0.2s; }
.tab.active { background: #905c44; color: #fff; font-weight: 600; }

/* Tab content */
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Menu */
.menu-category { background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.menu-category h2 { font-size: 1.2rem; color: #905c44; margin-bottom: 4px; }
.menu-note { font-size: 0.8rem; color: #e67e22; margin-bottom: 8px; }
.menu-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 8px; border-bottom: 1px solid #f0ebe6; cursor: pointer;
    transition: background 0.15s;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:hover { background: #faf6f2; }
.item-name { font-size: 0.95rem; }
.item-price { font-weight: 600; color: #905c44; white-space: nowrap; }
.addons-label { font-size: 0.8rem; color: #999; margin-top: 8px; padding-left: 8px; }
.addon-item .item-name { color: #888; font-size: 0.9rem; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: flex; justify-content: center; align-items: center; z-index: 200; }
.modal-content { background: #fff; border-radius: 16px; padding: 24px; width: 90%; max-width: 400px; }
.modal-content h3 { margin-bottom: 16px; color: #905c44; }
.option-group { margin-bottom: 16px; }
.option-group label { font-weight: 600; display: block; margin-bottom: 8px; }
.option-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-btn {
    padding: 8px 16px; border: 2px solid #ddd; border-radius: 8px;
    background: #fff; cursor: pointer; font-size: 0.9rem; transition: all 0.15s;
}
.opt-btn.selected { border-color: #905c44; background: #faf0e8; color: #905c44; font-weight: 600; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.modal-actions .btn { color: #333; background: #e0e0e0; }
.modal-actions .btn-primary { color: #fff; background: #905c44; }

/* Cart */
.cart-item {
    display: flex; align-items: center; gap: 10px;
    padding: 12px; background: #fff; border-radius: 10px; margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.cart-item-info { flex: 1; }
.cart-item-name { display: block; font-weight: 500; }
.cart-item-cat { font-size: 0.8rem; color: #999; }
.cart-item-price { font-weight: 600; color: #905c44; }
.cart-footer { margin-top: 16px; padding: 16px; background: #fff; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.cart-note { margin-bottom: 12px; }
.cart-note label { font-size: 0.9rem; color: #666; }
.cart-note input { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 8px; margin-top: 4px; font-size: 0.95rem; }
.cart-total { text-align: right; font-size: 1.3rem; margin-bottom: 12px; color: #905c44; }

/* Orders */
.order-card { background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.order-header { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 4px; }
.order-date { font-size: 0.8rem; color: #999; margin-bottom: 8px; }
.order-items-list { font-size: 0.9rem; color: #555; }
.order-items-list div { padding: 2px 0; }
.order-note { font-size: 0.85rem; color: #e67e22; margin-top: 8px; }
.order-total { text-align: right; font-weight: 600; color: #905c44; margin-top: 8px; }
.order-status { font-size: 0.8rem; padding: 2px 8px; border-radius: 10px; }
.status-pending { background: #ffeaa7; color: #d68910; }
.status-confirmed { background: #dfe6e9; color: #2d3436; }
.status-done { background: #a8e6cf; color: #27ae60; }
.order-source { font-size: 0.75rem; background: #eee; padding: 2px 8px; border-radius: 10px; }

/* Empty state */
.empty-state { text-align: center; color: #999; padding: 40px 0; }

/* Toast */
.toast {
    position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px);
    background: #333; color: #fff; padding: 10px 24px; border-radius: 24px;
    font-size: 0.9rem; opacity: 0; transition: all 0.3s; z-index: 999;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Admin */
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.admin-header input[type="date"] { padding: 8px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 0.95rem; }
.stats-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.stat-card { background: #fff; border-radius: 12px; padding: 20px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.stat-label { font-size: 0.85rem; color: #999; }
.stat-value { font-size: 1.8rem; font-weight: 700; color: #905c44; margin-top: 4px; }
.stats-table { width: 100%; background: #fff; border-radius: 12px; overflow: hidden; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.stats-table th { background: #905c44; color: #fff; padding: 10px; text-align: left; font-size: 0.9rem; }
.stats-table td { padding: 10px; border-bottom: 1px solid #f0ebe6; font-size: 0.9rem; }

h3 { margin-bottom: 12px; color: #905c44; }
