/* Public/Frontend Base CSS */
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: #f4f7f6; margin: 0; padding: 0; color: #333; }
.md-container { max-width: 800px; margin: 40px auto; padding: 30px; background: #fff; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.md-container h2 { text-align: center; color: #2c3e50; margin-bottom: 30px; }

/* Alerts */
.alert { padding: 15px; margin-bottom: 20px; border-radius: 4px; font-weight: bold; }
.alert.success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert.error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert.info { background-color: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #34495e; }
.form-control { width: 100%; padding: 12px; border: 1px solid #cbd5e0; border-radius: 6px; box-sizing: border-box; font-size: 16px; transition: border-color 0.2s; }
.form-control:focus { border-color: #3498db; outline: none; box-shadow: 0 0 0 3px rgba(52,152,219,0.1); }
textarea.form-control { resize: vertical; min-height: 100px; }

/* Checkboxes */
.checkbox-group { display: flex; align-items: flex-start; margin-bottom: 15px; gap: 10px; }
.checkbox-group input[type="checkbox"] { margin-top: 5px; }
.checkbox-group label { font-weight: normal; font-size: 14px; line-height: 1.4; }

/* Buttons */
.btn { display: inline-block; padding: 12px 24px; font-size: 16px; font-weight: bold; text-align: center; text-decoration: none; border-radius: 6px; border: none; cursor: pointer; transition: background 0.2s, transform 0.1s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background-color: #3498db; color: white; width: 100%; }
.btn-primary:hover { background-color: #2980b9; }
.btn-secondary { background-color: #95a5a6; color: white; }
.btn-secondary:hover { background-color: #7f8c8d; }
.btn-danger { background-color: #e74c3c; color: white; }
.btn-danger:hover { background-color: #c0392b; }

/* Registration Steps */
.step-container { display: none; animation: fadeIn 0.3s ease-in-out; }
.step-container.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Slots Grid (Booking) */
.slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; margin-top: 20px; }
.slot-btn { padding: 10px; text-align: center; border: 1px solid #3498db; color: #3498db; background: #fff; border-radius: 4px; cursor: pointer; font-weight: bold; transition: all 0.2s; }
.slot-btn:hover { background: #3498db; color: #fff; }

/* Customer Panel Tabs */
.panel-nav { display: flex; gap: 10px; border-bottom: 2px solid #ecf0f1; margin-bottom: 30px; overflow-x: auto; padding-bottom: 1px; }
.panel-nav a { padding: 12px 20px; text-decoration: none; color: #7f8c8d; font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s; }
.panel-nav a:hover, .panel-nav a.active { color: #2c3e50; border-bottom-color: #3498db; }

/* Panel Content Cards */
.panel-card { background: #fff; border: 1px solid #e0e6ed; border-radius: 8px; padding: 20px; margin-bottom: 20px; display: flex; flex-direction: column; gap: 10px; }
.panel-card-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #f1f1f1; padding-bottom: 10px; margin-bottom: 10px; }
.panel-card-title { font-size: 18px; font-weight: bold; color: #2c3e50; margin: 0; }
.badge { padding: 5px 10px; border-radius: 12px; font-size: 12px; font-weight: bold; }
.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-danger { background: #f8d7da; color: #721c24; }
.badge-info { background: #d1ecf1; color: #0c5460; }

/* Videos */
.mdm-video-title { color: #2c3e50; margin-bottom: 15px; font-size: 20px; border-left: 4px solid #3498db; padding-left: 10px; }
.mdm-ip-line { background: #fff3cd; color: #856404; padding: 10px; border-radius: 4px; font-size: 14px; margin-top: 15px; border: 1px solid #ffeeba; }
.mdm-ip-indicator { display: inline-block; width: 8px; height: 8px; background: #e74c3c; border-radius: 50%; margin-right: 8px; animation: blink 1s infinite; }
@keyframes blink { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }

/* Wheel Modal */
.wheel-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 1000; justify-content: center; align-items: center; }
.wheel-modal.show { display: flex; }
.wheel-container { background: #fff; padding: 30px; border-radius: 10px; text-align: center; max-width: 400px; width: 90%; position: relative; }
.wheel-close { position: absolute; top: 10px; right: 15px; font-size: 24px; cursor: pointer; color: #777; }
.wheel-canvas-container { position: relative; margin: 20px auto; width: 300px; height: 300px; }
.wheel-arrow { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 15px solid transparent; border-right: 15px solid transparent; border-top: 20px solid #e74c3c; z-index: 2; }
#wheelCanvas { width: 100%; height: 100%; transform-origin: center; transition: transform 5s cubic-bezier(0.25, 0.1, 0.25, 1); }
