:root { --main-color: #ff8c00; --bg-color: #121212; --card-bg: #1e1e1e; --success: #28a745; --danger: #dc3545; --warning: #ffc107;}
body { background-color: var(--bg-color); color: #ffffff; font-family: 'Segoe UI', Roboto, sans-serif; margin: 0; }
.header { background: var(--card-bg); padding: 15px; display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--main-color); }
.content { padding: 15px; }
.btn { background: var(--main-color); color: #fff; border: none; padding: 12px; border-radius: 10px; font-weight: bold; width: 100%; margin-bottom: 10px; cursor: pointer; transition: 0.2s;}
.btn-sec { background: #333; }
.btn-skip { background: #555; font-size: 14px; padding: 10px; flex: 1;}
.input-row { display: flex; gap: 10px; margin-bottom: 10px; align-items: center;}
.search-input { width: 100%; padding: 12px; border-radius: 8px; border: none; background: #2a2a2a; color: #fff; outline: none; font-size: 16px; text-align: center;}
.video-player { width: 100%; border-radius: 12px; background: #000; margin-bottom: 10px; max-height: 35vh; object-fit: contain; }
.progress-container { background: #333; height: 6px; border-radius: 3px; margin-bottom: 15px; width: 100%; }
.progress-bar { background: var(--main-color); height: 100%; width: 0%; border-radius: 3px; transition: width 0.4s ease; }
.set-list { background: #1a1a1a; border-radius: 10px; padding: 10px; margin-bottom: 15px; border: 1px solid #333; }
.set-item { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid #222; font-size: 14px; align-items: center;}
.set-item:last-child { border-bottom: none; }
.set-num { color: var(--main-color); font-weight: bold; }
.timer-wrap { text-align: center; margin-bottom: 15px; background: #1a1a1a; padding: 15px; border-radius: 12px; border: 1px solid #333;}
.timer-val { font-size: 48px; font-weight: bold; color: var(--main-color); margin: 0 0 10px 0; font-variant-numeric: tabular-nums;}
.timer-controls { display: flex; justify-content: center; gap: 10px; margin-bottom: 10px;}
.screen { display: none; }
.active-screen { display: block; }
.modal { display: none; position: fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.9); z-index:100; flex-direction:column; align-items:center; justify-content:center; padding:20px; box-sizing:border-box;}
.kcal-badge { background: #333; padding: 5px 10px; border-radius: 15px; font-size: 14px; font-weight: bold; color: #ff8c00;}

/* STEPPERS */
.stepper { display: flex; align-items: center; gap: 5px; flex: 1; }
.btn-step { background: #333; color: #fff; border: 1px solid #444; width: 40px; height: 45px; border-radius: 8px; font-size: 20px; font-weight: bold; cursor: pointer; }
.btn-step:active { background: var(--main-color); color: #000; }

/* SUMMARY */
.summary-box { background: var(--card-bg); border-radius: 20px; padding: 25px; width: 100%; box-sizing: border-box; text-align: center; border: 2px solid var(--main-color); }
.summary-val { font-size: 32px; font-weight: bold; color: var(--main-color); margin: 10px 0; }
.summary-label { font-size: 14px; color: #888; text-transform: uppercase; letter-spacing: 1px; }

.filter-scroll { display: flex; overflow-x: auto; gap: 10px; padding-bottom: 10px; margin-bottom: 15px; }
.filter-scroll::-webkit-scrollbar { display: none; }
.filter-chip { background: #333; padding: 8px 15px; border-radius: 20px; font-size: 13px; white-space: nowrap; cursor: pointer; border: 1px solid #444; transition: 0.2s;}
.filter-chip.active { background: var(--main-color); border-color: var(--main-color); color: #000; font-weight: bold; }
.history-card { background: var(--card-bg); border-radius: 12px; padding: 15px; margin-bottom: 10px; border-left: 4px solid var(--main-color); text-align: left;}

/* TABS FOR MODAL */
.tabs { display: flex; background: #222; border-radius: 10px; margin-bottom: 15px; overflow: hidden; }
.tab-btn { flex: 1; padding: 10px; background: transparent; color: #888; border: none; font-weight: bold; cursor: pointer; transition: 0.3s; font-size: 14px;}
.tab-btn.active-tab-btn { background: var(--main-color); color: #000; }
.tab-content { display: none; flex: 1; overflow-y: auto; flex-direction: column; }
.tab-content.active-tab { display: flex; }
.mini-history-item { background: #2a2a2a; padding: 10px; border-radius: 8px; margin-bottom: 8px; font-size: 13px; display: flex; justify-content: space-between; border-left: 3px solid var(--main-color); }

/* BOTTOM SHEET */
.sheet-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 200; }
.bottom-sheet { position: fixed; bottom: -100%; left: 0; width: 100%; background: var(--card-bg); border-radius: 20px 20px 0 0; padding: 20px; box-sizing: border-box; z-index: 201; transition: bottom 0.3s ease-out; }
.bottom-sheet.active-sheet { bottom: 0; }
.sheet-header { font-size: 16px; font-weight: bold; color: #888; margin-bottom: 15px; text-align: center; text-transform: uppercase; letter-spacing: 1px;}
.sheet-item { padding: 18px 0; border-bottom: 1px solid #333; font-size: 16px; cursor: pointer; color: #fff; font-weight: bold;}
.sheet-item:last-child { border-bottom: none; }

/* QUEUE STYLES */
.queue-item { display:flex; align-items:center; justify-content:space-between; padding:12px; background:#2a2a2a; margin-bottom:8px; border-radius:8px; transition:0.2s;}
.queue-item.active-q { border: 2px solid var(--main-color); background: #332200; }
.q-controls { display:flex; gap:5px; }
.q-btn { background:#444; color:#fff; border:none; padding:8px 12px; border-radius:6px; font-weight:bold; cursor:pointer;}
.q-btn:active { background:var(--main-color); color:#000; }
