/* Basic Reset */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; -webkit-tap-highlight-color: transparent; }
body { background-color: #e9ecef; display: flex; justify-content: center; height: 100vh; overflow: hidden; }

/* Mobile App Container */
.app-container { width: 100%; max-width: 480px; background-color: #fbfbfb; height: 100%; position: relative; display: flex; flex-direction: column; box-shadow: 0 0 20px rgba(0,0,0,0.1); }

/* Header */
.app-header { background-color: #ffffff; padding: 20px 20px 15px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 10px rgba(0,0,0,0.03); z-index: 10; }
.app-header h1 { font-size: 22px; color: #2c3e50; font-weight: 700; }
.app-header h1 span { color: #d4828f; }

/* Scrollable Content */
.app-content { flex: 1; overflow-y: auto; padding: 20px; padding-bottom: 90px; }
.app-content::-webkit-scrollbar { display: none; }

/* Dashboard Stats Grid */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 25px; }
.stat-card { background: #ffffff; padding: 15px; border-radius: 16px; box-shadow: 0 4px 15px rgba(0,0,0,0.02); border: 1px solid #f0f0f0; }
.stat-card .icon-box { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; font-size: 18px; }
.bg-pink { background: #fce8eb; color: #d4828f; }
.bg-blue { background: #e8f0fe; color: #4285f4; }
.bg-green { background: #e6f4ea; color: #34a853; }
.bg-orange { background: #fef1e6; color: #fa903e; }
.stat-card h3 { font-size: 24px; color: #2c3e50; margin-bottom: 5px; }
.stat-card p { font-size: 13px; color: #7f8c8d; font-weight: 500; }

.section-title { font-size: 18px; color: #2c3e50; margin-bottom: 15px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; }

/* Order List */
.order-list { display: flex; flex-direction: column; gap: 12px; }
.order-item { background: #ffffff; padding: 15px; border-radius: 16px; display: flex; align-items: center; box-shadow: 0 4px 15px rgba(0,0,0,0.02); border: 1px solid #f0f0f0; }
.order-avatar { width: 50px; height: 50px; border-radius: 12px; background: #f4f6f9; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #d4828f; margin-right: 15px; flex-shrink: 0; }
.order-details { flex: 1; }
.order-details h4 { font-size: 15px; color: #2c3e50; margin-bottom: 2px; }
.order-details p { font-size: 12px; color: #7f8c8d; margin-bottom: 2px;}
.order-details .extras { font-size: 11px; color: #d4828f; font-weight: 600;}
.order-details .phone-txt { font-size: 11px; color: #a0aab5; margin-bottom: 2px;}
.order-status { text-align: right; }
.status-badge { padding: 5px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; display: inline-block; cursor: pointer; }
.status-pending { background: #fff5e6; color: #fa903e; }
.status-completed { background: #e6f4ea; color: #34a853; }
.order-price { font-size: 14px; font-weight: 700; color: #2c3e50; }

/* Edit Button & BEAUTIFUL Progression Status */
.status-row { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-bottom: 5px; }
.edit-btn { background: #f0f0f0; border: none; width: 26px; height: 26px; border-radius: 50%; color: #555; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 11px; transition: 0.3s; }
.edit-btn:hover { background: #d4828f; color: white; }

.progression-txt { font-size: 11px; font-weight: 600; margin-top: 6px; padding: 4px 8px; border-radius: 6px; display: inline-flex; align-items: center; gap: 5px; justify-content: center;}
.prog-in-progress { background: #e8f0fe; color: #4285f4; border: 1px solid #d2e3fc;}
.prog-at-shop { background: #fff0d4; color: #d97706; border: 1px solid #ffe3b3;}
.prog-client-collected { background: #e6f4ea; color: #34a853; border: 1px solid #ceead6;}

/* Bottom Nav */
.bottom-nav { position: absolute; bottom: 0; left: 0; width: 100%; background: #ffffff; display: flex; justify-content: space-around; padding: 10px 5px 20px 5px; box-shadow: 0 -5px 20px rgba(0,0,0,0.05); border-top-left-radius: 20px; border-top-right-radius: 20px; z-index: 10; }
.nav-item { display: flex; flex-direction: column; align-items: center; color: #a0aab5; font-size: 10px; font-weight: 600; gap: 5px; cursor: pointer; flex: 1; transition: 0.3s; }
.nav-item i { font-size: 20px; margin-bottom: 3px; }
.nav-item.active { color: #d4828f; }
.nav-item-add { position: relative; top: -25px; flex: 0.7; }
.nav-item-add .add-btn { width: 55px; height: 55px; background: #d4828f; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 5px 15px rgba(212, 130, 143, 0.4); font-size: 24px; }

.view-section { display: none; animation: fadeIn 0.3s; }
.view-section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* History Actions */
.history-actions { display: flex; flex-direction: column; gap: 8px; margin-left: 10px;}
.action-btn { padding: 6px 12px; border-radius: 8px; border: none; font-size: 11px; font-weight: 600; cursor: pointer; color: white; display: flex; align-items: center; justify-content: center; gap: 5px; }
.btn-wa { background: #25D366; }
.btn-del { background: #ff4d4f; }

/* Modals */
.modal-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 100; display: none; align-items: flex-end; justify-content: center; }
.modal-overlay.active { display: flex; animation: fadeIn 0.2s; }
.modal-content { background: #fff; width: 100%; border-top-left-radius: 25px; border-top-right-radius: 25px; padding: 25px; padding-bottom: 40px; box-shadow: 0 -10px 20px rgba(0,0,0,0.1); max-height: 90vh; overflow-y: auto; }

.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-header h2 { font-size: 20px; color: #2c3e50; }
.close-btn { background: none; border: none; font-size: 20px; color: #888; cursor: pointer; }

.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 13px; color: #7f8c8d; margin-bottom: 8px; font-weight: 600; }
.form-control { width: 100%; padding: 12px 15px; border: 1px solid #e0e0e0; border-radius: 12px; font-size: 14px; background: #f9f9f9; outline: none; }
textarea.form-control { resize: vertical; }

/* Chips Selection */
.chips-container { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 15px; background: #f0f0f0; border-radius: 20px; font-size: 13px; color: #555; cursor: pointer; border: 1px solid transparent; }
.chip.active { background: #fce8eb; color: #d4828f; border-color: #d4828f; font-weight: 600; }

/* Quantity Stepper */
.qty-stepper { display: flex; align-items: center; gap: 15px; }
.qty-btn { width: 35px; height: 35px; border-radius: 50%; background: #f0f0f0; border: none; font-size: 18px; font-weight: bold; color: #333; cursor: pointer; }
.qty-val { font-size: 16px; font-weight: bold; width: 30px; text-align: center; }

/* Checkboxes & Radios */
.extras-list { display: flex; flex-direction: column; gap: 10px; }
.extra-item { display: flex; justify-content: space-between; align-items: center; background: #f9f9f9; padding: 10px 15px; border-radius: 10px; border: 1px solid #eee; cursor: pointer;}
.extra-item label { margin: 0; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 10px; width: 100%; cursor: pointer;}
.extra-item input { width: 18px; height: 18px; accent-color: #d4828f; cursor: pointer;}

/* Total Price */
.total-display { background: #2c3e50; color: white; padding: 15px; border-radius: 12px; display: flex; justify-content: space-between; align-items: center; margin-top: 20px; margin-bottom: 10px; }
.total-display h3 { font-size: 22px; margin: 0; color: #d4828f;}

.submit-btn { width: 100%; background: #d4828f; color: #fff; border: none; padding: 15px; border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer; }

/* Settings UI - DYNAMIC */
.setting-card { background: #fff; padding: 15px; border-radius: 12px; margin-bottom: 15px; border: 1px solid #f0f0f0; }
.setting-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px dashed #eee; font-size: 14px; font-weight: 500;}
.setting-item:last-child { border: none; margin-bottom: 0; padding-bottom: 0; }

.setting-controls { display: flex; align-items: center; gap: 8px; }
.setting-controls input { width: 75px; padding: 6px 10px; border: 1px solid #ccc; border-radius: 6px; text-align: right; font-weight: 600;}
.del-btn { background: #ffeaeb; color: #ff4d4f; border: none; width: 32px; height: 32px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center;}

.add-setting-btn {
    width: 100%; padding: 12px; border: 2px dashed #d4828f; border-radius: 12px;
    background: #fbfbfb; color: #d4828f; font-weight: 600; font-size: 14px;
    cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 8px;
    margin-top: 15px; transition: 0.3s;
}
.add-setting-btn:hover { background: #fce8eb; }
