*{box-sizing:border-box}:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;line-height:1.5;font-weight:400;color:#2c3e50;background-color:#f5f7fa;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{margin:0;min-width:320px;min-height:100vh}#root,.app{width:100%;min-height:100vh}.app-nav{display:flex;justify-content:center;gap:1rem;padding:1.5rem;background:#fff;border-bottom:1px solid #e5e7eb;box-shadow:0 1px 3px #0000000d}.nav-link{padding:.75rem 1.5rem;border-radius:8px;text-decoration:none;color:#374151;font-weight:500;font-size:1rem;transition:all .2s ease;border:1px solid transparent}.nav-link:hover{background:#f3f4f6;color:#1f2937}.nav-link.active{background:#3b82f6;color:#fff;border-color:#3b82f6}.homework-submission-container{max-width:900px;margin:0 auto;padding:2rem 1rem;width:100%}.homework-submission-header{text-align:center;margin-bottom:3rem}.title{font-size:2.75rem;font-weight:700;color:#1e88e5;margin:0;margin-bottom:.75rem;line-height:1.2}.subtitle{font-size:1.125rem;color:#666;margin:0;font-weight:400}.homework-submission-form{background:#fff;border-radius:12px;padding:2.5rem;box-shadow:0 2px 8px #00000014}.form-section{margin-bottom:2rem}.form-section:last-of-type{margin-bottom:2.5rem}.section-header{display:flex;align-items:center;gap:.5rem;margin-bottom:.75rem}.icon{width:20px;height:20px;color:#1e88e5;flex-shrink:0}.section-title{font-size:1.125rem;font-weight:600;color:#2c3e50;margin:0}.optional-badge{font-size:.875rem;color:#999;font-weight:400;margin-left:.25rem}.textarea{width:100%;padding:1rem;border:1px solid #e0e0e0;border-radius:8px;font-size:.9375rem;font-family:inherit;resize:vertical;transition:border-color .2s ease,box-shadow .2s ease;color:#2c3e50;background:#fafafa;box-sizing:border-box}.textarea::placeholder{color:#aaa}.textarea:focus{outline:none;border-color:#1e88e5;box-shadow:0 0 0 3px #1e88e51a;background:#fff}.select-wrapper{position:relative;width:100%}.select{width:100%;padding:1rem 3rem 1rem 1rem;border:1px solid #e0e0e0;border-radius:8px;font-size:.9375rem;font-family:inherit;transition:border-color .2s ease,box-shadow .2s ease;cursor:pointer;color:#2c3e50;background:#fafafa;appearance:none;-webkit-appearance:none;-moz-appearance:none;box-sizing:border-box}.select:focus{outline:none;border-color:#1e88e5;box-shadow:0 0 0 3px #1e88e51a;background:#fff}.select option{padding:.5rem}.select-icon{position:absolute;right:1rem;top:50%;transform:translateY(-50%);width:20px;height:20px;color:#666;pointer-events:none}.submit-button-wrapper{display:flex;justify-content:flex-end;margin-top:2rem}.submit-button{background:linear-gradient(135deg,#1e88e5,#1976d2);color:#fff;border:none;padding:.875rem 2rem;font-size:1rem;font-weight:600;border-radius:8px;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease;box-shadow:0 2px 8px #1e88e54d}.submit-button:hover{transform:translateY(-2px);box-shadow:0 4px 12px #1e88e566}.submit-button:active{transform:translateY(0);box-shadow:0 2px 6px #1e88e54d}.submit-button:focus{outline:none;box-shadow:0 0 0 3px #1e88e54d,0 2px 8px #1e88e54d}.submit-button:disabled{background:linear-gradient(135deg,#9e9e9e,#757575);cursor:not-allowed;opacity:.6;transform:none;box-shadow:0 2px 8px #0003}.submit-button:disabled:hover{transform:none;box-shadow:0 2px 8px #0003}@media(max-width:768px){.homework-submission-form{padding:1.5rem}.title{font-size:2rem}.subtitle{font-size:1rem}.submit-button-wrapper{justify-content:stretch}.submit-button{width:100%}}.submissions-page{max-width:1400px;margin:0 auto;padding:2rem}.submissions-header{margin-bottom:2rem}.submissions-title{font-size:2.5rem;font-weight:700;color:#1a1a1a;margin:0 0 .5rem}.submissions-subtitle{font-size:1.1rem;color:#666;margin:0}.submissions-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(380px,1fr));gap:1.5rem}.submission-card{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:1.5rem;transition:all .3s ease;box-shadow:0 1px 3px #0000000d;cursor:pointer}.submission-card:hover{box-shadow:0 8px 24px #0000001f;transform:translateY(-2px)}.card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.status-badge{padding:.375rem .875rem;border-radius:20px;font-size:.875rem;font-weight:600;display:inline-block}.status-checking{background:#dbeafe;color:#1e40af}.status-completed{background:#d1fae5;color:#065f46}.status-revision{background:#fee2e2;color:#991b1b}.grade-badge{padding:.375rem .875rem;border-radius:20px;font-size:.875rem;font-weight:700;background:#fef3c7;color:#92400e}.card-subject{display:flex;align-items:center;gap:.5rem;margin-bottom:1rem}.subject-icon{font-size:1.5rem}.subject-name{font-size:.875rem;font-weight:600;color:#6b7280;text-transform:uppercase;letter-spacing:.05em}.card-title{font-size:1.125rem;font-weight:600;color:#1a1a1a;margin:0 0 1rem;line-height:1.5}.card-preview{font-size:.9375rem;color:#6b7280;line-height:1.6;margin:0 0 1rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.feedback-section{background:#f9fafb;border-left:3px solid #3b82f6;padding:1rem;border-radius:8px;margin-bottom:1rem}.feedback-header{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem}.feedback-icon{width:16px;height:16px;color:#3b82f6}.feedback-label{font-size:.875rem;font-weight:600;color:#3b82f6}.feedback-text{font-size:.9375rem;color:#4b5563;line-height:1.5;margin:0}.card-footer{display:flex;justify-content:space-between;align-items:center;padding-top:1rem;border-top:1px solid #e5e7eb}.date-info{display:flex;align-items:center;gap:.5rem}.date-text{font-size:.875rem;color:#6b7280}.view-button{display:flex;align-items:center;gap:.5rem;padding:.5rem 1rem;background:transparent;border:1px solid #d1d5db;border-radius:8px;color:#374151;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .2s ease}.view-button:hover{background:#f3f4f6;border-color:#9ca3af}.eye-icon{width:18px;height:18px}.empty-state{text-align:center;padding:4rem 2rem;color:#6b7280;font-size:1.125rem;background:#fff;border:2px dashed #e5e7eb;border-radius:16px;margin-top:2rem}.pagination{display:flex;justify-content:center;align-items:center;gap:1.5rem;margin-top:3rem;padding:1.5rem 0}.pagination-button{display:flex;align-items:center;gap:.5rem;padding:.625rem 1.25rem;background:#fff;border:1px solid #d1d5db;border-radius:8px;color:#374151;font-size:.9375rem;font-weight:500;cursor:pointer;transition:all .2s ease}.pagination-button:hover:not(:disabled){background:#f9fafb;border-color:#9ca3af;transform:translateY(-1px)}.pagination-button:disabled{opacity:.4;cursor:not-allowed}.pagination-icon{width:20px;height:20px}.pagination-info{font-size:.9375rem;font-weight:500;color:#6b7280;min-width:120px;text-align:center}@media(max-width:768px){.submissions-page{padding:1rem}.submissions-title{font-size:2rem}.submissions-grid{grid-template-columns:1fr}.card-footer{flex-direction:column;gap:1rem;align-items:flex-start}.view-button{width:100%;justify-content:center}.pagination{gap:1rem}.pagination-button{padding:.5rem .875rem;font-size:.875rem}.pagination-info{font-size:.875rem;min-width:100px}}.submission-detail-page{max-width:900px;margin:0 auto;padding:2rem}.back-button{display:flex;align-items:center;gap:.5rem;padding:.75rem 1.25rem;background-color:#f3f4f6;border:1px solid #e5e7eb;border-radius:8px;color:#374151;font-size:.95rem;font-weight:500;cursor:pointer;transition:all .2s ease;margin-bottom:2rem}.back-button:hover{background-color:#e5e7eb;transform:translate(-2px)}.back-icon{width:20px;height:20px}.error-container{text-align:center;padding:3rem}.error-container h2{color:#6b7280;margin-bottom:1.5rem}.detail-header{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:1.25rem 1.5rem;margin-bottom:2rem;box-shadow:0 1px 3px #0000000d;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:1rem}.subject-badge{display:flex;align-items:center;gap:.5rem;background:#f9fafb;padding:.5rem 1rem;border-radius:8px}.subject-icon{font-size:1.25rem}.subject-name{font-weight:600;font-size:.875rem;color:#374151}.status-badge{padding:.5rem 1rem;border-radius:8px;font-size:.8125rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em}.status-checking{background-color:#dbeafe;color:#1e40af}.status-completed{background-color:#d1fae5;color:#065f46}.status-revision{background-color:#fee2e2;color:#991b1b}.submitted-date{display:flex;align-items:center;gap:.5rem;color:#6b7280;font-size:.875rem;margin-left:auto}.calendar-icon{width:16px;height:16px;color:#9ca3af}.date-label{font-weight:500}.date-value{font-weight:600;color:#374151}.detail-content{display:flex;flex-direction:column;gap:1.5rem}.detail-section{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:1.5rem;box-shadow:0 1px 3px #0000001a}.section-header{display:flex;align-items:center;gap:.75rem;margin-bottom:1rem;padding-bottom:1rem;border-bottom:2px solid #f3f4f6}.section-icon{width:24px;height:24px;color:#667eea;flex-shrink:0}.section-title{font-size:1.25rem;font-weight:700;color:#1f2937;margin:0}.section-content{background:#f9fafb;padding:1.25rem;border-radius:8px;border-left:4px solid #667eea}.custom-instructions .section-content{border-left-color:#f59e0b;background:#fffbeb}.text-content{color:#374151;line-height:1.7;white-space:pre-wrap;word-wrap:break-word;margin:0;font-size:1rem}.solution-text{font-family:SF Mono,Monaco,Inconsolata,Roboto Mono,monospace;font-size:.95rem;background:#fff;padding:1rem;border-radius:6px;border:1px solid #e5e7eb}.feedback-section-detail{background:linear-gradient(135deg,#f0fdf4,#dcfce7);border-color:#86efac}.feedback-section-detail .section-icon{color:#16a34a}.feedback-content{background:#fff;border-left-color:#16a34a}.feedback-section-detail .section-title{color:#15803d}.status-error{background-color:#fee2e2;color:#991b1b}.error-section-detail{background:linear-gradient(135deg,#fef2f2,#fee2e2);border-color:#fca5a5}.error-section-detail .section-icon{color:#dc2626}.error-content{background:#fff;border-left-color:#dc2626}.error-section-detail .section-title{color:#b91c1c}.error-text{color:#991b1b}@media(max-width:768px){.submission-detail-page{padding:1rem}.detail-header{padding:1rem;flex-direction:column;align-items:flex-start;gap:.75rem}.submitted-date{margin-left:0;width:100%}.section-header{flex-wrap:wrap}.section-title{font-size:1.1rem}}.header{background:linear-gradient(135deg,#1e88e5,#1976d2);color:#fff;padding:1.5rem 2rem;box-shadow:0 2px 8px #0000001a}.header-content{max-width:1200px;margin:0 auto;display:flex;justify-content:space-between;align-items:center}.header-left{flex:1}.app-title{margin:0;font-size:1.5rem;font-weight:600;color:#fff}.app-logo{height:40px;width:auto;display:block}.header-right{display:flex;align-items:center}.user-info{display:flex;align-items:center;gap:1.5rem}.username{font-size:1rem;font-weight:500;color:#fff}.logout-button{background:#fff3;color:#fff;border:1px solid rgba(255,255,255,.3);padding:.5rem 1.5rem;border-radius:20px;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .3s ease;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.logout-button:hover{background:#ffffff4d;border-color:#ffffff80;transform:translateY(-1px)}.logout-button:active{transform:translateY(0)}@media(max-width:768px){.header{padding:1rem 1.5rem}.header-content{flex-direction:column;gap:1rem;align-items:flex-start}.app-title{font-size:1.25rem}.app-logo{height:32px}.user-info{width:100%;justify-content:space-between}}.login-container{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:2rem 1rem;background:#f5f7fa}.login-card{max-width:450px;width:100%;background:#fff;border-radius:12px;padding:3rem 2.5rem;box-shadow:0 2px 8px #00000014}.login-header{text-align:center;margin-bottom:2.5rem}.login-logo{width:64px;height:64px;color:#1e88e5;margin:0 auto 1.25rem;display:block}.login-title{font-size:2rem;font-weight:700;color:#1e88e5;margin:0;margin-bottom:.5rem;line-height:1.2}.login-subtitle{font-size:1rem;color:#666;margin:0;font-weight:400}.login-form{display:flex;flex-direction:column;gap:1.5rem}.form-field{display:flex;flex-direction:column;gap:.5rem}.field-header{display:flex;align-items:center;gap:.5rem}.field-icon{width:18px;height:18px;color:#1e88e5;flex-shrink:0}.field-label{font-size:1rem;font-weight:600;color:#2c3e50;margin:0}.input{width:100%;padding:1rem;border:1px solid #e0e0e0;border-radius:8px;font-size:.9375rem;font-family:inherit;transition:border-color .2s ease,box-shadow .2s ease;color:#2c3e50;background:#fafafa;box-sizing:border-box}.input::placeholder{color:#aaa}.input:focus{outline:none;border-color:#1e88e5;box-shadow:0 0 0 3px #1e88e51a;background:#fff}.login-button-wrapper{margin-top:.5rem}.login-button{width:100%;background:linear-gradient(135deg,#1e88e5,#1976d2);color:#fff;border:none;padding:1rem 2rem;font-size:1rem;font-weight:600;border-radius:8px;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease;box-shadow:0 2px 8px #1e88e54d}.login-button:hover{transform:translateY(-2px);box-shadow:0 4px 12px #1e88e566}.login-button:active{transform:translateY(0);box-shadow:0 2px 6px #1e88e54d}.login-button:focus{outline:none;box-shadow:0 0 0 3px #1e88e54d,0 2px 8px #1e88e54d}.login-button:disabled{background:linear-gradient(135deg,#9e9e9e,#757575);cursor:not-allowed;opacity:.6;transform:none;box-shadow:0 2px 8px #0003}.login-button:disabled:hover{transform:none;box-shadow:0 2px 8px #0003}@media(max-width:768px){.login-card{padding:2rem 1.5rem}.login-title{font-size:1.75rem}.login-subtitle{font-size:.9375rem}}
