@import url("university-ui.css");

/* Main portal additions */
.math-widget,.language-widget,.history-widget{margin:1.1rem 0;padding:1.15rem;border:1px solid var(--ui-line-strong);border-radius:18px;box-shadow:var(--ui-shadow)}
.math-widget{background:linear-gradient(145deg,rgba(13,46,76,.96),rgba(7,24,43,.96))}
.language-widget{background:linear-gradient(145deg,rgba(11,68,70,.94),rgba(5,35,40,.96))}
.history-widget{background:linear-gradient(145deg,rgba(78,56,25,.96),rgba(32,24,15,.98))}
.math-widget h2,.language-widget h2,.history-widget h2{margin:.45rem 0 .25rem;color:#fff;letter-spacing:-.04em}
.math-widget p,.language-widget p,.history-widget p{color:#c2d9eb}
.math-widget__eyebrow,.language-widget__eyebrow,.history-widget__eyebrow{display:inline-flex;padding:.24rem .55rem;border:1px solid var(--ui-line-strong);border-radius:999px;background:rgba(255,255,255,.06);color:#d9f5ff;font-size:.67rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.math-widget__stats,.language-widget__grid,.history-widget__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:.65rem;margin:.9rem 0}
.math-widget__stats div,.language-widget__grid div,.history-widget__grid div{padding:.76rem;border:1px solid var(--ui-line);border-radius:12px;background:rgba(3,16,29,.46)}
.math-widget__stats b,.language-widget__grid b,.history-widget__grid b{display:block;color:#e9f8ff;font-size:1.4rem}
.math-widget__stats small,.language-widget__grid small,.history-widget__grid small{display:block;margin-top:.18rem;color:#b4c9d9;font-size:.66rem;font-weight:850;letter-spacing:.055em;text-transform:uppercase}
.math-widget__actions,.language-widget__actions,.history-widget__actions{display:flex;flex-wrap:wrap;gap:.55rem}
.math-widget__actions a,.language-widget__actions a,.history-widget__actions a,.math-widget>a,.language-widget>a,.history-widget>a{display:inline-flex;padding:.6rem .76rem;border:1px solid var(--ui-line-strong);border-radius:9px;background:rgba(45,116,179,.62);color:#f4fbff;font-size:.8rem;font-weight:850;text-decoration:none}
.math-widget--warning,.language-widget--warning,.history-widget--warning{background:rgba(91,68,22,.76);color:#fff2c4}
.question{font-size:1.22rem;line-height:1.45}
ul{padding-left:1.2rem}
li{margin:.32rem 0;color:#d4e1ee}

/* Portal dashboard polish */
.grid>.card{transition:border-color .17s ease,transform .17s ease,box-shadow .17s ease}
.grid>.card:hover{border-color:var(--ui-line-strong);box-shadow:var(--ui-shadow-soft);transform:translateY(-2px)}
.math-widget,.language-widget,.history-widget{transition:border-color .17s ease,transform .17s ease}
.math-widget:hover,.language-widget:hover,.history-widget:hover{border-color:var(--ui-accent);transform:translateY(-2px)}
.math-widget__actions a:hover,.language-widget__actions a:hover,.history-widget__actions a:hover,.math-widget>a:hover,.language-widget>a:hover,.history-widget>a:hover{border-color:#fff;background:rgba(77,143,198,.82);color:#fff}
