:root {
    --bg-color: #05080f; --primary-blue: #8cb0ff; --light-blue: #a3c3ff;
    --container-bg: rgba(12, 15, 26, 0.82); --border-color: rgba(77, 138, 255, 0.25);
    --text-color: #e1e1e1; --heading-color: #ffffff; --shadow-color: rgba(77, 138, 255, 0.2);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; background-color: var(--bg-color); min-height: 100vh; color: var(--heading-color); }
.space-scene { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; overflow: hidden; transition: transform 0.5s ease-out; }
#twinkling-stars-container, #rotatingGalaxy, #roamingRobot { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.star { position: absolute; background-color: white; border-radius: 50%; animation-name: twinkle; animation-iteration-count: infinite; }
@keyframes twinkle { 0% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 0; } }
#rotatingGalaxy { top: 10px; right: 10px; width: 400px; height: auto; opacity: 0.35; transform: rotate(15deg); }

#roamingRobot {
    position: fixed;
    width: 130px;
    height: auto; /* This fixes the stretching issue */
    opacity: 0.8;
    z-index: -1;
    animation: roam-fullscreen 90s ease-in-out infinite;
}
@keyframes roam-fullscreen { 0% { bottom: 5%; left: 5%; transform: rotate(-15deg); } 25% { bottom: 50%; left: 75%; transform: rotate(20deg); } 50% { bottom: 60%; left: 10%; transform: rotate(-20deg); } 75% { bottom: 10%; left: 80%; transform: rotate(15deg); } 100% { bottom: 5%; left: 5%; transform: rotate(-15deg); } }

.container { position: relative; z-index: 1; width: 100%; max-width: 900px; margin: 0 auto; padding: 40px 20px; }
.back-to-hub-btn { position: absolute; top: 20px; left: 20px; text-decoration: none; color: var(--light-blue); background: var(--container-bg); padding: 10px 15px; border-radius: 8px; border: 1px solid var(--border-color); z-index: 100; font-weight: 600; }
header { text-align: center; margin-bottom: 40px; }
header h2 { font-size: 2.5rem; } header p { font-size: 1.2rem; color: var(--primary-blue); }
.form-container { background: var(--container-bg); padding: 35px; border-radius: 16px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4); backdrop-filter: blur(10px); border: 1px solid var(--border-color); }
.content-box { background: rgba(0,0,0,0.2); padding: 15px; border-radius: 8px; margin-top: 10px; border: 1px solid var(--border-color); }
label { display: block; margin: 15px 0 8px 0; color: var(--light-blue); font-weight: 600; }
input, select, textarea { width: 100%; padding: 12px 15px; border: 1px solid var(--border-color); border-radius: 8px; background: rgba(0, 0, 0, 0.2); color: var(--heading-color); font-size: 16px; font-family: 'Poppins', sans-serif; }
button { font-family: 'Poppins', sans-serif; border: 1px solid; padding: 12px 25px; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.2s ease-in-out; }
.primary-btn { background: var(--primary-blue); color: var(--bg-color); border-color: var(--primary-blue); }
.secondary-btn { background: none; color: var(--light-blue); border-color: var(--border-color); }
.settings-btn-main { display: block; margin: 0 auto 20px auto; width: fit-content; text-align: center; }
.sub-panel { background: rgba(0,0,0,0.2); padding: 20px; border-radius: 10px; margin-bottom: 20px; border: 1px solid var(--border-color); }
.form-step { margin-bottom: 20px; }

.video-player-wrapper { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; margin: 20px 0; display: flex; align-items: center; justify-content: center; color: #aaa; overflow: hidden;}
.video-player-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.tasks-buttons-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 15px; }
.task-btn { background: rgba(0,0,0,0.3); border: 1px solid var(--border-color); color: var(--text-color); }
.task-btn:hover { background-color: var(--primary-blue); color: var(--bg-color); }
.task-btn.secondary { background: none; border-color: var(--light-blue); color: var(--light-blue); }
.action-buttons { display:flex; gap: 15px; justify-content: center; margin-top: 20px; }
#output { min-height: 100px; white-space: pre-wrap; }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px); display: none; align-items: center; justify-content: center; z-index: 1000; }
.modal-content { background: var(--container-bg); padding: 30px; border-radius: 15px; border: 1px solid var(--border-color); width: 90%; max-width: 600px; }