@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root { 
    --p: #4f46e5; 
    --ps: #4338ca; 
    --bg: #f8fafc; 
    --txt: #1e293b; 
    --border: #e2e8f0;
}

body { 
    font-family: 'Inter', sans-serif; 
    background: var(--bg); 
    color: var(--txt); 
    margin: 0; 
    min-height: 100vh;
}

.m-container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 2rem; 
}

.m-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 2rem; 
}

.m-card { 
    background: white; 
    border: 1px solid var(--border); 
    border-radius: 12px; 
    padding: 1.5rem; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.1); 
}

.m-btn { 
    background: var(--p); 
    color: white; 
    border: none; 
    padding: 0.75rem 1.5rem; 
    border-radius: 8px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: 0.2s; 
}

.m-btn:hover { 
    background: var(--ps); 
}

.m-btn:disabled { 
    opacity: 0.5; 
    cursor: not-allowed; 
}

.m-input { 
    width: 100%; 
    padding: 0.75rem; 
    border: 1px solid #cbd5e1; 
    border-radius: 8px; 
    margin-bottom: 1rem; 
    box-sizing: border-box; 
}

.m-overlay { 
    position: fixed; 
    inset: 0; 
    background: rgba(15, 23, 42, 0.8); 
    backdrop-filter: blur(4px); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    z-index: 9999; 
}

.m-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr; 
    gap: 2rem; 
}

.m-log { 
    font-family: monospace; 
    font-size: 11px; 
    height: 300px; 
    overflow-y: auto; 
    background: #0f172a; 
    color: #94a3b8; 
    padding: 1rem; 
    border-radius: 8px; 
    white-space: pre-wrap;
}

.m-hw-item { 
    border-bottom: 1px solid #f1f5f9; 
    padding: 1rem 0; 
}

.m-task { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-size: 14px; 
    margin-top: 5px; 
    color: #475569; 
    cursor: pointer;
}

.m-progress-bg { 
    height: 8px; 
    background: #e2e8f0; 
    border-radius: 4px; 
    overflow: hidden; 
    margin: 1rem 0; 
}

.m-progress-fill { 
    height: 100%; 
    background: var(--p); 
    width: 0%; 
    transition: width 0.3s; 
}

.m-hidden {
    display: none !important;
}

@media (max-width: 768px) { 
    .m-grid { grid-template-columns: 1fr; } 
}

dialog {
    border: none;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

dialog::backdrop {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
}