.auth-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;position:relative;overflow:hidden}.auth-bg{position:fixed;top:0;right:0;bottom:0;left:0;background:linear-gradient(135deg,var(--fju-blue) 0%,#1a4a9e 50%,#2d5fcf 100%);z-index:0}.auth-bg:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")}.auth-card{background:var(--surface);border-radius:20px;box-shadow:var(--shadow-lg);width:100%;max-width:460px;padding:40px;position:relative;z-index:1}.auth-header{text-align:center;margin-bottom:28px}.auth-logo{display:inline-flex;align-items:center;justify-content:center;width:72px;height:72px;background:var(--fju-blue);color:#fff;font-size:1.5rem;font-weight:900;letter-spacing:2px;border-radius:18px;margin-bottom:16px;box-shadow:0 4px 16px #0030874d}.auth-header h1{font-size:1.4rem;color:var(--text);font-weight:700;margin-bottom:4px}.auth-header p{color:var(--text-muted);font-size:.85rem}.auth-tabs{display:flex;gap:4px;background:var(--surface2);border-radius:var(--radius-sm);padding:4px;margin-bottom:28px}.auth-tabs button{flex:1;padding:10px;border:none;background:none;border-radius:calc(var(--radius-sm) - 2px);font-size:.95rem;font-weight:600;color:var(--text-muted);transition:all .2s}.auth-tabs button.active{background:var(--surface);color:var(--fju-blue);box-shadow:var(--shadow)}.auth-form{display:flex;flex-direction:column;gap:16px}.auth-error{background:#fee2e2;color:#991b1b;padding:10px 14px;border-radius:var(--radius-sm);font-size:.9rem;border-left:3px solid #DC2626}.form-row{display:flex;flex-direction:column;gap:6px}.form-row label{font-size:.875rem;font-weight:600;color:var(--text)}.form-row input,.form-row select{padding:10px 14px;border:1.5px solid var(--border);border-radius:var(--radius-sm);font-size:.95rem;color:var(--text);background:var(--surface);transition:border-color .2s,box-shadow .2s;width:100%}.form-row input:focus,.form-row select:focus{outline:none;border-color:var(--fju-blue);box-shadow:0 0 0 3px #0030871a}.field-hint{font-size:.78rem;color:var(--text-muted)}.required{color:var(--required-color)}.btn-primary{padding:13px;background:var(--fju-blue);color:#fff;border:none;border-radius:var(--radius-sm);font-size:1rem;font-weight:700;letter-spacing:.5px;transition:background .2s,transform .1s;margin-top:4px}.btn-primary:hover{background:#002070}.btn-primary:active{transform:scale(.99)}.btn-primary:disabled{background:#9bacd6;cursor:not-allowed}.schedule-wrapper{display:flex;flex-direction:column;gap:10px}.schedule-scroll{overflow-x:auto;border-radius:var(--radius);box-shadow:var(--shadow)}.schedule-table{width:100%;min-width:720px;border-collapse:collapse;background:var(--surface);table-layout:fixed}.th-period{width:84px;background:var(--fju-blue);color:#fff;font-size:.72rem;font-weight:600;letter-spacing:.5px;padding:10px 4px;text-align:center}.th-day{background:var(--fju-blue);color:#fff;font-size:.88rem;font-weight:700;letter-spacing:1px;padding:10px 6px;text-align:center;border-left:1px solid rgba(255,255,255,.15)}.section-sep-row{background:transparent}.section-sep-cell{padding:3px 8px;font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:1px;border-top:2px solid currentColor;background:transparent;opacity:.8}.section-sep-label:before{content:"▸ "}.period-row{height:56px}.period-row.noon-row{height:56px;background:#fffbeb}.period-row.evening-row{background:#fafaff}.period-row td{border:1px solid var(--border)}.td-period{background:var(--surface2);text-align:center;padding:4px 3px;position:sticky;left:0;z-index:2;border-right:2px solid var(--border)}.td-period.noon-period{background:#fffbeb;border-right-color:#d97706}.td-period.evening-period{background:#f0edff;border-right-color:#7c3aed}.period-label-inner{display:flex;flex-direction:column;align-items:center;gap:1px;line-height:1.2}.p-label{font-weight:900;font-size:1rem}.p-time{font-size:.58rem;color:var(--text-muted)}.p-dash{font-size:.5rem;color:var(--border)}.td-cell{padding:2px;vertical-align:top;transition:background .12s;position:relative}.td-cell.empty:hover{background:#eef2ff}.td-cell.cont{padding:0}.td-cell.drag-over{background:#00308712!important;outline:2px dashed var(--fju-blue);outline-offset:-2px}.course-block{width:100%;height:100%;min-height:52px;border-radius:5px;border:1px solid rgba(0,0,0,.06);cursor:grab;-webkit-user-select:none;user-select:none;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;position:relative;transition:box-shadow .15s,opacity .2s}.course-block:hover{box-shadow:0 3px 12px #00000026;z-index:5}.course-block.dragging{opacity:.35;cursor:grabbing}.course-block:active{cursor:grabbing}.cb-inner{padding:4px 7px;flex:1;display:flex;flex-direction:column;gap:2px;overflow:hidden}.cb-name{font-size:.74rem;font-weight:700;color:var(--text);line-height:1.3}.cb-room,.cb-teacher{font-size:.6rem;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cb-type{display:inline-block;width:fit-content;font-size:.58rem;font-weight:700;color:#fff;padding:1px 5px;border-radius:3px}.cb-type.required{background:var(--required-color)}.cb-type.elective{background:var(--elective-color)}.cb-type.general{background:var(--general-color)}.drag-handle{position:absolute;bottom:2px;right:4px;font-size:.75rem;opacity:.25;-webkit-user-select:none;user-select:none}.schedule-legend{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:4px 2px;font-size:.78rem}.legend-types,.legend-sections{display:flex;gap:10px}.legend-item{font-weight:600}.legend-item.required{color:var(--required-color)}.legend-item.elective{color:var(--elective-color)}.legend-item.general{color:var(--general-color)}.legend-sections span{color:var(--text-muted);font-weight:500}.legend-hint{margin-left:auto;color:var(--text-muted);font-size:.75rem}.course-list{display:flex;flex-direction:column;gap:10px}.course-list-empty{text-align:center;padding:60px 20px;color:var(--text-muted)}.empty-icon{font-size:3rem;margin-bottom:12px}.course-list-empty h3{font-size:1.1rem;margin-bottom:6px;color:var(--text)}.course-card{display:flex;background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;transition:box-shadow .2s}.course-card:hover{box-shadow:var(--shadow-lg)}.cc-stripe{width:5px;flex-shrink:0}.cc-body{flex:1;padding:14px 16px}.cc-header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:8px}.cc-title-row{display:flex;align-items:center;gap:8px}.cc-name{font-size:1rem;font-weight:700;color:var(--text)}.cc-badge{font-size:.7rem;font-weight:700;padding:2px 8px;border-radius:4px;color:#fff}.cc-badge.required{background:var(--required-color)}.cc-badge.elective{background:var(--elective-color)}.cc-badge.general{background:#7c3aed}.cc-credits{font-size:1.1rem;font-weight:700;color:var(--fju-blue)}.cc-meta{display:flex;flex-wrap:wrap;gap:8px}.cc-meta span{font-size:.8rem;color:var(--text-muted)}.cc-actions{display:flex;flex-direction:column;gap:6px;padding:12px;justify-content:center}.btn-edit,.btn-delete{padding:6px 14px;border-radius:6px;font-size:.8rem;font-weight:600;border:none}.btn-edit{background:var(--fju-light);color:var(--fju-blue)}.btn-edit:hover{background:#d8e3ff}.btn-delete{background:#fee2e2;color:#dc2626}.btn-delete:hover{background:#fecaca}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:200;padding:24px;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.modal-card{background:var(--surface);border-radius:16px;box-shadow:var(--shadow-lg);width:100%;max-width:600px;max-height:90vh;overflow-y:auto}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px 16px;border-bottom:1px solid var(--border);position:sticky;top:0;background:var(--surface);z-index:1}.modal-title-row{display:flex;align-items:center;gap:12px}.modal-title-row h2{font-size:1.1rem;font-weight:700}.color-swatch{width:20px;height:20px;border-radius:50%;border:2px solid rgba(0,0,0,.1)}.modal-close{background:none;border:none;font-size:1rem;color:var(--text-muted);padding:4px 8px;border-radius:6px;transition:background .2s}.modal-close:hover{background:var(--surface2)}.modal-form{padding:20px 24px;display:flex;flex-direction:column;gap:20px}.modal-error{background:#fee2e2;color:#991b1b;padding:10px 14px;border-radius:8px;font-size:.875rem}.modal-section{display:flex;flex-direction:column;gap:12px}.modal-section h3{font-size:.8rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:1px}.section-header{display:flex;align-items:center;justify-content:space-between}.btn-add-sch{background:var(--fju-light);color:var(--fju-blue);border:none;padding:5px 12px;border-radius:6px;font-size:.8rem;font-weight:600}.form-row{display:flex;flex-direction:column;gap:5px}.form-row label{font-size:.82rem;font-weight:600;color:var(--text)}.form-row input,.form-row select{padding:9px 12px;border:1.5px solid var(--border);border-radius:8px;font-size:.9rem;width:100%}.form-row input:focus,.form-row select:focus{outline:none;border-color:var(--fju-blue);box-shadow:0 0 0 3px #00308714}.form-row-2{display:grid;grid-template-columns:1fr 1fr;gap:12px}.req{color:var(--required-color)}.color-picker{display:flex;gap:8px;flex-wrap:wrap;padding:4px 0}.color-btn{width:28px;height:28px;border-radius:50%;border:3px solid transparent;transition:transform .15s,border-color .15s}.color-btn.selected{border-color:#fff;outline:2px solid #888;transform:scale(1.2)}.color-btn:hover{transform:scale(1.1)}.type-selector{display:flex;gap:8px}.type-btn{flex:1;padding:8px 0;border-radius:8px;font-size:.9rem;font-weight:700;border:2px solid;background:#fff;transition:all .15s;cursor:pointer}.type-btn:hover{opacity:.85}.type-btn.selected{box-shadow:0 2px 8px #00000026}.type-chip{font-size:.72rem;font-weight:700;color:#fff;padding:2px 8px;border-radius:4px;margin-left:4px}.section-label{font-size:.8rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:1px}.schedule-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 12px;background:var(--surface2);border-radius:8px}.schedule-row select{padding:7px 10px;border:1.5px solid var(--border);border-radius:6px;font-size:.85rem}.period-selects{display:flex;align-items:center;gap:6px;flex:1;flex-wrap:wrap}.period-selects span{font-size:.8rem;color:var(--text-muted)}.classroom-input{padding:7px 10px;border:1.5px solid var(--border);border-radius:6px;font-size:.85rem;width:120px;flex-shrink:0}.btn-rm-sch{background:none;border:none;color:#ef4444;font-size:.9rem;padding:4px 6px;border-radius:4px;transition:background .2s}.btn-rm-sch:hover{background:#fee2e2}.modal-actions{display:flex;gap:10px;justify-content:flex-end;padding-top:8px;border-top:1px solid var(--border)}.btn-cancel{padding:10px 20px;background:var(--surface2);border:1.5px solid var(--border);border-radius:8px;font-weight:600;color:var(--text);font-size:.9rem}.btn-cancel:hover{background:var(--border)}.btn-save{padding:10px 24px;background:var(--fju-blue);color:#fff;border:none;border-radius:8px;font-weight:700;font-size:.9rem;transition:background .2s}.btn-save:hover{background:#002070}.btn-save:disabled{background:#9bacd6;cursor:not-allowed}.profile-modal{max-width:460px}.profile-avatar-section{display:flex;align-items:center;gap:14px;padding:8px 0}.profile-avatar{width:56px;height:56px;border-radius:50%;background:var(--fju-blue);color:#fff;display:flex;align-items:center;justify-content:center;font-size:1.5rem;font-weight:700}.profile-email{font-size:.9rem;font-weight:600;color:var(--text)}.profile-since{font-size:.75rem;color:var(--text-muted);margin-top:2px}.profile-modal .form-row{display:flex;flex-direction:column;gap:5px}.profile-modal .form-row label{font-size:.82rem;font-weight:600}.profile-modal .form-row input,.profile-modal .form-row select{padding:9px 12px;border:1.5px solid var(--border);border-radius:8px;font-size:.9rem}.profile-modal .form-row input:focus,.profile-modal .form-row select:focus{outline:none;border-color:var(--fju-blue);box-shadow:0 0 0 3px #00308714}.profile-modal .form-row-2{display:grid;grid-template-columns:1fr 1fr;gap:12px}.profile-modal .modal-actions{display:flex;gap:10px;justify-content:flex-end;border-top:1px solid var(--border);padding-top:8px}.profile-modal .btn-cancel{padding:10px 20px;background:var(--surface2);border:1.5px solid var(--border);border-radius:8px;font-weight:600;color:var(--text)}.profile-modal .btn-save{padding:10px 24px;background:var(--fju-blue);color:#fff;border:none;border-radius:8px;font-weight:700}.profile-modal .btn-save:hover{background:#002070}.profile-modal .btn-save:disabled{background:#9bacd6}.profile-modal .modal-error{background:#fee2e2;color:#991b1b;padding:10px 14px;border-radius:8px;font-size:.875rem}.profile-modal .field-hint{font-size:.72rem;color:var(--text-muted);margin-top:2px}.exempted-hint{background:#f0fff4;color:#166534;padding:10px 14px;border-radius:8px;font-size:.85rem;border-left:3px solid #16A34A}.credit-summary{background:var(--surface);border-top:2px solid var(--border);padding:18px 24px}.cs-inner{max-width:1200px;margin:0 auto;display:flex;flex-direction:column;gap:14px}.cs-header{display:flex;align-items:center;gap:16px}.cs-title{font-size:.9rem;font-weight:700;color:var(--text);white-space:nowrap}.cs-progress-wrap{display:flex;align-items:center;gap:8px;flex:1}.cs-progress-bar{flex:1;height:8px;background:var(--border);border-radius:4px;overflow:hidden}.cs-progress-fill{height:100%;background:linear-gradient(90deg,var(--fju-blue) 0%,var(--fju-gold) 100%);border-radius:4px;transition:width .5s ease}.cs-pct{font-size:.8rem;font-weight:700;color:var(--fju-blue);min-width:36px;text-align:right}.cs-stats{display:flex;align-items:stretch;gap:8px;flex-wrap:wrap}.cs-stat-box{display:flex;flex-direction:column;align-items:center;gap:2px;padding:10px 14px;background:var(--surface2);border-radius:var(--radius-sm);border-top:3px solid var(--type-color, var(--border));min-width:80px}.cs-stat-box.total{border-top-color:var(--fju-blue);background:var(--fju-light)}.cs-stat-box.remain{border-top-color:transparent}.csb-label{font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--text-muted)}.csb-courses{font-size:.72rem;color:var(--text-muted)}.csb-credits{font-size:1.15rem;font-weight:800;color:var(--text)}.total-cr{color:var(--fju-blue)}.done-cr{color:#16a34a;font-size:.9rem}.rem-cr{color:#d97706}.cs-divider{width:1px;background:var(--border);align-self:stretch;margin:0 4px}.cs-breakdown{border-top:1px solid var(--border);padding-top:12px;display:flex;flex-direction:column;gap:10px}.cs-group{display:flex;flex-direction:column;gap:6px}.cs-group-label{font-size:.78rem;font-weight:700}.cs-tags{display:flex;flex-wrap:wrap;gap:6px}.cs-tag{display:flex;align-items:center;gap:5px;padding:3px 10px;border-radius:20px;border:1.5px solid;font-size:.78rem;font-weight:600;background:var(--surface2);color:var(--text)}.cs-tag-dot{width:7px;height:7px;border-radius:50%;flex-shrink:0}.cs-tag-cr{font-size:.68rem;color:var(--text-muted);margin-left:2px}.dashboard{display:flex;flex-direction:column;min-height:100vh;background:var(--bg)}.dashboard-header{background:var(--fju-blue);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 24px;height:64px;box-shadow:0 2px 12px #0003;position:sticky;top:0;z-index:100}.header-left{display:flex;align-items:center;gap:14px}.header-logo{background:var(--fju-gold);color:var(--fju-blue);font-weight:900;font-size:1rem;letter-spacing:1px;width:42px;height:42px;border-radius:10px;display:flex;align-items:center;justify-content:center}.header-title h1{font-size:1.1rem;font-weight:700}.header-subtitle{font-size:.75rem;opacity:.7}.header-right{display:flex;align-items:center;gap:12px}.save-msg{font-size:.85rem;opacity:.9}.save-msg.saving{opacity:.6}.header-user{display:flex;align-items:center;gap:10px;cursor:pointer;padding:6px 10px;border-radius:var(--radius-sm);transition:background .2s}.header-user:hover{background:#ffffff1a}.user-avatar{width:34px;height:34px;border-radius:50%;background:var(--fju-gold);color:var(--fju-blue);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1rem}.user-name{display:block;font-size:.9rem;font-weight:600}.user-dept{display:block;font-size:.72rem;opacity:.7}.btn-logout{background:#ffffff1a;border:none;color:#fff;width:36px;height:36px;border-radius:8px;font-size:1rem;display:flex;align-items:center;justify-content:center;transition:background .2s}.btn-logout:hover{background:#fff3}.credit-bar{background:var(--surface);border-bottom:1px solid var(--border);display:flex;align-items:center;gap:20px;padding:12px 24px;flex-wrap:wrap}.credit-item{display:flex;flex-direction:column;align-items:center;gap:2px}.credit-item.highlight{margin-left:auto}.credit-label{font-size:.72rem;color:var(--text-muted);font-weight:600;text-transform:uppercase;letter-spacing:.5px}.credit-label.required-dot:before{content:"●";color:var(--required-color);margin-right:4px}.credit-label.elective-dot:before{content:"●";color:var(--elective-color);margin-right:4px}.credit-label.general-dot:before{content:"●";color:#7c3aed;margin-right:4px}.credit-label.exempted-dot:before{content:"●";color:#059669;margin-right:4px}.credit-value{font-size:1.3rem;font-weight:700;color:var(--text)}.credit-value.remaining{color:var(--fju-blue)}.credit-value.done{color:#16a34a;font-size:1rem}.credit-divider{width:1px;height:36px;background:var(--border)}.credit-progress-wrap{display:flex;align-items:center;gap:8px;min-width:140px}.credit-progress-bar{flex:1;height:8px;background:var(--border);border-radius:4px;overflow:hidden}.credit-progress-fill{height:100%;background:linear-gradient(90deg,var(--fju-blue),var(--fju-gold));border-radius:4px;transition:width .6s ease}.credit-pct{font-size:.8rem;font-weight:700;color:var(--fju-blue);min-width:36px}.dashboard-tabs{display:flex;align-items:center;gap:4px;padding:12px 24px;background:var(--surface);border-bottom:2px solid var(--border)}.dashboard-tabs button{padding:8px 18px;border:none;background:none;border-radius:var(--radius-sm);font-size:.9rem;font-weight:600;color:var(--text-muted);transition:all .2s}.dashboard-tabs button.active{background:var(--fju-light);color:var(--fju-blue)}.dashboard-tabs button:hover:not(.active):not(.btn-add-course){background:var(--surface2)}.btn-add-course{margin-left:auto!important;background:var(--fju-blue)!important;color:#fff!important;padding:8px 18px!important;border-radius:var(--radius-sm)!important;font-weight:700!important;transition:background .2s!important}.btn-add-course:hover{background:#002070!important}.dashboard-main{flex:1;padding:20px 24px;overflow-x:auto}.content-loading{display:flex;align-items:center;justify-content:center;gap:12px;height:200px;color:var(--text-muted)}.loading-spinner{width:28px;height:28px;border:3px solid var(--border);border-top-color:var(--fju-blue);border-radius:50%;animation:spin .8s linear infinite}.loading-screen{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh;gap:16px;background:var(--bg)}.loading-logo{font-size:2.5rem;font-weight:900;color:var(--fju-blue);letter-spacing:4px}.loading-spinner{width:36px;height:36px;border:3px solid var(--border);border-top-color:var(--fju-blue);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--fju-blue: #003087;--fju-gold: #C8A84B;--fju-light: #EEF2FF;--bg: #F0F4FF;--surface: #FFFFFF;--surface2: #F8FAFF;--border: #D1D9EE;--text: #1A2340;--text-muted: #6B7A9E;--required-color: #D93025;--elective-color: #1967D2;--general-color: #7C3AED;--shadow: 0 2px 12px rgba(0,48,135,.1);--shadow-lg: 0 8px 32px rgba(0,48,135,.14);--radius: 12px;--radius-sm: 8px}html,body{height:100%;font-family:Segoe UI,Noto Sans TC,sans-serif;background:var(--bg);color:var(--text)}#root{min-height:100vh;display:flex;flex-direction:column}button{cursor:pointer;font-family:inherit}input,select,textarea{font-family:inherit}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--border);border-radius:3px}
