.admin-contests-page{color:var(--text-primary,#f1f5f9);padding:32px}.admin-contests-header{justify-content:space-between;align-items:center;gap:20px;margin-bottom:36px;display:flex}.admin-contests-header h1{margin:0 0 8px;font-size:30px}.admin-contests-header p{color:var(--text-secondary,#94a3b8);margin:0}.admin-create-contest-btn{color:#fff;cursor:pointer;white-space:nowrap;background:#2563eb;border:none;border-radius:8px;padding:13px 22px;font-size:14px;font-weight:600}.admin-create-contest-btn:hover{background:#1d4ed8}.admin-contests-card{background:var(--card-bg,#162237);border:1px solid var(--border-color,#293b55);border-radius:12px;padding:26px}.admin-contests-card-header{justify-content:space-between;align-items:center;margin-bottom:24px;display:flex}.admin-contests-card-header h2{margin:0;font-size:20px}.admin-contests-card-header span{color:var(--text-secondary,#94a3b8);font-size:13px}.admin-contests-table-wrapper{border:1px solid var(--border-color,#293b55);border-radius:9px;width:100%;overflow-x:auto}.admin-contests-table{border-collapse:collapse;text-align:left;white-space:nowrap;width:100%}.admin-contests-table thead{background:var(--table-header-bg,#111c30)}.admin-contests-table th{color:var(--text-secondary,#94a3b8);padding:18px;font-size:13px;font-weight:600}.admin-contests-table td{border-top:1px solid var(--border-color,#293b55);padding:18px;font-size:13px}.admin-contests-table tbody tr{background:var(--card-bg,#162237);transition:background .2s}.admin-contests-table tbody tr:hover{background:#1d2d45}.admin-contest-title{color:var(--text-primary,#f1f5f9);text-overflow:ellipsis;max-width:220px;font-weight:600;overflow:hidden}.admin-contest-status{text-transform:capitalize;border-radius:20px;padding:6px 12px;font-size:12px;font-weight:600;display:inline-block}.admin-contest-status.upcoming{color:#60a5fa;background:#3b82f626}.admin-contest-status.ongoing{color:#34d399;background:#10b98126}.admin-contest-status.completed{color:#94a3b8;background:#94a3b826}.admin-contest-actions{gap:8px;display:flex}.admin-contest-actions button{cursor:pointer;border-radius:6px;padding:9px 13px;font-size:12px;font-weight:600}.admin-edit-btn{color:#60a5fa;background:#1e293b;border:1px solid #334e75}.admin-edit-btn:hover{background:#263852}.admin-manage-problems-btn{color:#a78bfa;background:#1e293b;border:1px solid #4c3b80}.admin-manage-problems-btn:hover{background:#302650}.admin-delete-btn{color:#f87171;background:#2b1c2a;border:1px solid #713044}.admin-delete-btn:hover{background:#451e2a}.admin-contest-empty{text-align:center;padding:50px 20px}.admin-contest-empty h3{margin-bottom:10px}.admin-contest-empty p{color:var(--text-secondary,#94a3b8);margin-bottom:24px}.admin-contest-message{text-align:center;color:var(--text-secondary,#94a3b8);padding:50px}.admin-contest-error{color:#f87171;background:#ef44441a;border:1px solid #ef44444d;border-radius:8px;margin-bottom:20px;padding:14px 18px}.admin-contest-modal-overlay{z-index:1000;background:#020617bf;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0;overflow-y:auto}.admin-contest-modal{background:var(--card-bg,#162237);border:1px solid var(--border-color,#334155);border-radius:14px;width:100%;max-width:560px;max-height:90vh;padding:28px;overflow-y:auto}.admin-contest-modal-header{justify-content:space-between;align-items:center;margin-bottom:26px;display:flex}.admin-contest-modal-header h2{margin:0;font-size:22px}.admin-contest-close-btn{color:#94a3b8;cursor:pointer;background:0 0;border:none;font-size:20px}.admin-contest-form-group{flex-direction:column;gap:9px;margin-bottom:20px;display:flex}.admin-contest-form-group label{color:#cbd5e1;font-size:14px;font-weight:600}.admin-contest-form-group input,.admin-contest-form-group textarea{box-sizing:border-box;color:#f1f5f9;background:#0f172a;border:1px solid #334155;border-radius:8px;width:100%;padding:12px 14px;font-family:inherit;font-size:14px}.admin-contest-form-group input:focus,.admin-contest-form-group textarea:focus{border-color:#3b82f6;outline:none}.admin-contest-form-group textarea{resize:vertical}.admin-contest-form-actions{justify-content:flex-end;gap:12px;margin-top:28px;display:flex}.admin-contest-form-actions button{cursor:pointer;border-radius:8px;padding:12px 20px;font-size:14px;font-weight:600}.admin-contest-cancel-btn{color:#cbd5e1;background:#1e293b;border:1px solid #334155}.admin-contest-save-btn{color:#fff;background:#2563eb;border:1px solid #2563eb}.admin-contest-save-btn:hover{background:#1d4ed8}.admin-contest-form-actions button:disabled{opacity:.6;cursor:not-allowed}@media (width<=768px){.admin-contests-page{padding:18px 14px}.admin-contests-header{flex-direction:column;align-items:flex-start}.admin-contests-header h1{font-size:26px}.admin-create-contest-btn{width:100%}.admin-contests-card{padding:16px}.admin-contests-table th,.admin-contests-table td{padding:13px}.admin-contest-modal{padding:20px}}.contest-workspace{height:calc(100vh - 70px);color:var(--text-primary,#f1f5f9);flex-direction:column;display:flex;overflow:hidden}.workspace-header{border-bottom:1px solid var(--border-color,#334155);background:var(--card-bg,#1e293b);justify-content:space-between;align-items:center;gap:16px;padding:12px 20px;display:flex}.workspace-back,.workspace-submissions-link{color:#93c5fd;cursor:pointer;background:0 0;border:none}.workspace-contest-title{text-align:center;font-weight:600}.workspace-body{flex:1;grid-template-columns:40% 60%;min-height:0;display:grid}.workspace-problem{border-right:1px solid var(--border-color,#334155);padding:24px;overflow-y:auto}.problem-heading{flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:24px;display:flex}.problem-heading h1{margin:0;font-size:24px}.problem-description{white-space:pre-wrap;line-height:1.8}.problem-section{margin-top:28px}.problem-section h3{margin-bottom:12px;font-size:17px}.problem-section p{white-space:pre-wrap;line-height:1.7}.problem-section pre,.sample-block pre{background:var(--code-bg,#0f172a);border:1px solid var(--border-color,#334155);white-space:pre-wrap;border-radius:8px;padding:14px;overflow-x:auto}.sample-block{margin-bottom:16px}.sample-block strong{color:#94a3b8;margin-bottom:8px;font-size:13px;display:block}.workspace-editor{background:#1e1e1e;flex-direction:column;min-width:0;display:flex}.editor-toolbar{background:#252526;border-bottom:1px solid #3c3c3c;justify-content:space-between;align-items:center;padding:10px 14px;display:flex}.editor-toolbar select{color:#fff;background:#333;border:1px solid #555;border-radius:6px;padding:7px 12px}.reset-code-button{color:#ccc;cursor:pointer;background:0 0;border:1px solid #555;border-radius:6px;padding:7px 12px}.monaco-container{flex:1;min-height:0}.editor-footer{color:#aaa;background:#252526;border-top:1px solid #3c3c3c;justify-content:space-between;align-items:center;padding:12px 16px;font-size:13px;display:flex}.submit-code-button{color:#fff;cursor:pointer;background:#16a34a;border:none;border-radius:6px;padding:9px 18px;font-weight:600}.submit-code-button:hover{background:#15803d}.submit-code-button:disabled{opacity:.6;cursor:not-allowed}.submission-result{background:#181818;border-top:1px solid #3c3c3c;padding:16px}.verdict{font-size:18px;font-weight:700}.verdict.accepted{color:#4ade80}.verdict.rejected{color:#f87171}.result-details{color:#ccc;flex-wrap:wrap;gap:24px;margin-top:10px;font-size:13px;display:flex}.first-solve-message{color:#4ade80;margin-top:10px}.submission-error{color:#f87171}.workspace-message{text-align:center;color:#94a3b8;padding:40px}.workspace-message.error{color:#f87171}@media (width<=900px){.workspace-workspace{height:auto}.workspace-body{grid-template-rows:45vh 55vh;grid-template-columns:1fr}.workspace-problem{border-right:none;border-bottom:1px solid var(--border-color,#334155)}}.contest-details-page{color:var(--text-primary,#f1f5f9);max-width:1100px;margin:0 auto;padding:32px}.back-button{color:#93c5fd;cursor:pointer;background:0 0;border:none;margin-bottom:24px;font-size:14px}.contest-details-card{border:1px solid var(--border-color,#334155);background:var(--card-bg,#1e293b);border-radius:14px;padding:28px}.contest-details-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:20px;display:flex}.contest-details-header h1{margin:14px 0 0;font-size:30px}.contest-details-description{color:var(--text-secondary,#94a3b8);margin:24px 0;line-height:1.7}.contest-timing{border-top:1px solid var(--border-color,#334155);flex-wrap:wrap;gap:40px;padding-top:20px;display:flex}.contest-timing div{flex-direction:column;gap:8px;display:flex}.contest-timing span{color:var(--text-secondary,#94a3b8);font-size:13px}.contest-timing strong{font-size:14px}.register-button,.unregister-button{cursor:pointer;color:#fff;border:none;border-radius:8px;padding:11px 20px;font-weight:600}.register-button{background:#2563eb}.unregister-button{background:#b91c1c}.register-button:disabled,.unregister-button:disabled{opacity:.6;cursor:not-allowed}.registered-label{color:#4ade80;font-weight:600}.registration-closed{color:#94a3b8;font-size:14px}.contest-problems-section{margin-top:36px}.contest-problems-heading{justify-content:space-between;align-items:center;margin-bottom:18px;display:flex}.contest-problems-heading h2{font-size:22px}.contest-problems-heading span{color:#94a3b8;font-size:14px}.contest-problems-list{border:1px solid var(--border-color,#334155);border-radius:12px;overflow:hidden}.contest-problem-row{border-bottom:1px solid var(--border-color,#334155);cursor:pointer;align-items:center;gap:16px;padding:18px 22px;display:flex}.contest-problem-row:last-child{border-bottom:none}.contest-problem-row:hover{background:var(--hover-bg,#273449)}.problem-number{color:#93c5fd;width:28px;font-weight:700}.problem-info{flex-direction:column;flex:1;gap:6px;display:flex}.problem-info span{color:#94a3b8;font-size:13px}.problem-arrow{color:#94a3b8}.contest-locked-message,.contest-details-message{text-align:center;color:#94a3b8;padding:30px}.contest-details-message.error{color:#f87171}@media (width<=768px){.contest-details-page{padding:16px}.contest-details-card{padding:20px}.contest-details-header h1{font-size:24px}}.contests-page{color:var(--text-primary,#f1f5f9);padding:32px}.contests-header{justify-content:space-between;align-items:center;margin-bottom:28px;display:flex}.contests-header h1{margin-bottom:8px;font-size:30px}.contests-header p{color:var(--text-secondary,#94a3b8)}.contest-tabs{flex-wrap:wrap;gap:12px;margin-bottom:24px;display:flex}.contest-tabs button{border:1px solid var(--border-color,#334155);color:var(--text-secondary,#94a3b8);cursor:pointer;text-transform:capitalize;background:0 0;border-radius:8px;padding:9px 18px}.contest-tabs button.active{color:#fff;background:#2563eb;border-color:#2563eb}.contest-list{flex-direction:column;gap:16px;display:flex}.contest-card{border:1px solid var(--border-color,#334155);background:var(--card-bg,#1e293b);border-radius:12px;justify-content:space-between;align-items:center;gap:24px;padding:24px;display:flex}.contest-card-top{flex-wrap:wrap;align-items:center;gap:16px;display:flex}.contest-card-top h2{margin:0;font-size:20px}.contest-description{color:var(--text-secondary,#94a3b8);margin:12px 0}.contest-meta{color:var(--text-secondary,#94a3b8);flex-wrap:wrap;gap:20px;font-size:13px;display:flex}.contest-status{text-transform:capitalize;background:#334155;border-radius:20px;padding:5px 10px;font-size:12px}.contest-status.upcoming{color:#bfdbfe;background:#1e3a8a}.contest-status.ongoing{color:#bbf7d0;background:#14532d}.contest-status.completed{color:#d1d5db;background:#374151}.contest-view-btn{color:#fff;cursor:pointer;white-space:nowrap;background:#2563eb;border:none;border-radius:8px;padding:10px 18px}.contest-view-btn:hover{background:#1d4ed8}.contest-message{text-align:center;color:var(--text-secondary,#94a3b8);padding:40px}.contest-message.error{color:#f87171}@media (width<=768px){.contests-page{padding:16px}.contest-card{flex-direction:column;align-items:flex-start}.contest-view-btn{width:100%}}*{box-sizing:border-box;margin:0;padding:0}body{color:#cbd5e1;background:#0b1120;font-family:Inter,Segoe UI,sans-serif}button,input{font:inherit}.app{background:#0b1120;min-height:100vh}.navbar{z-index:100;background:#111a2e;border-bottom:1px solid #26344d;justify-content:space-between;align-items:center;min-height:72px;padding:0 8%;display:flex;position:sticky;top:0}.logo{color:#60a5fa;letter-spacing:-.5px;font-size:24px;font-weight:800}.nav-links{align-items:center;gap:30px;display:flex}.nav-links button{color:#94a3b8;cursor:pointer;background:0 0;border:none;padding:24px 0;font-size:14px;font-weight:500;transition:color .2s}.nav-links button:hover{color:#e2e8f0}.nav-links button.active{color:#60a5fa;border-bottom:2px solid #3b82f6;font-weight:700}.profile{color:#94a3b8;align-items:center;gap:12px;font-size:14px;display:flex}.avatar{color:#93c5fd;background:#1e3a5f;border-radius:50%;place-items:center;width:36px;height:36px;font-size:14px;font-weight:700;display:grid}.logout-button{color:#fff;cursor:pointer;background:#dc2626;border:none;border-radius:7px;padding:8px 14px;font-size:13px;font-weight:600;transition:background .2s}.logout-button:hover{background:#b91c1c}.main{max-width:1200px;margin:40px auto;padding:0 24px}.welcome{color:#fff;background:linear-gradient(120deg,#1d4ed8,#6d28d9);border:1px solid #818cf833;border-radius:16px;margin-bottom:28px;padding:38px;box-shadow:0 8px 30px #2563eb1f}.welcome h1{color:#fff;letter-spacing:-.5px;margin-bottom:12px;font-size:30px;font-weight:800}.welcome p{color:#dbeafe;font-size:15px;line-height:1.7}.stats{grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:36px;display:grid}.stat-card{background:#151f33;border:1px solid #26344d;border-radius:12px;padding:24px;transition:transform .2s,border-color .2s}.stat-card:hover{border-color:#3b82f6;transform:translateY(-3px)}.stat-card span{color:#94a3b8;font-size:13px;font-weight:500}.stat-card h2{color:#f1f5f9;margin-top:12px;font-size:26px;font-weight:800}.problems-section{background:#151f33;border:1px solid #26344d;border-radius:14px;padding:28px;box-shadow:0 8px 24px #0000001f}.section-header{justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px;display:flex}.section-header h2{color:#f1f5f9;font-size:21px;font-weight:700}.section-header input{color:#e2e8f0;background:#0d1525;border:1px solid #334155;border-radius:8px;outline:none;width:260px;padding:11px 14px;font-size:13px;transition:border-color .2s,box-shadow .2s}.section-header input::placeholder{color:#64748b}.section-header input:focus{border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61f}.problem-table{border-top:1px solid #26344d;width:100%}.table-header{color:#94a3b8;border-bottom:1px solid #26344d;grid-template-columns:50px 1fr 150px 120px;padding:16px;font-size:13px;font-weight:700;display:grid}.problem-row{border-bottom:1px solid #26344d;grid-template-columns:50px 1fr 150px 120px;align-items:center;padding:18px 16px;transition:background .2s;display:grid}.problem-row:last-child{border-bottom:none}.problem-title{color:#cbd5e1;font-size:14px;font-weight:600;transition:color .2s}.difficulty{border-radius:20px;padding:5px 10px;font-size:12px;font-weight:700;display:inline-block}.difficulty.easy{color:#4ade80;background:#22c55e1f}.difficulty.medium{color:#fbbf24;background:#f59e0b1f}.difficulty.hard{color:#f87171;background:#ef44441f}.problem-status{color:#94a3b8;font-size:13px;font-weight:500}.problem-status.solved{color:#4ade80}.empty-state{text-align:center;color:#64748b;padding:50px 20px;font-size:14px;line-height:1.8}@media (width<=1024px){.navbar{padding:0 24px}.nav-links{gap:18px}}@media (width<=700px){.navbar{flex-wrap:wrap;gap:12px;height:auto;min-height:65px;padding:14px 16px}.logo{font-size:21px}.nav-links{order:3;gap:14px;width:100%;overflow-x:auto}.nav-links button{white-space:nowrap;padding:10px 0;font-size:12px}.profile{gap:8px}.profile span{display:none}.main{margin:24px auto;padding:0 16px}.welcome{padding:26px}.welcome h1{font-size:24px}.stats{grid-template-columns:1fr;gap:14px;margin-bottom:24px}.stat-card{padding:20px}.problems-section{padding:18px;overflow-x:auto}.section-header{flex-direction:column;align-items:stretch;gap:16px}.section-header input{width:100%}.problem-table{min-width:600px}}.problem-row .difficulty{white-space:nowrap;border-radius:20px;justify-content:center;align-items:center;width:fit-content;max-width:max-content;padding:5px 12px;line-height:1.4;display:inline-flex}.problem-row,.table-header{grid-template-columns:50px minmax(0,1fr) 140px 120px}.problem-row>*{min-width:0}.problem-row:hover{background:#1c2940}.problem-row:hover .problem-title{color:#60a5fa}.nav-link{color:#cbd5e1;border-radius:8px;padding:8px 14px;font-size:14px;font-weight:600;text-decoration:none;transition:all .2s}.nav-link:hover{color:#60a5fa;background:#1e293b}.nav-link.active{color:#60a5fa;background:#1e3a5f}.auth-page{box-sizing:border-box;background:#eef4ff;justify-content:center;align-items:center;min-height:100vh;padding:20px;display:flex}.auth-card{box-sizing:border-box;background:#fff;border:1px solid #dbeafe;border-radius:16px;width:100%;max-width:420px;padding:40px;box-shadow:0 10px 30px #2563eb14}.auth-card h1{text-align:center;color:#2563eb;margin:0 0 10px;font-size:30px}.auth-subtitle{text-align:center;color:#64748b;margin-bottom:30px}.auth-card form{flex-direction:column;display:flex}.auth-card label{color:#334155;margin-bottom:8px;font-size:14px;font-weight:600}.auth-card input{border:1px solid #cbd5e1;border-radius:8px;outline:none;margin-bottom:20px;padding:12px;font-size:15px}.auth-card input:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.auth-card form button{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:8px;margin-top:10px;padding:12px;font-size:16px;font-weight:600}.auth-card form button:hover{background:#1d4ed8}.auth-card form button:disabled{cursor:not-allowed;background:#94a3b8}.auth-error{color:#dc2626;background:#fef2f2;border-radius:6px;padding:10px;font-size:14px}.auth-footer{text-align:center;color:#64748b;margin-top:25px;font-size:14px}.auth-footer a{color:#2563eb;font-weight:600;text-decoration:none}.auth-success{color:#16a34a;background:#f0fdf4;border-radius:6px;padding:10px;font-size:14px}.profile-page{color:#e2e8f0;background:#0f172a;min-height:100vh;font-family:Inter,sans-serif}.profile-navbar{background:#111827;border-bottom:1px solid #263247;justify-content:space-between;align-items:center;height:68px;padding:0 7%;display:flex}.profile-logo{color:#60a5fa;cursor:pointer;font-size:22px;font-weight:800}.profile-back-button{color:#cbd5e1;cursor:pointer;background:#1e293b;border:1px solid #334155;border-radius:8px;padding:9px 16px;font-size:14px;font-weight:600}.profile-back-button:hover{color:#60a5fa;background:#263449}.profile-main{max-width:1100px;margin:0 auto;padding:40px 24px}.profile-header{background:#111c30;border:1px solid #263449;border-radius:14px;align-items:center;gap:24px;margin-bottom:28px;padding:30px;display:flex}.profile-avatar{color:#60a5fa;background:#1e3a5f;border-radius:50%;justify-content:center;align-items:center;width:80px;min-width:80px;height:80px;font-size:32px;font-weight:800;display:flex}.profile-user-info h1{color:#f1f5f9;margin:0 0 8px;font-size:26px;font-weight:750}.profile-user-info p{color:#94a3b8;margin:0 0 12px;font-size:14px}.profile-member-badge{color:#60a5fa;background:#172f50;border-radius:6px;padding:5px 10px;font-size:12px;font-weight:600;display:inline-block}.profile-stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:32px;display:grid}.profile-stat-card{background:#111c30;border:1px solid #263449;border-radius:12px;flex-direction:column;gap:12px;padding:24px;display:flex}.profile-stat-label{color:#94a3b8;font-size:13px;font-weight:500}.profile-stat-value{color:#f1f5f9;font-size:28px;font-weight:800}.profile-difficulty-section{background:#111c30;border:1px solid #263449;border-radius:14px;margin-bottom:28px;padding:28px}.profile-difficulty-section h2{color:#f1f5f9;margin:0 0 24px;font-size:19px;font-weight:750}.profile-difficulty-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;display:grid}.difficulty-card{border-radius:10px;justify-content:space-between;align-items:center;padding:20px 24px;display:flex}.difficulty-card span{font-size:14px;font-weight:600}.difficulty-card strong{font-size:24px;font-weight:800}.difficulty-card.easy{color:#4ade80;background:#143525}.difficulty-card.medium{color:#fbbf24;background:#3a2e16}.difficulty-card.hard{color:#f87171;background:#3b1c26}.profile-submissions-button{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:9px;margin-left:auto;padding:12px 20px;font-size:14px;font-weight:700;transition:background .2s;display:block}.profile-submissions-button:hover{background:#1d4ed8}.profile-message{text-align:center;color:#94a3b8;padding:80px 24px;font-size:16px}.profile-message.error{color:#f87171}@media (width<=900px){.profile-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=600px){.profile-main{padding:24px 16px}.profile-header{gap:16px;padding:20px}.profile-avatar{width:60px;min-width:60px;height:60px;font-size:24px}.profile-user-info h1{font-size:21px}.profile-stats-grid,.profile-difficulty-grid{grid-template-columns:1fr}.profile-navbar{padding:0 18px}}.problem-management{color:#cbd5e1;background:#0b1120;max-width:1600px;min-height:100vh;margin:0 auto;padding:36px}.pm-header{justify-content:space-between;align-items:center;gap:20px;margin-bottom:36px;display:flex}.pm-header h1{color:#f1f5f9;letter-spacing:-.5px;margin:0;font-size:30px;font-weight:800}.pm-header p{color:#94a3b8;margin-top:8px;font-size:14px}.pm-create-btn,.pm-save-btn,.pm-cancel-btn,.pm-edit-btn,.pm-delete-btn,.pm-activate-btn,.manage-test-cases-btn{cursor:pointer;white-space:nowrap;border:1px solid #0000;border-radius:7px;font-family:inherit;font-weight:600;transition:all .2s}.pm-create-btn,.pm-save-btn{color:#fff;background:#2563eb;padding:11px 17px;font-size:14px}.pm-create-btn:hover,.pm-save-btn:hover{background:#1d4ed8;transform:translateY(-1px)}.pm-cancel-btn{color:#cbd5e1;background:#1e293b;border-color:#334155;padding:11px 17px}.pm-cancel-btn:hover{background:#334155}.pm-alert{border-radius:8px;margin-bottom:20px;padding:13px 16px;font-size:14px}.pm-alert.error{color:#fca5a5;background:#ef44441f;border:1px solid #ef444440}.pm-alert.success{color:#86efac;background:#22c55e1f;border:1px solid #22c55e40}.pm-form-card,.pm-table-card{background:#151f33;border:1px solid #26344d;border-radius:14px;margin-bottom:28px;padding:26px;box-shadow:0 8px 24px #0000001f}.pm-form-card h2,.pm-table-title h2{color:#f1f5f9;margin-top:0;font-size:20px;font-weight:700}.pm-form-card form{flex-direction:column;gap:12px;display:flex}.pm-form-card label{color:#cbd5e1;margin-top:8px;font-size:13px;font-weight:600}.pm-form-card input,.pm-form-card textarea,.pm-form-card select{box-sizing:border-box;width:100%;font:inherit;color:#e2e8f0;background:#0d1525;border:1px solid #334155;border-radius:8px;padding:11px 13px;transition:border-color .2s,box-shadow .2s}.pm-form-card input::placeholder,.pm-form-card textarea::placeholder{color:#64748b}.pm-form-card textarea{resize:vertical}.pm-form-card input:focus,.pm-form-card textarea:focus,.pm-form-card select:focus{border-color:#3b82f6;outline:none;box-shadow:0 0 0 3px #3b82f61f}.pm-form-row{grid-template-columns:1fr 1fr;gap:20px;display:grid}.pm-form-row>div{flex-direction:column;gap:10px;display:flex}.pm-form-actions{justify-content:flex-end;gap:12px;margin-top:18px;display:flex}.pm-table-title{justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px;display:flex}.pm-table-title h2{margin-bottom:0}.pm-table-title span{color:#94a3b8;font-size:13px}.pm-table-wrapper{border:1px solid #26344d;border-radius:10px;width:100%;overflow-x:auto}.pm-table{border-collapse:separate;border-spacing:0;text-align:left;background:#151f33;width:100%}.pm-table th{color:#94a3b8;letter-spacing:.3px;white-space:nowrap;background:#111a2e;border-bottom:1px solid #26344d;padding:16px 18px;font-size:12px;font-weight:700}.pm-table td{color:#cbd5e1;vertical-align:middle;border-bottom:1px solid #26344d;padding:18px;font-size:13px}.pm-table tbody tr{background:#151f33;transition:background .2s}.pm-table tbody tr:hover{background:#1c2940}.pm-table tbody tr:last-child td{border-bottom:none}.pm-problem-title{color:#e2e8f0;min-width:180px;max-width:260px;font-weight:700;line-height:1.6;white-space:normal!important}.pm-table td:nth-child(3),.pm-table td:nth-child(4){white-space:nowrap}.pm-table th:last-child,.pm-table td:last-child{min-width:340px}.pm-difficulty{white-space:nowrap;border-radius:20px;justify-content:center;align-items:center;width:fit-content;max-width:max-content;padding:5px 11px;font-size:12px;font-weight:700;display:inline-flex}.pm-difficulty.easy{color:#4ade80;background:#22c55e1f}.pm-difficulty.medium{color:#fbbf24;background:#f59e0b1f}.pm-difficulty.hard{color:#f87171;background:#ef44441f}.pm-status{white-space:nowrap;border-radius:20px;justify-content:center;align-items:center;padding:5px 11px;font-size:12px;font-weight:700;display:inline-flex}.pm-status-active{color:#4ade80;background:#22c55e1f}.pm-status-inactive{color:#f87171;background:#ef44441f}.pm-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.pm-edit-btn{color:#60a5fa;background:#3b82f61f;border-color:#3b82f633;padding:8px 12px;font-size:12px}.pm-edit-btn:hover{background:#3b82f638}.manage-test-cases-btn{color:#c4b5fd;background:#8b5cf626;border-color:#8b5cf640;padding:8px 12px;font-size:12px}.manage-test-cases-btn:hover{background:#8b5cf640}.pm-delete-btn{color:#f87171;background:#ef44441f;border-color:#ef444433;padding:8px 12px;font-size:12px}.pm-delete-btn:hover{background:#ef444438}.pm-activate-btn{color:#4ade80;background:#22c55e1f;border-color:#22c55e33;padding:8px 12px;font-size:12px}.pm-activate-btn:hover{background:#22c55e38}.pm-empty{text-align:center;color:#94a3b8;padding:36px;font-size:14px}.pm-loading,.pm-error{text-align:center;color:#94a3b8;padding:50px}@media (width<=1100px){.problem-management{padding:26px}.pm-table{min-width:1050px}}@media (width<=768px){.problem-management{padding:18px}.pm-header{flex-direction:column;align-items:flex-start;gap:16px}.pm-header h1{font-size:25px}.pm-form-row{grid-template-columns:1fr}.pm-form-card,.pm-table-card{padding:18px}.pm-table{min-width:950px}.pm-table-title{align-items:flex-start}.pm-form-actions{flex-wrap:wrap}}.user-management{color:#e2e8f0;box-sizing:border-box;background:#0b1120;width:100%;max-width:1500px;min-height:100vh;margin:0 auto;padding:36px 40px}.users-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:20px;margin-bottom:32px;display:flex}.users-header h1{color:#f8fafc;letterletter-spacing:-.5px;margin:0;font-size:30px;font-weight:800}.users-header p{color:#94a3b8;margin:9px 0 0;font-size:15px}.users-count{color:#94a3b8;background:#151f33;border:1px solid #293750;border-radius:12px;align-items:center;gap:10px;padding:12px 20px;font-size:14px;display:flex;box-shadow:0 2px 6px #00000026}.users-count strong{color:#60a5fa;font-size:22px;font-weight:800}.users-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px;display:flex}.users-toolbar input{color:#e2e8f0;box-sizing:border-box;background:#111a2b;border:1px solid #293750;border-radius:10px;outline:none;width:100%;max-width:400px;padding:12px 16px;font-size:14px;transition:border .2s,box-shadow .2s}.users-toolbar input::placeholder{color:#64748b}.users-toolbar input:focus{border-color:#3b82f6;box-shadow:0 0 0 4px #3b82f626}.add-user-btn{color:#fff;cursor:pointer;background:linear-gradient(135deg,#4f46e5,#2563eb);border:none;border-radius:9px;padding:12px 20px;font-size:14px;font-weight:700;transition:transform .2s,box-shadow .2s;box-shadow:0 3px 8px #2563eb33}.add-user-btn:hover{transform:translateY(-2px);box-shadow:0 6px 14px #2563eb4d}.add-user-btn:active{transform:translateY(0)}.users-table-container{background:#151f33;border:1px solid #293750;border-radius:14px;width:100%;overflow-x:auto;box-shadow:0 5px 18px #0003}.users-table{border-collapse:separate;border-spacing:0;text-align:left;width:100%;min-width:780px}.users-table thead{background:#111a2b}.users-table th{color:#94a3b8;text-transform:uppercase;letterletter-spacing:.7px;white-space:nowrap;border-bottom:1px solid #293750;padding:17px 22px;font-size:12px;font-weight:800}.users-table th:first-child{border-top-left-radius:14px}.users-table td{color:#cbd5e1;white-space:nowrap;border-bottom:1px solid #253149;padding:18px 22px;font-size:14px;transition:background .15s}.users-table tbody tr{transition:background .15s}.users-table tbody tr:last-child td{border-bottom:none}.users-table tbody tr:hover{background:#1c2940}.users-username{font-weight:700;color:#f1f5f9!important}.users-empty{text-align:center;color:#64748b!important;padding:48px 24px!important;font-size:14px!important}.user-role{text-transform:capitalize;letterletter-spacing:.2px;border-radius:7px;align-items:center;padding:6px 12px;font-size:12px;font-weight:700;display:inline-flex}.admin-role{color:#c4b5fd;background:#2e2150;border:1px solid #4c3578}.student-role{color:#7dd3fc;background:#15334b;border:1px solid #245477}.user-status{border-radius:20px;align-items:center;gap:6px;padding:6px 12px;font-size:12px;font-weight:700;display:inline-flex}.active-status{color:#86efac;background:#12382d;border:1px solid #1c5b43}.inactive-status{color:#fda4af;background:#451f27;border:1px solid #742e3d}.user-actions{align-items:center;gap:10px;display:flex}.edit-user-btn,.delete-user-btn{cursor:pointer;border-radius:7px;padding:8px 14px;font-size:12px;font-weight:700;transition:all .18s}.edit-user-btn{color:#93c5fd;background:#172c4b;border:1px solid #294c7a}.edit-user-btn:hover{background:#203c60;border-color:#3b82f6;transform:translateY(-1px)}.delete-user-btn{color:#fda4af;background:#3b202b;border:1px solid #6b3444}.delete-user-btn:hover{background:#512633;border-color:#be526b;transform:translateY(-1px)}.user-modal-overlay{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);z-index:1000;background:#020617c7;justify-content:center;align-items:center;padding:20px;animation:.18s modalFadeIn;display:flex;position:fixed;inset:0}@keyframes modalFadeIn{0%{opacity:0}to{opacity:1}}.user-modal{box-sizing:border-box;background:#151f33;border:1px solid #293750;border-radius:18px;width:100%;max-width:500px;max-height:90vh;padding:30px;animation:.2s modalSlideIn;overflow-y:auto;box-shadow:0 24px 70px #00000073}@keyframes modalSlideIn{0%{opacity:0;transform:translateY(12px)scale(.98)}to{opacity:1;transform:translateY(0)scale(1)}}.user-modal-header{border-bottom:1px solid #293750;justify-content:space-between;align-items:center;margin-bottom:26px;padding-bottom:18px;display:flex}.user-modal-header h2{color:#f8fafc;letterletter-spacing:-.3px;margin:0;font-size:22px;font-weight:800}.user-modal-close{cursor:pointer;color:#94a3b8;background:#1e293b;border:1px solid #334155;border-radius:9px;place-items:center;width:34px;height:34px;font-size:20px;transition:background .2s,transform .2s;display:grid}.user-modal-close:hover{color:#f8fafc;background:#334155;transform:rotate(90deg)}.user-form{flex-direction:column;gap:20px;display:flex}.user-form label{color:#cbd5e1;flex-direction:column;gap:8px;font-size:13px;font-weight:700;display:flex}.user-form input,.user-form select{box-sizing:border-box;color:#e2e8f0;background:#0f172a;border:1px solid #334155;border-radius:9px;outline:none;width:100%;padding:12px 14px;font-size:14px;transition:border .2s,box-shadow .2s}.user-form input::placeholder{color:#64748b}.user-form input:focus,.user-form select:focus{border-color:#3b82f6;box-shadow:0 0 0 4px #3b82f626}.user-active-toggle{background:#111a2b;border:1px solid #293750;border-radius:9px;align-items:center;padding:12px 14px;flex-direction:row!important;gap:12px!important}.user-active-toggle input{accent-color:#3b82f6;cursor:pointer;width:17px;height:17px}.user-form-error{color:#fda4af;background:#3b202b;border:1px solid #742e3d;border-radius:9px;padding:13px 15px;font-size:13px;line-height:1.5}.user-form-actions{border-top:1px solid #293750;justify-content:flex-end;gap:12px;margin-top:10px;padding-top:18px;display:flex}.cancel-user-btn,.save-user-btn{cursor:pointer;border-radius:8px;padding:11px 20px;font-size:14px;font-weight:700;transition:background .2s,transform .15s}.cancel-user-btn{color:#cbd5e1;background:#1e293b;border:1px solid #334155}.cancel-user-btn:hover{background:#334155}.save-user-btn{color:#fff;background:linear-gradient(135deg,#4f46e5,#2563eb);border:1px solid #3b5de7;box-shadow:0 3px 8px #4f46e533}.save-user-btn:hover{background:#4338ca;transform:translateY(-1px)}.save-user-btn:disabled{opacity:.55;cursor:not-allowed;box-shadow:none;transform:none}.users-loading,.users-error{text-align:center;color:#94a3b8;padding:48px;font-size:15px}.users-error{color:#fda4af;background:#3b202b;border:1px solid #742e3d;border-radius:10px}@media (width<=900px){.user-management{padding:28px 24px}}@media (width<=768px){.user-management{padding:22px 16px}.users-header{flex-direction:column;align-items:flex-start}.users-header h1{font-size:25px}.users-count{box-sizing:border-box;justify-content:space-between;width:100%}.users-toolbar{flex-direction:column;align-items:stretch}.users-toolbar input{max-width:100%}.add-user-btn{width:100%}.user-modal{border-radius:14px;padding:22px}.user-modal-header h2{font-size:20px}.user-form-actions{flex-direction:column-reverse}.cancel-user-btn,.save-user-btn{width:100%}}.edit-user-btn:focus-visible,.delete-user-btn:focus-visible,.add-user-btn:focus-visible,.cancel-user-btn:focus-visible,.save-user-btn:focus-visible,.user-modal-close:focus-visible{outline-offset:2px;outline:3px solid #60a5fa}.admin-dashboard{max-width:1400px;color:var(--text-color,#f1f5f9);margin:0 auto;padding:32px}.admin-loading,.admin-error{justify-content:center;align-items:center;min-height:50vh;font-size:18px;display:flex}.admin-error{color:#ef4444}.admin-header{justify-content:space-between;align-items:center;gap:20px;margin-bottom:40px;display:flex}.admin-header h1{margin:0 0 10px;font-size:32px}.admin-header p{color:#94a3b8;margin:0;font-size:15px}.admin-badge{color:#818cf8;white-space:nowrap;background:#6366f126;border-radius:20px;padding:9px 16px;font-size:13px;font-weight:600}.admin-overview-section,.admin-management-section,.admin-quick-actions{margin-bottom:40px}.admin-overview-section>h2,.admin-management-section h2,.admin-quick-actions h2{margin-bottom:20px;font-size:21px}.admin-section-header{margin-bottom:20px}.management-description{color:#94a3b8;margin-top:-10px;font-size:14px}.admin-stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;display:grid}.admin-stat-card{background:var(--card-background,#1e293b);border:1px solid var(--border-color,#334155);border-radius:12px;padding:24px;transition:transform .2s,border-color .2s}.admin-stat-card:hover{border-color:#6366f1;transform:translateY(-3px)}.admin-stat-icon{border-radius:10px;justify-content:center;align-items:center;width:44px;height:44px;margin-bottom:18px;font-size:22px;display:flex}.users-icon{background:#3b82f626}.problems-icon{background:#a855f726}.submissions-icon{background:#f59e0b26}.contests-icon{background:#10b98126}.admin-stat-card h3{color:#94a3b8;margin:0 0 10px;font-size:14px;font-weight:500}.admin-stat-card h2{margin:0 0 8px;font-size:30px}.admin-stat-card p{color:#64748b;margin:0;font-size:12px}.admin-management-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;display:grid}.admin-management-card{background:var(--card-background,#1e293b);border:1px solid var(--border-color,#334155);cursor:pointer;border-radius:12px;padding:24px;transition:transform .2s,border-color .2s}.admin-management-card:hover{border-color:#6366f1;transform:translateY(-3px)}.admin-management-card:focus-visible{outline-offset:3px;outline:2px solid #818cf8}.management-icon{margin-bottom:16px;font-size:28px}.admin-management-card h3{margin:0 0 10px;font-size:17px}.admin-management-card p{color:#94a3b8;margin:0 0 20px;font-size:14px;line-height:1.6}.management-link{color:#818cf8;font-size:14px;font-weight:600}.quick-actions-list{flex-wrap:wrap;gap:12px;display:flex}.quick-actions-list button{border:1px solid var(--border-color,#334155);background:var(--card-background,#1e293b);color:var(--text-color,#f1f5f9);cursor:pointer;border-radius:8px;padding:12px 18px;font-size:14px;transition:background .2s,border-color .2s}.quick-actions-list button:hover{background:#334155;border-color:#6366f1}@media (width<=1024px){.admin-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=640px){.admin-dashboard{padding:20px 16px}.admin-header{flex-direction:column;align-items:flex-start}.admin-header h1{font-size:26px}.admin-stats-grid,.admin-management-grid{grid-template-columns:1fr}.admin-stat-card{padding:20px}}.leaderboard-page{color:#e2e8f0;box-sizing:border-box;background:#0b1120;min-height:100vh;padding:32px}.leaderboard-header{margin-bottom:32px}.leaderboard-header h1{color:#f8fafc;margin-bottom:8px;font-size:28px;font-weight:700}.leaderboard-header p{color:#94a3b8;font-size:15px}.leaderboard-podium{grid-template-columns:1fr 1fr 1fr;align-items:end;gap:20px;max-width:900px;margin:40px auto 32px;display:grid}.podium-card{text-align:center;background:#151f33;border:1px solid #293750;border-radius:16px;padding:28px 20px;transition:transform .2s,box-shadow .2s}.podium-card:hover{transform:translateY(-4px);box-shadow:0 10px 30px #00000040}.rank-1{border-top:4px solid #f5b800;min-height:340px}.rank-2{border-top:4px solid #94a3b8;min-height:260px}.rank-3{border-top:4px solid #c08457;min-height:220px}.podium-rank{margin-bottom:12px;font-size:30px}.podium-avatar{color:#60a5fa;background:#1e3a5f;border-radius:50%;justify-content:center;align-items:center;width:64px;height:64px;margin:0 auto 12px;font-size:24px;font-weight:700;display:flex}.podium-card h3{color:#f1f5f9;margin-bottom:12px;font-size:17px}.podium-points{color:#60a5fa;margin-bottom:8px;font-size:26px;font-weight:800}.podium-points span{color:#94a3b8;font-size:13px;font-weight:500}.podium-card p{color:#94a3b8;font-size:13px}.leaderboard-table-card,.points-info-card{background:#151f33;border:1px solid #293750;border-radius:16px;margin-bottom:24px;padding:24px}.leaderboard-table-card h2,.points-info-card h2{color:#f1f5f9;margin-bottom:20px;font-size:20px;font-weight:700}.leaderboard-table-wrapper{border-radius:10px;width:100%;max-height:420px;overflow:auto}.leaderboard-table{border-collapse:collapse;white-space:nowrap;width:100%}.leaderboard-table thead{z-index:2;background:#111a2c;position:sticky;top:0}.leaderboard-table th{text-align:left;color:#94a3b8;background:#111a2c;border-bottom:1px solid #293750;padding:14px 16px;font-size:13px;font-weight:600}.leaderboard-table td{color:#cbd5e1;border-bottom:1px solid #253149;padding:16px;font-size:14px}.leaderboard-table tbody tr{transition:background .15s}.leaderboard-table tbody tr:hover{background:#1b2940}.leaderboard-table tbody tr:last-child td{border-bottom:none}.rank-cell{color:#94a3b8;font-weight:600}.student-cell{color:#e2e8f0;align-items:center;gap:10px;font-weight:600;display:flex}.student-avatar{color:#60a5fa;background:#1e3a5f;border-radius:50%;justify-content:center;align-items:center;width:34px;height:34px;font-weight:700;display:flex}.points-cell{color:#60a5fa;font-weight:700}.points-info-card>p{color:#94a3b8;margin-bottom:20px;font-size:14px;line-height:1.7}.points-rules{grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:24px;display:grid}.points-rule{border:1px solid #0000;border-radius:12px;flex-direction:column;gap:8px;padding:18px;display:flex}.points-rule span{font-size:14px;font-weight:600}.points-rule strong{font-size:22px}.easy-rule{color:#4ade80;background:#102c27;border-color:#1b4938}.medium-rule{color:#fbbf24;background:#302719;border-color:#51401f}.hard-rule{color:#fb7185;background:#321d27;border-color:#512637}.points-formula{color:#cbd5e1;background:#111a2c;border:1px solid #293750;border-radius:10px;margin-bottom:16px;padding:16px;font-size:14px}.ranking-note{color:#94a3b8;margin-bottom:0!important;font-size:13px!important}.points-rules-inline{color:#94a3b8;flex-wrap:wrap;align-items:center;gap:8px;margin:16px 0 24px;font-size:12px;display:flex}.points-rules-inline>span:first-child{color:#cbd5e1;font-weight:700}.easy-text{color:#4ade80;font-weight:600}.medium-text{color:#fbbf24;font-weight:600}.hard-text{color:#fb7185;font-weight:600}.rules-note{color:#64748b;margin-left:6px;font-size:11px}.leaderboard-loading,.leaderboard-error{text-align:center;color:#94a3b8;padding:60px;font-size:16px}.leaderboard-error{color:#f87171}.leaderboard-table-wrapper::-webkit-scrollbar{width:8px;height:8px}.leaderboard-table-wrapper::-webkit-scrollbar-track{background:#111a2c;border-radius:8px}.leaderboard-table-wrapper::-webkit-scrollbar-thumb{background:#334155;border-radius:8px}.leaderboard-table-wrapper::-webkit-scrollbar-thumb:hover{background:#475569}@media (width<=900px){.leaderboard-page{padding:24px}.leaderboard-podium{gap:14px}.podium-card{padding:24px 14px}}@media (width<=768px){.leaderboard-page{padding:20px 14px}.leaderboard-header h1{font-size:24px}.leaderboard-podium{grid-template-columns:1fr;align-items:stretch;margin-top:24px}.rank-1,.rank-2,.rank-3{min-height:auto}.points-rules{grid-template-columns:1fr}.leaderboard-table-card,.points-info-card{padding:16px}.leaderboard-table{min-width:600px}}.submission-details-page{color:#e2e8f0;box-sizing:border-box;background:#0b1120;min-height:100vh;font-family:Inter,sans-serif}.details-navbar{background:#111a2c;border-bottom:1px solid #293750;justify-content:space-between;align-items:center;height:68px;padding:0 7%;display:flex}.details-logo{color:#60a5fa;cursor:pointer;font-size:22px;font-weight:800;transition:color .2s}.details-logo:hover{color:#93c5fd}.details-back-button{color:#cbd5e1;cursor:pointer;background:#151f33;border:1px solid #334155;border-radius:8px;padding:9px 16px;font-size:14px;font-weight:600;transition:all .2s}.details-back-button:hover{color:#f8fafc;background:#1e293b;border-color:#475569}.details-main{max-width:1200px;margin:0 auto;padding:40px 24px}.details-heading{justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px;display:flex}.details-heading h1{color:#f8fafc;margin:0 0 8px;font-size:28px;font-weight:750}.details-problem-link{color:#94a3b8;cursor:pointer;margin:0;font-size:15px;transition:color .2s}.details-problem-link:hover{color:#60a5fa}.details-verdict{white-space:nowrap;border-radius:8px;align-items:center;padding:8px 16px;font-size:14px;font-weight:700;display:inline-flex}.verdict-accepted{color:#4ade80;background:#123126;border:1px solid #20513a}.verdict-wrong-answer{color:#fb7185;background:#351d27;border:1px solid #572637}.verdict-time-limit-exceeded{color:#fb923c;background:#352519;border:1px solid #5b3b20}.verdict-memory-limit-exceeded{color:#fbbf24;background:#332b17;border:1px solid #59491e}.verdict-runtime-error{color:#c084fc;background:#2b2040;border:1px solid #49336b}.details-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:32px;display:grid}.details-stat-card{background:#151f33;border:1px solid #293750;border-radius:12px;flex-direction:column;gap:10px;padding:20px;transition:border-color .2s,transform .2s;display:flex}.details-stat-card:hover{border-color:#3b4d6b;transform:translateY(-2px)}.details-stat-label{color:#94a3b8;font-size:13px;font-weight:500}.details-stat-value{color:#e2e8f0;overflow-wrap:anywhere;font-size:17px;font-weight:700}.details-code-section{background:#151f33;border:1px solid #293750;border-radius:12px;overflow:hidden}.details-code-header{background:#111a2c;border-bottom:1px solid #293750;justify-content:space-between;align-items:center;padding:18px 24px;display:flex}.details-code-header h2{color:#f1f5f9;margin:0;font-size:17px;font-weight:700}.details-code-language{color:#93c5fd;text-transform:capitalize;background:#1e3a5f;border:1px solid #294b75;border-radius:6px;padding:5px 10px;font-size:12px;font-weight:600}.details-editor{background:#0f172a;overflow:hidden}.details-message{text-align:center;color:#94a3b8;max-width:1200px;margin:80px auto;padding:24px;font-size:16px}.details-message.error{color:#f87171}@media (width<=900px){.details-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.details-main{padding:28px 18px}}@media (width<=600px){.details-heading{flex-direction:column;align-items:flex-start}.details-heading h1{font-size:23px}.details-stats{grid-template-columns:1fr}.details-navbar{padding:0 18px}.details-code-header{padding:14px 16px}}.problem-page{color:#e2e8f0;box-sizing:border-box;background:#0f172a;height:100vh;padding:16px;overflow:hidden}.problem-navbar{box-sizing:border-box;background:#1e293b;border:1px solid #334155;border-radius:10px;justify-content:space-between;align-items:center;height:55px;margin-bottom:16px;padding:12px 20px;display:flex}.problem-navbar h2{color:#818cf8;margin:0;font-size:20px;font-weight:700}.problem-navbar button{color:#cbd5e1;cursor:pointer;background:#273449;border:1px solid #334155;border-radius:6px;padding:10px 16px;font-size:14px;transition:all .2s}.problem-navbar button:hover{color:#fff;background:#334155;border-color:#6366f1}.problem-workspace{grid-template-columns:40% 60%;gap:16px;height:calc(100vh - 103px);min-height:0;display:grid}.problem-description{text-align:left;box-sizing:border-box;background:#1e293b;border:1px solid #334155;border-radius:10px;padding:24px;overflow-y:auto}.problem-description h1{color:#f1f5f9;margin:0 0 12px;font-size:25px;font-weight:700}.problem-description h3{color:#a5b4fc;margin-top:24px;margin-bottom:8px;font-size:17px;font-weight:700}.problem-description p{color:#cbd5e1;white-space:pre-wrap;line-height:1.7}.problem-description strong{color:#f1f5f9}.problem-description code{color:#c4b5fd;background:#0f172a;border-radius:4px;padding:3px 6px}.editor-section{background:#1e293b;border:1px solid #334155;border-radius:10px;flex-direction:column;min-width:0;min-height:0;display:flex;overflow:hidden}.editor-header{color:#cbd5e1;box-sizing:border-box;background:#172033;border-bottom:1px solid #334155;justify-content:space-between;align-items:center;min-height:45px;padding:12px 18px;font-size:14px;display:flex}.run-button{color:#fff;cursor:pointer;background:#4f46e5;border:none;border-radius:6px;padding:8px 18px;font-size:14px;font-weight:600;transition:background .2s}.run-button:hover{background:#4338ca}.run-button:disabled{color:#94a3b8;cursor:not-allowed;background:#475569}.custom-input-section{background:#172033;border-top:1px solid #334155;padding:14px}.custom-input-section h3,.run-result-section h3{color:#cbd5e1;margin:0 0 10px;font-size:14px;font-weight:600}.custom-input-section textarea{color:#e2e8f0;resize:vertical;box-sizing:border-box;background:#0b1120;border:1px solid #334155;border-radius:6px;outline:none;width:100%;padding:10px;font-family:monospace;font-size:13px;transition:border-color .2s,box-shadow .2s}.custom-input-section textarea:focus{border-color:#6366f1;box-shadow:0 0 0 2px #6366f126}.run-result-section{color:#e2e8f0;background:#0b1120;border-top:1px solid #334155;flex:1;min-height:100px;padding:14px;overflow-y:auto}.result-message{color:#94a3b8;font-size:14px}.result-summary{color:#a5b4fc;margin-bottom:15px;font-weight:700}.test-result{background:#172033;border:1px solid #334155;border-radius:8px;margin-bottom:12px;overflow:hidden}.test-status{padding:10px;font-size:13px;font-weight:700}.test-status.passed{color:#4ade80;background:#14291f;border-bottom:1px solid #166534}.test-status.failed{color:#f87171;background:#2d1919;border-bottom:1px solid #7f1d1d}.result-details{color:#cbd5e1;padding:12px;font-size:13px}.result-details pre,.error-output{white-space:pre-wrap;color:#e2e8f0;background:#1e293b;border:1px solid #334155;border-radius:5px;margin:8px 0 14px;padding:10px;font-family:monospace;font-size:13px;overflow-x:auto}.error-output{color:#fca5a5;background:#2d1919;border-color:#7f1d1d}.problem-loading{text-align:center;color:#a5b4fc;padding:40px;font-size:18px}.editor-actions{align-items:center;gap:10px;display:flex}.submit-button{color:#fff;cursor:pointer;background:#059669;border:none;border-radius:6px;padding:8px 18px;font-size:14px;font-weight:600;transition:background .2s}.submit-button:hover{background:#047857}.submit-button:disabled{color:#94a3b8;cursor:not-allowed;background:#475569}.submission-result{background:#172033;border:1px solid #334155;border-radius:8px;margin-top:15px;padding:15px}.verdict{margin:15px 0;font-size:22px;font-weight:700}.verdict-accepted{color:#4ade80}.verdict-failed{color:#f87171}.test-count{color:#cbd5e1;font-size:14px}.submission-id{color:#64748b;font-size:12px}.problem-description::-webkit-scrollbar{width:8px}.run-result-section::-webkit-scrollbar{width:8px}.problem-description::-webkit-scrollbar-track{background:#0f172a}.run-result-section::-webkit-scrollbar-track{background:#0f172a}.problem-description::-webkit-scrollbar-thumb{background:#334155;border-radius:8px}.run-result-section::-webkit-scrollbar-thumb{background:#334155;border-radius:8px}.problem-description::-webkit-scrollbar-thumb:hover{background:#475569}.run-result-section::-webkit-scrollbar-thumb:hover{background:#475569}@media (width<=900px){.problem-page{height:auto;min-height:100vh;overflow:auto}.problem-workspace{grid-template-columns:1fr;height:auto}.problem-description{min-height:350px}.editor-section{min-height:700px}}@media (width<=600px){.problem-page{padding:10px}.problem-navbar{padding:10px 14px}.problem-navbar h2{font-size:17px}.problem-description{padding:18px}.editor-header{gap:8px;padding:10px 12px}.editor-actions{gap:6px}.run-button,.submit-button{padding:8px 12px;font-size:12px}}.tc-container{color:#e5e7eb;max-width:1400px;margin:0 auto;padding:30px}.tc-container h1{margin-bottom:8px}.tc-subtitle{color:#9ca3af;margin-bottom:25px}.tc-back-btn{color:#fff;cursor:pointer;background:#374151;border:none;border-radius:6px;margin-bottom:20px;padding:9px 16px}.tc-form-card,.tc-list-card{background:#1f2937;border:1px solid #374151;border-radius:10px;margin-bottom:30px;padding:24px}.tc-form-card h2,.tc-list-card h2{margin-bottom:20px}.tc-form-card form{flex-direction:column;gap:12px;display:flex}.tc-form-card label{font-weight:600}.tc-form-card textarea,.tc-form-card input[type=number]{color:#f9fafb;box-sizing:border-box;background:#111827;border:1px solid #4b5563;border-radius:6px;width:100%;padding:12px;font-family:monospace}.tc-form-card textarea{resize:vertical}.tc-checkbox-label{align-items:center;gap:10px;margin:10px 0;display:flex}.tc-checkbox-label input{width:17px;height:17px}.tc-form-actions{gap:12px;margin-top:10px;display:flex}.tc-submit-btn,.tc-cancel-btn,.tc-edit-btn,.tc-delete-btn{cursor:pointer;color:#fff;border:none;border-radius:5px;padding:9px 16px}.tc-submit-btn{background:#2563eb}.tc-cancel-btn{background:#6b7280}.tc-edit-btn{background:#d97706}.tc-delete-btn{background:#dc2626}.tc-table-wrapper{overflow-x:auto}.tc-table{border-collapse:collapse;width:100%;margin-top:15px}.tc-table th,.tc-table td{text-align:left;vertical-align:top;border-bottom:1px solid #374151;padding:12px}.tc-table th{background:#111827}.tc-table pre{white-space:pre-wrap;word-break:break-word;max-width:250px;max-height:180px;margin:0;font-family:monospace;overflow-y:auto}.tc-badge{border-radius:5px;padding:5px 10px;font-size:12px;font-weight:700}.tc-sample{color:#d1fae5;background:#065f46}.tc-hidden{color:#fee2e2;background:#7f1d1d}.tc-actions{gap:8px;display:flex}.tc-error{color:#fee2e2;background:#7f1d1d;border-radius:6px;margin-bottom:20px;padding:12px}@media (width<=768px){.tc-container{padding:15px}.tc-form-actions,.tc-actions{flex-direction:column}}.history-page{color:#e2e8f0;background:#0b1120;min-height:100vh}.history-navbar{background:#0f172a;border-bottom:1px solid #263449;justify-content:space-between;align-items:center;height:70px;padding:0 40px;display:flex}.history-navbar .logo{color:#60a5fa;letter-spacing:-.5px;font-size:23px;font-weight:700}.back-button{color:#cbd5e1;cursor:pointer;background:#172033;border:1px solid #334155;border-radius:8px;padding:9px 18px;font-size:14px;font-weight:500;transition:all .2s}.back-button:hover{color:#60a5fa;background:#1e293b;border-color:#3b82f6}.history-main{max-width:1400px;margin:0 auto;padding:40px}.history-heading{margin-bottom:30px}.history-heading h1{color:#f1f5f9;margin:0 0 10px;font-size:30px;font-weight:700}.history-heading p{color:#94a3b8;margin:0;font-size:15px}.history-card{background:#151f33;border:1px solid #29374d;border-radius:12px;overflow:hidden;box-shadow:0 4px 15px #00000026}.history-table-wrapper{width:100%;overflow-x:auto}.history-table{border-collapse:collapse;text-align:left;white-space:nowrap;width:100%}.history-table thead{background:#111b2e}.history-table th{color:#94a3b8;border-bottom:1px solid #29374d;padding:16px 20px;font-size:13px;font-weight:600}.history-table td{color:#cbd5e1;border-bottom:1px solid #253247;padding:17px 20px;font-size:14px}.history-table tbody tr{transition:background .15s}.history-table tbody tr:hover{background:#1c293e}.history-table tbody tr:last-child td{border-bottom:none}.history-problem{color:#60a5fa;cursor:pointer;font-weight:600;transition:color .2s}.history-problem:hover{color:#93c5fd;text-decoration:underline}.history-problem-id{color:#64748b;margin-top:4px;font-size:12px;display:block}.verdict{border-radius:6px;padding:5px 10px;font-size:12px;font-weight:600;display:inline-block}.verdict-accepted{color:#6ee7b7;background:#064e3b}.verdict-wrong-answer{color:#fca5a5;background:#4c1d24}.verdict-runtime-error{color:#fda4af;background:#431d2d}.verdict-pending{color:#cbd5e1;background:#273449}.verdict-running{color:#93c5fd;background:#172f50}.verdict-executed{color:#c4b5fd;background:#2e265c}.verdict-time-limit-exceeded{color:#fdba74;background:#4a2918}.verdict-memory-limit-exceeded{color:#fde047;background:#443b16}.history-message{text-align:center;color:#94a3b8;padding:60px 20px;font-size:15px}.history-message.error{color:#f87171}@media (width<=768px){.history-navbar{padding:0 20px}.history-main{padding:25px 16px}.history-heading h1{font-size:25px}.history-table th,.history-table td{padding:14px 15px}}:root{--bg:#0b1120;--bg-secondary:#111a2e;--bg-card:#151f33;--bg-hover:#1c2940;--text:#a7b4cc;--text-h:#f1f5f9;--text-muted:#71819f;--border:#26344d;--accent:#3b82f6;--accent-hover:#2563eb;--accent-bg:#3b82f61f;--accent-border:#3b82f659;--success:#22c55e;--success-bg:#22c55e1f;--warning:#f59e0b;--warning-bg:#f59e0b1f;--danger:#ef4444;--danger-bg:#ef44441f;--code-bg:#0d1525;--shadow:0 8px 24px #0003;--sans:Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;--heading:Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;--mono:"JetBrains Mono", "Fira Code", Consolas, monospace;font-family:var(--sans);letter-spacing:.1px;color:var(--text);background:var(--bg);--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:15px;line-height:1.6}*{box-sizing:border-box}html{scroll-behavior:smooth;min-width:320px}body{background:var(--bg);min-width:320px;min-height:100vh;color:var(--text);font-family:var(--sans);margin:0}#root{text-align:left;flex-direction:column;width:100%;min-height:100vh;margin:0;display:flex}h1,h2,h3,h4,h5,h6{font-family:var(--heading);color:var(--text-h);margin-top:0;font-weight:700;line-height:1.3}h1{letter-spacing:-.8px;margin-bottom:16px;font-size:32px}h2{letter-spacing:-.4px;margin-bottom:12px;font-size:23px}h3{margin-bottom:10px;font-size:18px}p{margin-top:0}a{color:var(--accent);text-decoration:none;transition:color .2s}a:hover{color:#60a5fa}button{font-family:var(--sans);transition:background .2s,border-color .2s}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}input,textarea,select{font-family:var(--sans);color:var(--text-h);background:var(--bg-secondary);border:1px solid var(--border);border-radius:8px}input::placeholder,textarea::placeholder{color:var(--text-muted)}table{border-collapse:collapse;width:100%}th{color:var(--text-muted);font-weight:600}td{color:var(--text)}code,pre,.counter{font-family:var(--mono)}code{color:#93c5fd;background:var(--code-bg);border-radius:5px;padding:3px 7px;font-size:13px;line-height:1.5;display:inline-block}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:var(--bg)}::-webkit-scrollbar-thumb{background:#334155;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:#475569}@media (width<=768px){h1{font-size:26px}h2{font-size:20px}:root{font-size:14px}}
