@-webkit-keyframes notyf-fadeinup{0%{opacity:0;transform:translateY(25%)}to{opacity:1;transform:translateY(0)}}@keyframes notyf-fadeinup{0%{opacity:0;transform:translateY(25%)}to{opacity:1;transform:translateY(0)}}@-webkit-keyframes notyf-fadeinleft{0%{opacity:0;transform:translate(25%)}to{opacity:1;transform:translate(0)}}@keyframes notyf-fadeinleft{0%{opacity:0;transform:translate(25%)}to{opacity:1;transform:translate(0)}}@-webkit-keyframes notyf-fadeoutright{0%{opacity:1;transform:translate(0)}to{opacity:0;transform:translate(25%)}}@keyframes notyf-fadeoutright{0%{opacity:1;transform:translate(0)}to{opacity:0;transform:translate(25%)}}@-webkit-keyframes notyf-fadeoutdown{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(25%)}}@keyframes notyf-fadeoutdown{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(25%)}}@-webkit-keyframes ripple{0%{transform:scale(0) translateY(-45%) translate(13%)}to{transform:scale(1) translateY(-45%) translate(13%)}}@keyframes ripple{0%{transform:scale(0) translateY(-45%) translate(13%)}to{transform:scale(1) translateY(-45%) translate(13%)}}.notyf{position:fixed;top:0;left:0;height:100%;width:100%;color:#fff;z-index:9999;display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-end;pointer-events:none;box-sizing:border-box;padding:20px}.notyf__icon--error,.notyf__icon--success{height:21px;width:21px;background:#fff;border-radius:50%;display:block;margin:0 auto;position:relative}.notyf__icon--error:after,.notyf__icon--error:before{content:"";background:currentColor;display:block;position:absolute;width:3px;border-radius:3px;left:9px;height:12px;top:5px}.notyf__icon--error:after{transform:rotate(-45deg)}.notyf__icon--error:before{transform:rotate(45deg)}.notyf__icon--success:after,.notyf__icon--success:before{content:"";background:currentColor;display:block;position:absolute;width:3px;border-radius:3px}.notyf__icon--success:after{height:6px;transform:rotate(-45deg);top:9px;left:6px}.notyf__icon--success:before{height:11px;transform:rotate(45deg);top:5px;left:10px}.notyf__toast{display:block;overflow:hidden;pointer-events:auto;-webkit-animation:notyf-fadeinup .3s ease-in forwards;animation:notyf-fadeinup .3s ease-in forwards;box-shadow:0 3px 7px #00000040;position:relative;padding:0 15px;border-radius:2px;max-width:300px;transform:translateY(25%);box-sizing:border-box;flex-shrink:0}.notyf__toast--disappear{transform:translateY(0);-webkit-animation:notyf-fadeoutdown .3s forwards;animation:notyf-fadeoutdown .3s forwards;-webkit-animation-delay:.25s;animation-delay:.25s}.notyf__toast--disappear .notyf__icon,.notyf__toast--disappear .notyf__message{-webkit-animation:notyf-fadeoutdown .3s forwards;animation:notyf-fadeoutdown .3s forwards;opacity:1;transform:translateY(0)}.notyf__toast--disappear .notyf__dismiss{-webkit-animation:notyf-fadeoutright .3s forwards;animation:notyf-fadeoutright .3s forwards;opacity:1;transform:translate(0)}.notyf__toast--disappear .notyf__message{-webkit-animation-delay:.05s;animation-delay:.05s}.notyf__toast--upper{margin-bottom:20px}.notyf__toast--lower{margin-top:20px}.notyf__toast--dismissible .notyf__wrapper{padding-right:30px}.notyf__ripple{height:400px;width:400px;position:absolute;transform-origin:bottom right;right:0;top:0;border-radius:50%;transform:scale(0) translateY(-51%) translate(13%);z-index:5;-webkit-animation:ripple .4s ease-out forwards;animation:ripple .4s ease-out forwards}.notyf__wrapper{display:flex;align-items:center;padding-top:17px;padding-bottom:17px;padding-right:15px;border-radius:3px;position:relative;z-index:10}.notyf__icon{width:22px;text-align:center;font-size:1.3em;opacity:0;-webkit-animation:notyf-fadeinup .3s forwards;animation:notyf-fadeinup .3s forwards;-webkit-animation-delay:.3s;animation-delay:.3s;margin-right:13px}.notyf__dismiss{position:absolute;top:0;right:0;height:100%;width:26px;margin-right:-15px;-webkit-animation:notyf-fadeinleft .3s forwards;animation:notyf-fadeinleft .3s forwards;-webkit-animation-delay:.35s;animation-delay:.35s;opacity:0}.notyf__dismiss-btn{background-color:#00000040;border:none;cursor:pointer;transition:opacity .2s ease,background-color .2s ease;outline:none;opacity:.35;height:100%;width:100%}.notyf__dismiss-btn:after,.notyf__dismiss-btn:before{content:"";background:#fff;height:12px;width:2px;border-radius:3px;position:absolute;left:calc(50% - 1px);top:calc(50% - 5px)}.notyf__dismiss-btn:after{transform:rotate(-45deg)}.notyf__dismiss-btn:before{transform:rotate(45deg)}.notyf__dismiss-btn:hover{opacity:.7;background-color:#00000026}.notyf__dismiss-btn:active{opacity:.8}.notyf__message{vertical-align:middle;position:relative;opacity:0;-webkit-animation:notyf-fadeinup .3s forwards;animation:notyf-fadeinup .3s forwards;-webkit-animation-delay:.25s;animation-delay:.25s;line-height:1.5em}@media only screen and (max-width:480px){.notyf{padding:0}.notyf__ripple{height:600px;width:600px;-webkit-animation-duration:.5s;animation-duration:.5s}.notyf__toast{max-width:none;border-radius:0;box-shadow:0 -2px 7px #00000021;width:100%}.notyf__dismiss{width:56px}}body{font-family:Noto Sans SC,Helvetica Neue,Arial,sans-serif;max-width:960px;margin:40px auto;padding:20px;background-color:#f9fbfd;color:#333;line-height:1.5}.container{background-color:#fff;border-radius:12px;padding:30px;box-shadow:0 6px 20px #00000014;margin-bottom:30px}h1{color:#2c3e50;text-align:center;margin-bottom:30px;font-size:2.5em;font-weight:600}textarea{width:calc(100% - 20px);height:150px;padding:15px;border:1px solid #e0e6ed;border-radius:8px;resize:vertical;font-size:1em;box-sizing:border-box;transition:border-color .3s ease-in-out;font-family:Noto Sans SC,Arial,sans-serif}textarea:focus{outline:none;border-color:#007bff;box-shadow:0 0 0 3px #007bff40}button{background-color:#007bff;color:#fff;border:none;padding:12px 25px;border-radius:6px;cursor:pointer;font-size:1em;font-weight:500;margin-right:15px;margin-bottom:10px;margin-top:15px;transition:background-color .3s ease-in-out,transform .2s ease-in-out;box-shadow:0 2px 5px #0000001a}button:hover{background-color:#0056b3;transform:translateY(-2px)}button:active{transform:translateY(0);box-shadow:0 1px 3px #0000001a}button:disabled{background-color:#ccc;cursor:not-allowed;transform:translateY(0);box-shadow:none}.download-btn{background-color:#28a745}.download-btn:hover{background-color:#218838}.response{margin-top:25px;padding:20px;background-color:#e9f7ef;border-radius:8px;border-left:5px solid #28a745;min-height:80px;font-size:1.05em;color:#212529;white-space:pre-wrap;word-break:break-word}.loading{display:none;text-align:center;margin:20px 0;color:#6c757d}.spinner{border:4px solid rgba(0,0,0,.1);border-radius:50%;border-top:4px solid #007bff;width:30px;height:30px;animation:spin 1s linear infinite;margin:0 auto}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.history{margin-top:40px;border-top:1px solid #eceeef;padding-top:30px}.history-item{margin-bottom:20px;padding:15px;background-color:#f6f9fc;border-radius:8px;box-shadow:0 2px 8px #0000000d;transition:transform .2s ease-in-out,box-shadow .2s ease-in-out}.history-item:hover{transform:translateY(-3px);box-shadow:0 4px 12px #00000014}.history-question{font-weight:600;color:#495057;margin-bottom:8px;font-size:1.1em}.history-answer{color:#6c757d;margin-top:5px;white-space:pre-wrap;word-break:break-word;font-size:.95em}.model-selector,.system-prompt{margin-bottom:20px}#classInfoForm{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:20px;background:linear-gradient(135deg,#f8f9fa,#fff);padding:20px;border-radius:12px;box-shadow:0 2px 8px #0000000a;border:1px solid #e9ecef;align-items:flex-end}.form-field-wrapper{flex:1 1 auto;min-width:160px;display:flex;flex-direction:column}#classInfoForm label{font-size:.85em;color:#495057;margin-bottom:6px;font-weight:500;display:flex;align-items:center;gap:4px}.field-icon{font-size:1.1em;opacity:.8}.form-input{transition:all .2s ease}.form-input:focus{transform:translateY(-1px);box-shadow:0 4px 12px #3498db26!important}#classInfoForm input[type=date],#classInfoForm input[type=number],#classInfoForm input[type=text]{width:calc(100% - 16px);padding:9px 8px;border:1px solid #e0e6ed;border-radius:6px;font-size:.95em;color:#333;box-sizing:border-box;transition:border-color .3s ease-in-out,box-shadow .3s ease-in-out;background-color:#fdfdfd}#classInfoForm input[type=date]:focus,#classInfoForm input[type=number]:focus,#classInfoForm input[type=text]:focus{outline:none;border-color:#007bff;box-shadow:0 0 0 2px #007bff26}#classInfoForm input::placeholder{color:#aebacd;font-size:1em}#classInfoForm input[type=date]{-moz-appearance:none;appearance:none;-webkit-appearance:none;background-repeat:no-repeat;background-position:right 8px center;background-size:20px}select,.form-select{padding:10px 15px;border-radius:8px;border:1px solid #e0e6ed;width:100%;font-size:1em;background-color:#fff;color:#333;appearance:none;-webkit-appearance:none;-moz-appearance:none;background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill="%236c757d" d="M7 10l5 5 5-5H7z"/></svg>');background-repeat:no-repeat;background-position:right 10px center;background-size:12px;cursor:pointer;transition:border-color .3s ease-in-out}select:focus,.form-select:focus{outline:none;border-color:#007bff;box-shadow:0 0 0 3px #007bff40}.form-select option{background-color:#fff;color:#333}.system-prompt textarea{height:100px}.api-key-section{margin-top:15px;padding:15px;background-color:#f8f9fa;border-radius:8px;border:1px solid #e9ecef}.btn-link{background:none;color:#007bff;border:none;padding:5px 10px;cursor:pointer;text-decoration:underline;font-size:.9em;margin:0;box-shadow:none}.btn-link:hover{color:#0056b3;background:none;transform:none}.btn-danger{color:#dc3545}.btn-danger:hover{color:#c82333}.api-key-input-group{display:flex;gap:10px;align-items:center;margin-top:10px}.api-key-input-group input{flex:1;padding:8px 12px;border:1px solid #ced4da;border-radius:6px;font-size:.9em}.api-key-input-group input:focus{outline:none;border-color:#007bff;box-shadow:0 0 0 2px #007bff26}.btn-small{padding:8px 15px;font-size:.9em;margin:0}.api-key-status{display:flex;align-items:center;gap:10px;padding:10px;background-color:#d4edda;border:1px solid #c3e6cb;border-radius:6px}.api-key-active{color:#155724;font-size:.9em;font-weight:500}.model-select-row{display:flex;align-items:center;gap:10px}.model-select-row label{min-width:60px}.model-select-row select{flex:1}.teaching-plan-preview{background:#fff;border:1px solid #e0e0e0;border-radius:8px;padding:20px;margin:20px 0}.teaching-plan-preview section{margin-bottom:20px;padding-bottom:15px;border-bottom:1px solid #f0f0f0}.teaching-plan-preview section:last-child{border-bottom:none}.teaching-plan-preview h3{color:#2c3e50;margin-bottom:20px}.teaching-plan-preview h4{color:#34495e;margin-bottom:10px;font-size:1.1em}.teaching-plan-preview h5{color:#555;margin:10px 0 5px}.teaching-plan-preview p{line-height:1.6;margin:8px 0}.teaching-step{background:#f8f9fa;padding:12px;margin:10px 0;border-radius:4px;border-left:3px solid #3498db}.json-editor{margin:20px 0}.json-editor-header{display:flex;align-items:center;gap:15px;margin-bottom:10px}.json-editor-header .error{color:#e74c3c;font-weight:700}.json-textarea{width:100%;min-height:400px;font-family:Courier New,monospace;font-size:13px;padding:15px;border:1px solid #ddd;border-radius:4px;resize:vertical}.json-textarea.invalid{border-color:#e74c3c;background:#fff5f5}.json-preview{background:#f8f9fa;padding:15px;border-radius:4px;overflow-x:auto;font-family:Courier New,monospace;font-size:13px;max-height:500px;overflow-y:auto}.template-manager{background:#fff;border:1px solid #e0e0e0;border-radius:8px;padding:20px;margin:20px 0}.template-actions{display:flex;gap:10px;margin-bottom:15px;flex-wrap:wrap}.template-list{margin-top:15px}.template-selector{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px;margin:15px 0}.template-item{display:flex;align-items:center;gap:8px;padding:12px;border:2px solid #e0e0e0;border-radius:6px;cursor:pointer;transition:all .2s}.template-item:hover{border-color:#3498db;background:#f8f9fa}.template-item.selected{border-color:#3498db;background:#e3f2fd}.template-icon{font-size:1.5em}.template-name{flex:1;font-size:.9em;word-break:break-all}.btn-delete{background:#e74c3c;color:#fff;border:none;padding:4px 8px;border-radius:4px;cursor:pointer;font-size:1em}.btn-delete:hover{background:#c0392b}.template-hint{color:#666;font-size:.9em;margin-top:10px}.empty-state{text-align:center;color:#999;padding:30px;font-style:italic}.quick-templates{margin:15px 0;padding:15px;background:#f8f9fa;border-radius:6px;border:1px solid #e0e0e0}.quick-templates label{display:block;margin-bottom:10px;font-weight:700;color:#2c3e50;font-size:.95em}.template-buttons{display:flex;gap:10px;flex-wrap:wrap}.template-btn{padding:8px 16px;background:#fff;color:#2c3e50;border:2px solid #3498db;border-radius:4px;cursor:pointer;font-weight:500;transition:all .2s;display:flex;align-items:center;gap:6px}.template-btn .template-icon{font-size:1.1em}.template-btn:hover{background:#3498db;color:#fff;transform:translateY(-2px);box-shadow:0 4px 8px #3498db33}.btn-primary{background:#3498db;color:#fff;border:none;padding:10px 20px;border-radius:6px;cursor:pointer;font-size:1em;font-weight:500;transition:background-color .3s ease-in-out,transform .2s ease-in-out;box-shadow:0 2px 5px #0000001a}.btn-primary:hover{background:#2980b9;transform:translateY(-2px)}.btn-primary:active{transform:translateY(0);box-shadow:0 1px 3px #0000001a}.btn-primary:disabled{background-color:#ccc;cursor:not-allowed;transform:translateY(0);box-shadow:none}.btn-secondary{background:#6c757d;color:#fff;border:none;padding:10px 20px;border-radius:6px;cursor:pointer;font-size:1em;font-weight:500;transition:background-color .3s ease-in-out,transform .2s ease-in-out;box-shadow:0 2px 5px #0000001a}.btn-secondary:hover{background:#5a6268;transform:translateY(-2px)}.btn-secondary:active{transform:translateY(0);box-shadow:0 1px 3px #0000001a}.btn-secondary:hover{background:#7f8c8d}.streaming-output{background:#f8f9fa;border:2px solid #3498db;border-radius:8px;padding:20px;margin:20px 0;animation:pulse 2s infinite}@keyframes pulse{0%,to{border-color:#3498db}50%{border-color:#2ecc71}}.streaming-output h3{color:#3498db;margin-bottom:15px;display:flex;align-items:center;gap:10px}.streaming-text{background:#fff;padding:15px;border-radius:4px;max-height:400px;overflow-y:auto;font-family:Courier New,monospace;font-size:13px;line-height:1.6;white-space:pre-wrap;word-wrap:break-word;border:1px solid #e0e0e0}.streaming-text::-webkit-scrollbar{width:8px}.streaming-text::-webkit-scrollbar-track{background:#f1f1f1;border-radius:4px}.streaming-text::-webkit-scrollbar-thumb{background:#888;border-radius:4px}.streaming-text::-webkit-scrollbar-thumb:hover{background:#555}.history-panel{background:#fff;border:1px solid #e0e0e0;border-radius:8px;padding:20px;margin:30px 0}.history-panel h3{margin-bottom:15px;color:#2c3e50;font-size:1.2em}.history-grid{display:grid;gap:10px;margin-bottom:15px}.history-item{padding:15px;border:1px solid #e0e0e0;border-radius:6px;background:#f8f9fa;transition:all .2s}.history-item:hover{border-color:#3498db;box-shadow:0 2px 8px #3498db1a}.history-item-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:10px}.history-item-title{font-weight:700;color:#2c3e50;font-size:1em;flex:1}.history-item-time{color:#7f8c8d;font-size:.85em}.history-item-actions{display:flex;gap:8px;margin-top:10px}.history-btn-load{background:#3498db;color:#fff;border:none;padding:6px 16px;border-radius:4px;cursor:pointer;font-size:.9em;transition:all .2s}.history-btn-load:hover{background:#2980b9;transform:translateY(-1px);box-shadow:0 2px 4px #0000001a}.history-btn-delete{background:#e74c3c;color:#fff;border:none;padding:6px 16px;border-radius:4px;cursor:pointer;font-size:.9em;transition:all .2s}.history-btn-delete:hover{background:#c0392b;transform:translateY(-1px);box-shadow:0 2px 4px #0000001a}.history-btn-clear{background:#95a5a6;color:#fff;border:none;padding:8px 20px;border-radius:4px;cursor:pointer;font-size:.95em;transition:all .2s;width:100%}.history-btn-clear:hover{background:#7f8c8d}.history-empty{text-align:center;color:#95a5a6;padding:40px;font-style:italic}.batch-generator{background:#fff;border:1px solid #e0e0e0;border-radius:8px;padding:20px;margin:20px 0}.batch-generator h3{margin-bottom:15px;color:#2c3e50}.batch-input-section{margin-bottom:15px}.batch-input-section label{display:block;margin-bottom:8px;font-weight:700;color:#2c3e50}.batch-textarea{width:100%;padding:12px;border:2px solid #e0e0e0;border-radius:6px;font-size:14px;line-height:1.6;resize:vertical;font-family:inherit}.batch-textarea:focus{outline:none;border-color:#3498db}.batch-textarea:disabled{background:#f5f5f5;cursor:not-allowed}.batch-info{margin-top:8px;color:#7f8c8d;font-size:.9em}.batch-info strong{color:#3498db;font-size:1.1em}.batch-progress{background:#f8f9fa;border:1px solid #e0e0e0;border-radius:6px;padding:15px;margin:15px 0}.progress-header{display:flex;justify-content:space-between;margin-bottom:10px;font-weight:500;color:#2c3e50}.progress-bar{height:24px;background:#e0e0e0;border-radius:12px;overflow:hidden;margin-bottom:15px}.progress-fill{height:100%;background:linear-gradient(90deg,#3498db,#2ecc71);transition:width .3s ease;display:flex;align-items:center;justify-content:center;color:#fff;font-size:.85em;font-weight:700}.progress-results{max-height:200px;overflow-y:auto;margin-top:10px}.result-item{padding:8px 12px;margin:5px 0;border-radius:4px;font-size:.9em}.result-item.success{background:#d4edda;color:#155724;border-left:3px solid #28a745}.result-item.error{background:#f8d7da;color:#721c24;border-left:3px solid #dc3545}.batch-actions{display:flex;gap:10px;margin-top:15px}.batch-warning{margin-top:10px;padding:10px;background:#fff3cd;border:1px solid #ffc107;border-radius:4px;color:#856404;font-size:.9em}.batch-results-modal{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.batch-results-content{background:#fff;border-radius:8px;width:90%;max-width:700px;max-height:80vh;display:flex;flex-direction:column;box-shadow:0 4px 20px #0003}.batch-results-header{display:flex;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid #e0e0e0}.batch-results-header h3{margin:0;color:#2c3e50}.close-btn{background:none;border:none;font-size:24px;color:#7f8c8d;cursor:pointer;padding:0;width:30px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:4px}.close-btn:hover{background:#f0f0f0;color:#2c3e50}.batch-results-summary{display:flex;gap:15px;padding:20px;background:#f8f9fa}.summary-item{flex:1;display:flex;flex-direction:column;align-items:center;padding:15px;background:#fff;border-radius:6px;border:2px solid #e0e0e0}.summary-item.success{border-color:#2ecc71}.summary-item.failed{border-color:#e74c3c}.summary-item.total{border-color:#3498db}.summary-icon{font-size:2em;margin-bottom:8px}.summary-label{font-size:.9em;color:#7f8c8d;margin-bottom:4px}.summary-count{font-size:1.8em;font-weight:700;color:#2c3e50}.batch-results-list{flex:1;overflow-y:auto;padding:20px}.batch-result-item{padding:15px;margin-bottom:10px;border-radius:6px;border:1px solid #e0e0e0}.batch-result-item.success{background:#d4edda;border-color:#c3e6cb}.batch-result-item.failed{background:#f8d7da;border-color:#f5c6cb}.result-item-header{display:flex;align-items:center;gap:10px;margin-bottom:10px}.result-icon{font-size:1.2em}.result-filename{font-weight:500;color:#2c3e50;flex:1}.result-item-actions{display:flex;gap:10px}.result-download-btn{background:#3498db;color:#fff;border:none;padding:6px 16px;border-radius:4px;cursor:pointer;text-decoration:none;font-size:.9em;display:inline-block;transition:all .2s}.result-download-btn:hover{background:#2980b9;transform:translateY(-1px)}.result-item-error{padding:10px;background:#fff;border-radius:4px;font-size:.9em}.error-label{font-weight:700;color:#721c24;margin-right:5px}.error-message{color:#721c24}.batch-results-footer{padding:20px;border-top:1px solid #e0e0e0;display:flex;justify-content:flex-end}.mode-tabs{display:flex;gap:0;margin:20px 0;border-bottom:2px solid #e0e0e0}.mode-tab{flex:1;padding:12px 20px;background:#f8f9fa;border:none;border-bottom:3px solid transparent;cursor:pointer;font-size:1em;font-weight:500;color:#7f8c8d;transition:all .3s;position:relative;bottom:-2px}.mode-tab:hover{background:#e8e9ea;color:#2c3e50}.mode-tab.active{background:#fff;color:#3498db;border-bottom-color:#3498db}.mode-tab:first-child{border-radius:8px 0 0}.mode-tab:last-child{border-radius:0 8px 0 0}.mode-tab:disabled{background:#e9ecef;color:#adb5bd;cursor:not-allowed;opacity:.6}.mode-tab:disabled:hover{background:#e9ecef;color:#adb5bd}.batch-base-info{background:#f8f9fa;border:1px solid #e0e0e0;border-radius:6px;padding:15px;margin:15px 0}.class-schedule-block{margin:15px 0;padding:15px;background:#f8f9fa;border:1px solid #e0e0e0;border-radius:6px}.class-schedule-block h4{margin:0 0 12px;color:#2c3e50}.class-session-numbers{display:flex;align-items:center;gap:8px;margin-top:12px;flex-wrap:wrap}.class-session-numbers span{font-weight:500;color:#555}.class-session-numbers input{width:90px}.class-schedule-block .form-field{max-width:360px;margin-bottom:12px}.batch-base-info h4{margin-bottom:15px;color:#2c3e50;font-size:1em}.batch-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:15px;margin-bottom:15px}.form-field{display:flex;flex-direction:column;gap:5px}.form-field label{font-size:.9em;color:#555;font-weight:500}.form-field input{padding:8px 12px;border:1px solid #ddd;border-radius:4px;font-size:.95em}.form-field input:focus{outline:none;border-color:#3498db}.form-field input:disabled{background:#f5f5f5;cursor:not-allowed}.batch-auto-options{display:flex;flex-direction:column;gap:10px;margin:15px 0;padding:15px;background:#fff;border-radius:4px}.checkbox-label{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:.95em;color:#2c3e50}.checkbox-label input[type=checkbox]{width:18px;height:18px;cursor:pointer}.checkbox-label:hover{color:#3498db}.btn-preview{background:#95a5a6;color:#fff;border:none;padding:8px 16px;border-radius:4px;cursor:pointer;font-size:.9em;transition:all .2s}.btn-preview:hover{background:#7f8c8d}.btn-preview:disabled{background:#bdc3c7;cursor:not-allowed}.batch-preview{background:#fff;border:1px solid #e0e0e0;border-radius:6px;padding:15px;margin:15px 0}.batch-preview h4{margin-bottom:15px;color:#2c3e50;font-size:1em}.preview-list{max-height:300px;overflow-y:auto}.preview-item{display:flex;align-items:center;gap:10px;padding:10px;margin:5px 0;background:#f8f9fa;border-radius:4px;border-left:3px solid #3498db}.preview-number{font-weight:700;color:#3498db;min-width:25px}.preview-topic{font-weight:500;color:#2c3e50;flex:1}.preview-details{font-size:.85em;color:#7f8c8d;white-space:nowrap}@media (max-width: 768px){.batch-form-grid{grid-template-columns:1fr}.preview-item{flex-direction:column;align-items:flex-start}.preview-details{white-space:normal}}.smart-fill-section{margin:15px 0;display:flex;align-items:center;gap:10px}.btn-smart-fill{background:#9b59b6;color:#fff;border:none;padding:10px 20px;border-radius:4px;cursor:pointer;font-size:.95em;transition:all .2s}.btn-smart-fill:hover{background:#8e44ad}.btn-smart-fill:disabled{background:#bdc3c7;cursor:not-allowed}.smart-fill-hint{color:#7f8c8d;font-size:.9em}.smart-fill-panel{background:#f8f9fa;border:2px solid #9b59b6;border-radius:6px;padding:15px;margin:15px 0}.smart-fill-panel h4{margin-bottom:15px;color:#8e44ad}.smart-fill-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:15px;margin-bottom:15px}.smart-fill-actions{display:flex;flex-direction:column;gap:10px}.smart-fill-note{margin:0;padding:10px;background:#fff3cd;border-left:3px solid #ffc107;border-radius:4px;color:#856404;font-size:.9em}.batch-table-section{margin:20px 0}.batch-table-section h4{margin-bottom:10px;color:#2c3e50}.batch-table-wrapper{overflow-x:auto;border:1px solid #e0e0e0;border-radius:6px;margin-bottom:10px}.batch-table{width:100%;border-collapse:collapse;background:#fff;font-size:.9em}.batch-table thead{background:#3498db;color:#fff}.batch-table th{padding:12px 8px;text-align:left;font-weight:500;white-space:nowrap}.batch-table tbody tr{border-bottom:1px solid #e0e0e0}.batch-table tbody tr:hover{background:#f8f9fa}.batch-table td{padding:8px}.batch-table td:first-child{text-align:center;font-weight:700;color:#3498db}.topic-cell{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500;color:#2c3e50}.batch-table input{width:100%;padding:6px 8px;border:1px solid #ddd;border-radius:3px;font-size:.9em}.batch-table input:focus{outline:none;border-color:#3498db;background:#f0f8ff}.batch-table input:disabled{background:#f5f5f5;cursor:not-allowed}.batch-table input.required{border-color:#e74c3c;background:#fff5f5}.table-note{color:#e74c3c;font-size:.85em;margin:5px 0}@media (max-width: 1024px){.batch-table{font-size:.85em}.batch-table th,.batch-table td{padding:6px 4px}.batch-table input{padding:4px 6px;font-size:.85em}}@media (max-width: 768px){.smart-fill-form{grid-template-columns:1fr}.batch-table-wrapper{overflow-x:scroll}.batch-table{min-width:800px}}.batch-generator-week{background:#fff;border:1px solid #e0e0e0;border-radius:8px;padding:20px;margin:20px 0}.batch-generator-week h3{margin-bottom:15px;color:#2c3e50}.week-settings{background:#f8f9fa;border:1px solid #e0e0e0;border-radius:6px;padding:15px;margin-bottom:15px}.week-settings h4{margin-bottom:15px;color:#2c3e50;font-size:1em}.week-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:15px;margin-bottom:15px}.week-form-grid small{color:#7f8c8d;font-size:.85em;margin-top:3px;display:block}.weekday-selection{margin:20px 0}.weekday-selection>label{display:block;margin-bottom:10px;font-weight:500;color:#2c3e50}.weekday-buttons{display:flex;gap:8px;flex-wrap:wrap}.weekday-btn{padding:10px 20px;background:#fff;border:2px solid #e0e0e0;border-radius:6px;cursor:pointer;font-size:.95em;transition:all .2s;color:#2c3e50}.weekday-btn:hover{border-color:#3498db;background:#f0f8ff}.weekday-btn.active{background:#3498db;border-color:#3498db;color:#fff;font-weight:500}.weekday-btn:disabled{background:#f5f5f5;cursor:not-allowed;opacity:.6}.weekday-topics{margin:20px 0}.weekday-topics>label{display:block;margin-bottom:10px;font-weight:500;color:#2c3e50}.topic-input-row{display:flex;align-items:center;gap:10px;margin-bottom:10px}.topic-label{min-width:60px;font-weight:500;color:#555}.topic-input-row input{flex:1;padding:8px 12px;border:1px solid #ddd;border-radius:4px;font-size:.95em}.topic-input-row input:focus{outline:none;border-color:#3498db}.topic-input-row input.required{border-color:#e74c3c;background:#fff5f5}.week-preview{background:#fff;border:1px solid #e0e0e0;border-radius:6px;padding:15px;margin:15px 0}.week-preview h4{margin-bottom:15px;color:#2c3e50;font-size:1em}.week-preview-list{max-height:400px;overflow-y:auto}.week-preview-item{display:grid;grid-template-columns:40px 1fr;gap:10px;padding:12px;margin:8px 0;background:#f8f9fa;border-radius:4px;border-left:3px solid #3498db;font-size:.9em}.week-preview-item .preview-number{font-weight:700;color:#3498db;font-size:1.1em}.week-preview-item .preview-content{display:flex;flex-direction:column;gap:5px}.week-preview-item .preview-main{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.week-preview-item .preview-week{font-weight:600;color:#2c3e50;background:#e3f2fd;padding:2px 8px;border-radius:3px}.week-preview-item .preview-weekday{font-weight:500;color:#555}.week-preview-item .preview-date{color:#7f8c8d}.week-preview-item .preview-details{display:flex;align-items:center;gap:8px;font-size:.9em;color:#7f8c8d}.week-preview-item .preview-topic{color:#2c3e50;font-weight:500;margin-top:3px}.week-preview-item .preview-filename{color:#95a5a6;font-size:.85em;font-family:monospace}@media (max-width: 768px){.weekday-buttons{justify-content:center}.weekday-btn{flex:1;min-width:70px}.week-preview-item{flex-direction:column;align-items:flex-start;gap:5px}.week-preview-item>span{min-width:auto!important}}.batch-mode-selector{display:flex;gap:10px;margin:20px 0;padding:15px;background:#f8f9fa;border-radius:6px}.batch-mode-btn{flex:1;padding:12px 20px;background:#fff;border:2px solid #e0e0e0;border-radius:6px;cursor:pointer;font-size:.95em;transition:all .2s;color:#2c3e50;font-weight:500}.batch-mode-btn:hover{border-color:#3498db;background:#f0f8ff}.batch-mode-btn.active{background:#3498db;border-color:#3498db;color:#fff;box-shadow:0 2px 8px #3498db4d}@media (max-width: 768px){.batch-mode-selector{flex-direction:column}}.courses-section{margin:20px 0}.courses-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.courses-header label{font-weight:500;color:#2c3e50}.btn-add-course{background:#2ecc71;color:#fff;border:none;padding:8px 16px;border-radius:4px;cursor:pointer;font-size:.9em;transition:all .2s}.btn-add-course:hover{background:#27ae60;transform:translateY(-1px)}.btn-add-course:disabled{background:#95a5a6;cursor:not-allowed;transform:none}.courses-list{display:flex;flex-direction:column;gap:10px}.course-item{display:flex;align-items:center;gap:10px;padding:12px;background:#fff;border:1px solid #e0e0e0;border-radius:6px;transition:all .2s}.course-item:hover{border-color:#3498db;box-shadow:0 2px 4px #0000000d}.course-number{font-weight:700;color:#3498db;min-width:25px;text-align:center}.course-weekday-select{padding:8px 12px;border:1px solid #ddd;border-radius:4px;font-size:.95em;min-width:80px;cursor:pointer}.course-weekday-select:focus{outline:none;border-color:#3498db}.course-weekday-select:disabled{background:#f5f5f5;cursor:not-allowed}.course-topic-input{flex:1;padding:8px 12px;border:1px solid #ddd;border-radius:4px;font-size:.95em}.course-topic-input:focus{outline:none;border-color:#3498db}.course-topic-input.required{border-color:#e74c3c;background:#fff5f5}.course-topic-input:disabled{background:#f5f5f5;cursor:not-allowed}.btn-remove-course{background:#e74c3c;color:#fff;border:none;padding:6px 10px;border-radius:4px;cursor:pointer;font-size:1em;transition:all .2s}.btn-remove-course:hover{background:#c0392b;transform:scale(1.1)}.btn-remove-course:disabled{background:#95a5a6;cursor:not-allowed;transform:none}.courses-hint{margin-top:10px;padding:10px;background:#e8f5e9;border-left:3px solid #2ecc71;border-radius:4px;color:#27ae60;font-size:.9em}@media (max-width: 768px){.course-item{flex-wrap:wrap}.course-weekday-select,.course-topic-input{flex:1 1 100%}}.week-courses{margin:20px 0}.week-courses-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.week-courses-header label{font-weight:500;color:#2c3e50;font-size:1em}.btn-add-simple{background:#3498db;color:#fff;border:none;padding:6px 12px;border-radius:4px;cursor:pointer;font-size:.9em;transition:all .2s}.btn-add-simple:hover{background:#2980b9}.btn-add-simple:disabled{background:#95a5a6;cursor:not-allowed}.week-courses-list{display:flex;flex-direction:column;gap:10px}.week-course-row{display:flex;align-items:center;gap:8px;padding:8px;background:#fff;border-radius:4px}.week-course-select{padding:6px 10px;border:1px solid #ddd;border-radius:4px;font-size:.95em;min-width:80px;cursor:pointer}.week-course-select:focus{outline:none;border-color:#3498db}.week-course-label{color:#7f8c8d;font-size:.9em;white-space:nowrap}.week-course-input{flex:1;padding:6px 10px;border:1px solid #ddd;border-radius:4px;font-size:.95em}.week-course-input:focus{outline:none;border-color:#3498db}.week-course-input.required{border-color:#e74c3c;background:#fff5f5}.btn-remove-simple{background:#e74c3c;color:#fff;border:none;padding:4px 10px;border-radius:4px;cursor:pointer;font-size:1em;transition:all .2s;min-width:30px}.btn-remove-simple:hover{background:#c0392b}.week-preview-simple{background:#fff;border:1px solid #e0e0e0;border-radius:6px;padding:15px;margin:20px 0}.week-preview-simple h4{margin-bottom:15px;color:#2c3e50}.week-preview-simple-list{display:flex;flex-direction:column;gap:10px;max-height:400px;overflow-y:auto}.week-preview-simple-item{display:flex;gap:10px;padding:10px;background:#f8f9fa;border-radius:4px;border-left:3px solid #3498db}.preview-simple-number{font-weight:700;color:#3498db;min-width:30px}.preview-simple-content{flex:1;display:flex;flex-direction:column;gap:5px}.preview-simple-line1{color:#2c3e50;font-size:.95em}.preview-simple-line2{color:#555;font-size:.9em}@media (max-width: 768px){.week-course-row{flex-wrap:wrap}.week-course-label{display:none}.week-course-input{flex:1 1 100%}}.weekly-template-section{grid-column:1 / -1;background:#fff;padding:15px;border-radius:6px;border:2px solid #3498db;margin:10px 0}.weekly-template-label{display:block;margin-bottom:12px;font-weight:600;color:#2c3e50;font-size:1em}.weekly-dates-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin-bottom:10px}.weekly-date-field{display:flex;flex-direction:column;gap:6px}.weekly-date-field label{font-size:.9em;color:#555;font-weight:500}.weekly-date-field input{padding:8px 12px;border:2px solid #ddd;border-radius:4px;font-size:.95em;transition:all .2s}.weekly-date-field input:focus{outline:none;border-color:#3498db;background:#f0f8ff}.weekly-date-field input:not(:placeholder-shown){border-color:#2ecc71;background:#f0fff4}.weekly-template-hint{margin:10px 0 0;padding:10px;background:#e3f2fd;border-left:3px solid #3498db;border-radius:4px;color:#1976d2;font-size:.9em}@media (max-width: 768px){.weekly-dates-grid{grid-template-columns:1fr}}.batch-results-panel{background:#fff;border:1px solid #e0e0e0;border-radius:8px;padding:20px;margin:30px 0;box-shadow:0 2px 8px #0000001a}.batch-results-panel .batch-results-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;padding-bottom:15px;border-bottom:2px solid #e0e0e0}.batch-results-panel .batch-results-header h3{margin:0;color:#2c3e50;font-size:1.3em}.batch-results-panel .batch-results-summary{display:flex;gap:15px;margin-bottom:20px}.batch-results-panel .batch-results-list{max-height:500px;overflow-y:auto;margin-bottom:20px}.batch-results-panel .batch-results-footer{display:flex;justify-content:flex-start;padding-top:15px;border-top:1px solid #e0e0e0}.progress-actions{margin-top:15px;display:flex;justify-content:center}.btn-abort{background:#e74c3c;color:#fff;border:none;padding:10px 30px;border-radius:4px;cursor:pointer;font-size:1em;font-weight:500;transition:all .2s;box-shadow:0 2px 4px #e74c3c33}.btn-abort:hover{background:#c0392b;transform:translateY(-2px);box-shadow:0 4px 8px #e74c3c4d}.btn-abort:active{transform:translateY(0);box-shadow:0 2px 4px #e74c3c33}
