body { font-family: 'Prompt', sans-serif; padding: 15px; background-color: #f4f4f9; color: #333; margin: 0; }
.container { max-width: 850px; margin: 0 auto; background: white; padding: 20px; border-radius: 10px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.instructor-banner { background-color: #d1ecf1; color: #0c5460; padding: 12px; border-radius: 8px; border: 1px solid #bee5eb; margin-bottom: 20px; font-weight: 600; text-align: center; }
.team-input-box { text-align: center; margin-bottom: 20px; padding: 15px; background-color: #f8f9fa; border-radius: 8px; border: 1px dashed #ced4da; }
.input-row { margin-bottom: 15px; text-align: left; }
.input-row label { display: block; font-weight: 600; margin-bottom: 5px; color: #555; font-size: 0.95rem; }
.team-input-box input, .team-input-box select { font-family: 'Prompt', sans-serif; font-size: 1rem; padding: 10px; width: 100%; border: 2px solid #007bff; border-radius: 8px; box-sizing: border-box; outline: none; }
.settings-box { background-color: #e2e6ea; padding: 15px; border-radius: 8px; margin-bottom: 25px; border: 1px solid #ced4da; }
.settings-row { display: flex; align-items: center; justify-content: center; margin-bottom: 12px; gap: 15px; flex-wrap: wrap; }
.settings-row label { min-width: 140px; font-weight: 600; }
.input-group-tight { display: flex; align-items: center; gap: 10px; }
.input-group-tight input { font-family: 'Prompt', sans-serif; width: 80px; padding: 6px; text-align: center; border: 2px solid #adb5bd; border-radius: 6px; font-weight: 700; }
.timer-display { font-size: 5.5rem; font-weight: 700; text-align: center; margin: 10px 0; color: #222; font-variant-numeric: tabular-nums; }
.live-progress-container { width: 100%; height: 45px; background-color: #e9ecef; border-radius: 8px; position: relative; margin-bottom: 25px; overflow: hidden; border: 1px solid #ced4da; }
.live-safe-zone { position: absolute; top: 0; bottom: 0; background-color: rgba(40, 167, 69, 0.2); border-left: 2px dashed #1e7e34; border-right: 2px dashed #1e7e34; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 0 5px; }
.limit-label { font-size: 0.75rem; font-weight: 600; color: #155724; background-color: rgba(255, 255, 255, 0.8); padding: 2px 6px; border-radius: 4px; z-index: 10; }
.live-progress-bar { height: 100%; width: 0%; background-color: #ffc107; transition: width 1s linear; position: absolute; top: 0; left: 0; z-index: 2; opacity: 0.8; }
.controls { text-align: center; margin-bottom: 25px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
button { font-family: 'Prompt', sans-serif; font-weight: 600; padding: 12px 20px; font-size: 1.1rem; cursor: pointer; border: none; border-radius: 8px; color: white; min-width: 100px; flex: 1; max-width: 140px; transition: transform 0.1s; }
button:active { transform: scale(0.95); }
.btn-start { background-color: #28a745; }
.btn-pause { background-color: #ffc107; color: #333; }
.btn-stop { background-color: #dc3545; }
.btn-reset { background-color: #6c757d; }
button:disabled { background-color: #ccc !important; color: #666 !important; opacity: 0.7; cursor: not-allowed; }
#resultBox { display: none; padding: 20px; border-radius: 10px; margin-top: 20px; text-align: center; border: 1px solid #ddd; }
.history-section { margin-top: 40px; border-top: 2px dashed #ccc; padding-top: 20px; display: none; }
.table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 15px; border-radius: 8px; border: 1px solid #dee2e6; }
.history-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 750px; }
.history-table th, .history-table td { border: 1px solid #dee2e6; padding: 12px; text-align: center; white-space: nowrap; }
.history-table th { background-color: #f8f9fa; font-weight: 600; }
@media (max-width: 600px) { .timer-display { font-size: 4rem; } .container { padding: 15px; } }