:root{--primary:#2563eb;--bg:#f3f4f6;--border:#d1d5db;--cell-bg:#fff}*{box-sizing:border-box;font-family:system-ui,-apple-system,sans-serif}body{background-color:var(--bg);flex-direction:column;align-items:center;min-height:100vh;margin:0;padding:20px;display:flex}h1{color:#1f2937;margin-bottom:20px}.layout{flex-grow:1;align-items:stretch;gap:20px;width:100%;max-width:1600px;display:flex}.panel{background:#fff;border-radius:8px;flex-shrink:0;width:350px;padding:20px;box-shadow:0 4px 6px #0000001a}.form-group{margin-bottom:15px}label{margin-bottom:5px;font-size:14px;font-weight:500;display:block}input,select{border:1px solid var(--border);border-radius:4px;width:100%;padding:8px}input[type=checkbox]{cursor:pointer;width:auto;margin-right:5px}button{background:var(--primary);color:#fff;cursor:pointer;white-space:nowrap;border:none;border-radius:8px;justify-content:center;align-items:center;gap:8px;height:42px;padding:0 20px;font-size:13px;font-weight:700;transition:all .3s;display:inline-flex}button:hover{transform:translateY(-2px);box-shadow:0 4px 12px #00000026}button:not(.btn-grad):hover{background:#1d4ed8}button:active{transform:translateY(0)scale(.95);box-shadow:0 2px 6px #0000001a}button:disabled{cursor:not-allowed;box-shadow:none;background:#9ca3af;transform:none}#course-form button{width:100%;height:48px;margin-top:10px;font-size:16px}.reserve-container{border-top:2px solid var(--border);margin-top:20px;padding-top:15px}.reserve-zone{background:#f8fafc;border:2px dashed #cbd5e1;border-radius:8px;flex-direction:column;gap:10px;min-height:150px;padding:10px;display:flex}.grid-section{background:#fff;border-radius:8px;flex-grow:1;padding:20px;overflow-x:auto;box-shadow:0 4px 6px #0000001a}table.timetable{border-collapse:collapse;table-layout:fixed;width:100%;min-width:800px}.timetable th{border:1px solid var(--border);text-align:center;background:#f1f5f9;padding:10px;font-weight:700}.timetable td{border:1px solid var(--border);text-align:center;padding:0}.timetable td.time-col{background:#f8fafc;width:80px;padding:10px;font-size:12px;font-weight:700}.drop-zone{background:var(--cell-bg);flex-direction:row;align-items:stretch;gap:4px;height:100%;min-height:60px;padding:2px;transition:all .2s;display:flex;position:relative}.drop-zone.drag-over{background:#dbeafe;box-shadow:inset 0 0 5px #2563eb4d}.course-card{border-left:4px solid var(--primary);cursor:grab;-webkit-user-select:none;user-select:none;-webkit-user-drag:element;background:#fff;border-radius:4px;flex-direction:column;flex:1;justify-content:center;min-width:0;padding:5px;font-size:11px;display:flex;position:relative;overflow:hidden;box-shadow:0 2px 4px #0000001a}.course-card:active{cursor:grabbing;opacity:.8}.delete-btn{color:#fff;cursor:pointer;background:#ef4444;border:none;border-radius:3px;justify-content:center;align-items:center;width:18px;height:18px;padding:0;font-size:10px;display:flex;position:absolute;top:2px;right:2px}.course-badges{margin-bottom:2px}.badge{border-radius:3px;padding:1px 4px;font-size:9px;font-weight:700;display:inline-block}.badge-semestre{color:#374151;background:#e5e7eb}.badge-groupe{color:#1e40af;background:#dbeafe}body.is-dragging .course-card{pointer-events:none}#reserve{justify-content:flex-start;align-items:stretch;flex-direction:column!important}.modal-overlay{z-index:1000;opacity:0;pointer-events:none;background:#00000080;justify-content:center;align-items:center;transition:all .2s;display:flex;position:fixed;inset:0}.modal-overlay.active{opacity:1;pointer-events:all}.modal-content{background:#fff;border-radius:8px;width:400px;max-width:90%;padding:25px;transition:all .2s;transform:translateY(-20px);box-shadow:0 10px 25px #0003}.modal-overlay.active .modal-content{transform:translateY(0)}.color-row{border-radius:6px;align-items:center;gap:10px;margin-bottom:10px;padding:5px;transition:background .2s;display:flex}.color-row.dragging{opacity:.5;background:#eff6ff;border:1px dashed #3b82f6}.drag-handle{cursor:grab;color:#9ca3af;align-items:center;padding:5px;display:flex}.drag-handle:active{cursor:grabbing}.color-row input[type=text]{flex:1}.color-row input[type=color]{border:1px solid var(--border);cursor:pointer;border-radius:4px;width:45px;height:35px;padding:0}.color-row button{background:#ef4444;border-radius:4px;flex-shrink:0;width:35px;min-width:0;height:35px;margin:0;padding:0}.grid-header{justify-content:space-between;align-items:center;margin-bottom:25px;display:flex}.actions-container{position:relative}.header-actions{align-items:center;gap:12px;display:flex}.btn-header{min-width:150px}#btn-config-grid{border:none}.btn-grad{text-transform:uppercase;color:#fff;background-size:200%;border:none;transition:all .5s!important}.btn-grad:hover{background-position:100%}.btn-grad-blue{background-image:linear-gradient(90deg,#00c6ff 0%,#0072ff 51%,#00c6ff 100%);box-shadow:0 4px 15px #00c6ff4d}.btn-grad-blue:hover{box-shadow:0 6px 20px #00c6ff80}.btn-grad-gray{background-image:linear-gradient(90deg,#bdc3c7 0%,#2c3e50 51%,#bdc3c7 100%);box-shadow:0 4px 15px #2c3e5033}.btn-grad-gray:hover{box-shadow:0 6px 20px #2c3e5066}.btn-grad-orange{background-image:linear-gradient(90deg,#f2994a 0%,#f2c94c 51%,#f2994a 100%);box-shadow:0 4px 15px #f2994a4d}.btn-grad-orange:hover{box-shadow:0 6px 20px #f2994a80}#status{color:#059669;font-size:12px;font-weight:700;position:absolute;top:-25px;right:0}.footer{color:#9ca3af;text-align:center;width:100%;padding:20px;font-size:12px;font-style:italic}
