.assignment-list-container{display:grid;grid-template-columns:300px 1fr;height:100vh;gap:0;background:#f9fafb}@media (max-width: 768px){.assignment-list-container{grid-template-columns:1fr;height:auto}}.assignment-sidebar{background:#fff;border-right:1px solid #e5e7eb;overflow-y:auto;padding:20px}@media (max-width: 768px){.assignment-sidebar{border-right:none;border-bottom:1px solid #e5e7eb}}.difficulty-filter{margin-bottom:30px}.difficulty-filter h3{font-size:16px;font-weight:600;margin-bottom:12px;color:#1f2937}.filter-buttons{display:flex;flex-direction:column;gap:8px}.filter-buttons .filter-btn{padding:10px 16px;border:2px solid #e5e7eb;background:#fff;border-radius:6px;cursor:pointer;font-size:14px;font-weight:500;color:#6b7280;transition:all .3s ease}.filter-buttons .filter-btn:hover{border-color:#3b82f6;color:#3b82f6}.filter-buttons .filter-btn.active{background:#3b82f6;border-color:#3b82f6;color:#fff}.assignment-cards{display:flex;flex-direction:column;gap:10px}.assignment-card{padding:12px;background:#fff;border:2px solid #e5e7eb;border-radius:8px;cursor:pointer;transition:all .3s ease}.assignment-card:hover{border-color:#3b82f6;box-shadow:0 4px 6px #0000001a}.assignment-card.active{background:#eff6ff;border-color:#3b82f6;box-shadow:0 4px 12px #3b82f640}.assignment-card .card-header{display:flex;justify-content:space-between;align-items:start;margin-bottom:8px}.assignment-card .card-header h4{margin:0;font-size:14px;font-weight:600;color:#1f2937;flex:1}.assignment-card .difficulty-badge{padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;color:#fff;white-space:nowrap;margin-left:8px}.assignment-card .card-description{margin:0;font-size:12px;color:#9ca3af;line-height:1.4}.sql-editor{padding:30px;max-width:1200px}.sql-editor .editor-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px;border-bottom:2px solid #e5e7eb;padding-bottom:15px}.sql-editor .editor-header h1{margin:0;font-size:28px;font-weight:700;color:#1f2937}.sql-editor .editor-header .difficulty{margin:0;font-size:12px;font-weight:600;padding:4px 12px;border-radius:20px;background:#f3f4f6}.assignment-details{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:20px;margin-bottom:30px}.assignment-details h3{font-size:16px;font-weight:600;color:#1f2937;margin:0 0 10px}.editor-section h3{font-size:16px;font-weight:600;color:#1f2937;margin:0 0 12px}.editor-section .sql-input{width:100%;padding:12px;border:1px solid #d1d5db;border-radius:6px;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:14px;resize:vertical;background:#f9fafb;color:#1f2937}.editor-section .sql-input:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.editor-section .button-group{display:flex;gap:10px;margin-top:15px}@media (max-width: 600px){.editor-section .button-group{flex-direction:column}}.editor-section .button-group .btn{flex:1;padding:10px 20px;border:none;border-radius:6px;font-size:14px;font-weight:600;cursor:pointer;transition:all .3s ease}.editor-section .button-group .btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 12px #00000026}.editor-section .button-group .btn:disabled{opacity:.6;cursor:not-allowed}.editor-section .button-group .btn-primary{background:#3b82f6;color:#fff}.editor-section .button-group .btn-primary:hover:not(:disabled){background:#2563eb}.editor-section .button-group .btn-secondary{background:#fff;color:#3b82f6;border:2px solid #3b82f6}.editor-section .button-group .btn-secondary:hover:not(:disabled){background:#eff6ff}.error-message{padding:12px;margin-top:15px;background:#fee2e2;border:1px solid #fca5a5;border-radius:6px;color:#991b1b;font-size:14px}.error-message strong{display:block;margin-bottom:4px}.hint-box{padding:15px;margin-top:15px;background:#fef3c7;border:1px solid #fcd34d;border-radius:6px;color:#78350f;position:relative}.hint-box strong{display:block;margin-bottom:8px;font-size:14px}.hint-box .close-hint{position:absolute;top:10px;right:10px;background:none;border:none;cursor:pointer;font-size:18px;color:#78350f}.hint-box .close-hint:hover{opacity:.7}.result-section{margin-top:20px;padding:15px;background:#fff;border:1px solid #e5e7eb;border-radius:6px}.result-section h4{margin:0 0 15px;font-size:16px;font-weight:600;color:#1f2937}.result-section .results-table table{width:100%;border-collapse:collapse;font-size:14px}.result-section .results-table table thead{background:#f3f4f6}.result-section .results-table table thead th{padding:10px;text-align:left;font-weight:600;color:#1f2937;border-bottom:2px solid #e5e7eb;font-family:monospace}.result-section .results-table table tbody tr:hover{background:#f9fafb}.result-section .results-table table tbody tr td{padding:10px;border-bottom:1px solid #e5e7eb;color:#4b5563;font-family:monospace}.result-section .no-results{text-align:center;color:#9ca3af;padding:20px;margin:0}*{margin:0;padding:0;box-sizing:border-box}html{font-size:16px;-webkit-font-smoothing:antialiased}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;background-color:#f8f9fa;color:#333;line-height:1.6}.app-container{display:flex;flex-direction:column;min-height:100vh}.app-header{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:24px 16px;box-shadow:0 2px 8px #0000001a;position:sticky;top:0;z-index:100}.header-content{max-width:1400px;margin:0 auto}.app-header h1{font-size:24px;margin-bottom:4px;font-weight:700}.app-header .subtitle{font-size:14px;opacity:.95;margin:0}.assignment-list-container{display:grid;grid-template-columns:300px 1fr;flex:1;overflow:hidden;gap:0}@media (max-width: 768px){.assignment-list-container{grid-template-columns:1fr;grid-template-rows:auto 1fr}}.assignment-sidebar{background:#fff;border-right:1px solid #e0e0e0;overflow-y:auto;padding:20px;max-height:calc(100vh - 80px)}@media (max-width: 768px){.assignment-sidebar{border-right:none;border-bottom:1px solid #e0e0e0;max-height:400px;overflow-y:auto;padding:16px}}@media (max-width: 480px){.assignment-sidebar{max-height:300px;padding:12px}}.assignments-header{display:flex;justify-content:space-between;align-items:center;margin:20px 0 12px;padding-bottom:12px;border-bottom:2px solid #f0f0f0}.assignments-header h3{font-size:16px;font-weight:600;color:#1a1a1a;margin:0}.assignments-header .count{background:#667eea;color:#fff;padding:2px 8px;border-radius:12px;font-size:12px;font-weight:600}.loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 20px;text-align:center;color:#666}.loading .spinner{width:40px;height:40px;border:3px solid #f0f0f0;border-top-color:#667eea;border-radius:50%;animation:spin .8s linear infinite;margin-bottom:12px}.loading p{font-size:14px;margin:0}@keyframes spin{to{transform:rotate(360deg)}}.sidebar-error{background:#fee;border:1px solid #fcc;border-radius:6px;padding:12px;margin:12px 0;text-align:center}.sidebar-error p{color:#c33;font-size:14px;margin-bottom:8px}.sidebar-error .retry-btn{background:#c33;color:#fff;border:none;padding:6px 12px;border-radius:4px;cursor:pointer;font-size:12px;font-weight:600;transition:background .2s}.sidebar-error .retry-btn:hover{background:#a22}.empty-list{padding:24px 12px;text-align:center;color:#999;font-size:13px}.assignment-cards{display:flex;flex-direction:column;gap:8px}.assignment-card{padding:12px;background:#fff;border:2px solid #e0e0e0;border-radius:6px;cursor:pointer;transition:all .2s ease;position:relative}.assignment-card:hover{border-color:#667eea;box-shadow:0 2px 8px #667eea1a;transform:translateY(-1px)}.assignment-card.active{background:#f0f4ff;border-color:#667eea;box-shadow:0 4px 12px #667eea33}.assignment-card .card-header{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;margin-bottom:8px}.assignment-card .card-header h4{margin:0;font-size:13px;font-weight:600;color:#1a1a1a;flex:1}.assignment-card .difficulty-badge{padding:2px 6px;border-radius:3px;font-size:10px;font-weight:700;color:#fff;white-space:nowrap;display:inline-block;text-transform:uppercase}.assignment-card .card-description{margin:0;font-size:12px;color:#666;line-height:1.4}.editor-main{flex:1;overflow-y:auto;background:#fafafa}.sql-editor{padding:24px;max-width:1200px;margin:0 auto;width:100%}@media (max-width: 768px){.sql-editor{padding:16px}}@media (max-width: 480px){.sql-editor{padding:12px}}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;text-align:center;color:#999}.empty-state .empty-icon{font-size:64px;margin-bottom:16px;opacity:.5}.empty-state h2{font-size:24px;color:#666;margin-bottom:8px}.empty-state p{font-size:14px;color:#999}.editor-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:24px;padding-bottom:16px;border-bottom:2px solid #e0e0e0}.editor-header h2{font-size:24px;font-weight:700;color:#1a1a1a;margin:0}.editor-header .assignment-question{margin:8px 0 0;font-size:14px;color:#666;line-height:1.5}@media (max-width: 768px){.editor-header{flex-direction:column;align-items:flex-start}.editor-header h2{font-size:20px}}.difficulty-badge{padding:6px 12px;border-radius:20px;font-size:12px;font-weight:700;color:#fff;text-transform:uppercase;white-space:nowrap}.sample-data-section{margin-bottom:24px;background:#fff;padding:16px;border-radius:8px;border:1px solid #e0e0e0}.sample-data-section h3{font-size:16px;font-weight:600;color:#1a1a1a;margin:0 0 12px}.sample-data-section .sample-tables{display:grid;gap:12px}@media (max-width: 768px){.sample-data-section .sample-tables{grid-template-columns:1fr}}.sample-data-section .table-schema h4{font-size:13px;font-weight:600;color:#667eea;margin:0 0 8px;text-transform:uppercase;letter-spacing:.5px}.sample-data-section .table-schema .schema-table{width:100%;font-size:12px;border-collapse:collapse}.sample-data-section .table-schema .schema-table thead{background:#f5f5f5}.sample-data-section .table-schema .schema-table thead th{padding:8px;text-align:left;font-weight:600;color:#1a1a1a;border-bottom:2px solid #e0e0e0}.sample-data-section .table-schema .schema-table tbody tr:hover{background:#fafafa}.sample-data-section .table-schema .schema-table tbody tr td{padding:8px;border-bottom:1px solid #f0f0f0;color:#666}.sample-data-section .table-schema .schema-table tbody tr td.column-name{font-family:Courier New,monospace;font-weight:500;color:#1a1a1a}.sample-data-section .table-schema .schema-table tbody tr td.data-type{color:#667eea;font-family:Courier New,monospace}.editor-section{margin-bottom:24px;background:#fff;padding:16px;border-radius:8px;border:1px solid #e0e0e0}.editor-section h3{font-size:16px;font-weight:600;color:#1a1a1a;margin:0 0 12px}.editor-section .monaco-wrapper{border:1px solid #e0e0e0;border-radius:6px;overflow:hidden;margin-bottom:12px}.editor-section .button-group{display:grid;grid-template-columns:1fr 1fr;gap:8px}@media (max-width: 480px){.editor-section .button-group{grid-template-columns:1fr}}.btn{padding:10px 16px;border:none;border-radius:6px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;justify-content:center;gap:6px}.btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 12px #00000026}.btn:disabled{opacity:.6;cursor:not-allowed}.btn.btn-primary{background:#667eea;color:#fff}.btn.btn-primary:hover:not(:disabled){background:#5568d3}.btn.btn-secondary{background:#fff;color:#667eea;border:2px solid #667eea}.btn.btn-secondary:hover:not(:disabled){background:#f0f4ff}.error-message,.success-message{padding:12px 16px;margin-bottom:16px;border-radius:6px;font-size:14px;animation:slideIn .3s ease}.error-message{background:#fee;border:1px solid #fcc;color:#c33}.error-message strong{display:block;margin-bottom:4px;font-weight:600}.error-message p{margin:0}.success-message{background:#efe;border:1px solid #cfc;color:#3c3;font-weight:500}.success-message p{margin:0}.hint-box{background:#fffbea;border:1px solid #fde68a;border-radius:6px;padding:12px 16px;margin-bottom:16px;color:#744210;position:relative}.hint-box .hint-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:8px}.hint-box .hint-header strong{display:block;font-weight:600;font-size:14px}.hint-box p{margin:0;font-size:14px;line-height:1.5}.hint-box .close-hint{background:none;border:none;cursor:pointer;font-size:16px;color:#744210;opacity:.7;transition:opacity .2s}.hint-box .close-hint:hover{opacity:1}.result-section{background:#fff;border:1px solid #e0e0e0;border-radius:8px;padding:16px;margin-top:24px}.result-section h4{margin:0 0 12px;font-size:16px;font-weight:600;color:#1a1a1a}.result-section .results-table{overflow-x:auto}.result-section .results-table table{width:100%;border-collapse:collapse;font-size:13px}.result-section .results-table table thead{background:#f5f5f5}.result-section .results-table table thead th{padding:10px;text-align:left;font-weight:600;color:#1a1a1a;border-bottom:2px solid #e0e0e0;font-family:Courier New,monospace;white-space:nowrap}.result-section .results-table table tbody tr:hover{background:#fafafa}.result-section .results-table table tbody tr td{padding:10px;border-bottom:1px solid #f0f0f0;color:#666;font-family:Courier New,monospace}.result-section .results-table table tbody tr td .null-value{color:#999;font-style:italic}.result-section .results-note{font-size:12px;color:#999;margin-top:8px;font-style:italic}.result-section .no-results{text-align:center;color:#999;padding:20px;margin:0}@keyframes slideIn{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#ccc;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#999}
