/* ================= COMMON HEADER ================= */
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between; /* pushes logo left, user info right */
    background: linear-gradient(90deg, #3f51b5, #283593);
    padding: 10px 20px;
    color: #fff;
    position: relative; /* so slope can be positioned inside */
    height: 90px;
}

.header-left img {
    height: 50px;
}

.header-right .user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-text {
    text-align: right;
    line-height: 1.2;
}

.user-name {
    font-weight: 600;
    display: block;
}

.user-reg {
    font-size: 12px;
    opacity: 0.9;
}

.logout-btn {
    color: #fff;
    font-size: 20px;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
}

.logout-btn:hover {
    background: rgba(255,255,255,0.2);
}

/* Slanted blue band */
.header-slope {
    position: absolute;
    top: 0;
    left: 120px;
    width: 65%;
    height: 90px;
    background: #4f57c2;
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
}


