@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root{
    --brand:#7a0c2e;
    --brand-light:#a11540;
    --brand-dark:#5c081f;
    --accent:#f5c518;
    --accent-dark:#e0ad00;
    --ink:#2b2b2b;
    --muted:#6b7280;
    --line:#e5e7eb;
    --bg:#f0f1f4;
    --card:#ffffff;
    --radius:14px;
    --shadow:0 6px 20px rgba(17,24,39,.08);
    --shadow-lg:0 12px 34px rgba(17,24,39,.14);
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    background-color: var(--bg);
    margin: 0 auto;
    max-width: 1000px;
    font-family: "Inter", Arial, sans-serif;
    font-size: 14px;
    color: var(--ink);
    box-shadow: 0 0 40px rgba(0,0,0,.18);
    min-height: 100vh;
}

/* ---------- Top navigation ---------- */
.top-nav{
    display: flex;
    align-items: center;
    height: 68px;
    padding: 0 6px;
    background: linear-gradient(120deg, var(--brand-dark), var(--brand) 55%, var(--brand-light));
    box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.top-nav h2{
    color: #fff;
    margin: auto 0;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: .2px;
}
.top-nav img{
    height: 52px;
    width: 52px;
    object-fit: cover;
    border-radius: 100%;
    border: 2px solid var(--accent);
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
    margin: auto 12px;
}

/* ---------- Middle nav / action bar ---------- */
.mid-nav{
    display: flex;
    align-items: center;
    height: 60px;
    padding: 0 8px;
    justify-content: space-between;
    background-color: #fff;
    border-bottom: 1px solid var(--line);
}
.mid-nav div{
    display: flex;
    align-items: center;
    margin: 8px;
    height: 40px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
    transition: .2s ease;
}
.mid-nav div input{
    background: transparent;
    height: 100%;
    border: none;
    padding: 0 14px 0 4px;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    font-family: "Inter", sans-serif;
}
.mid-nav div .icon{
    margin: auto 10px;
    height: 18px;
    width: 18px;
    color: var(--brand);
    transition: .2s;
}
.mid-nav div .icon:hover{
    transform: scale(1.25);
}
.mid-nav .change-pass{
    width: 170px;
    height: 40px;
}
.mid-nav div:hover{
    background-color: #fff5f7;
    border-color: var(--brand-light);
    box-shadow: 0 3px 10px rgba(122,12,46,.12);
}
.mid-nav .sign-out{
    height: 40px;
}
.mid-nav .sign-out a{
    display: flex;
    height: 100%;
}
.mid-nav .sign-out input{
    color: var(--brand);
}

/* ---------- Profile / info header ---------- */
.info{
    position: relative;
    padding: 24px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    min-height: 200px;
    background:
        linear-gradient(135deg, rgba(122,12,46,.92), rgba(92,8,31,.86)),
        url(img/portal-header.png) center/cover;
    color: #fff;
}
.info .text{
    width: 70%;
    padding-left: 26px;
    list-style: none;
}
.info .text li{
    list-style: none;
    margin-top: 8px;
}
.info .text #name{
    font-family: "Poppins", sans-serif;
    font-size: 26px;
    font-weight: 600;
}
.info .text #code{
    display: inline-block;
    font-size: 13px;
    letter-spacing: .5px;
    background: var(--accent);
    color: var(--brand-dark);
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 999px;
    margin-top: 10px;
}
.info .text #course{
    font-size: 16px;
    opacity: .9;
    margin-top: 12px;
}
.info .infoimg{
    height: 150px;
    width: 150px;
    background-color: #fff;
    border-radius: 18px;
    border: 3px solid var(--accent);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    flex-shrink: 0;
}
.info .infoimg img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.content{
    min-height: 100vh;
}

/* ---------- Side / template button ---------- */
.sidebutt{
    margin-left: auto;
}
.info .templatebut,
.templatebut{
    position: inherit;
    min-width: 130px;
    height: 46px;
    margin-bottom: 10px !important;
    border: none;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--accent), var(--accent-dark));
    color: var(--brand-dark);
    font-weight: 700;
    font-family: "Poppins", sans-serif;
    cursor: pointer;
    padding: 0 18px;
    box-shadow: 0 6px 16px rgba(245,197,24,.35);
    transition: .2s ease;
}
.info a.templatebut:hover .templatebut,
.templatebut:hover{
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(245,197,24,.5);
}
