/*
 * Modern visual refresh for the LMS login/home pages.
 * Loaded after style.css / newdesign.css so it only overrides look-and-feel
 * (color, spacing, radius, shadow, typography) — no markup or JS changes,
 * existing classes/IDs are left in place so functionality is untouched.
 */

:root {
    --hr-red: #bd1906;
    --hr-red-dark: #941304;
    --hr-gold: #ffc80a;
    --hr-ink: #1f2430;
    --hr-muted: #6b7280;
    --hr-bg: #f4f5f9;
    --hr-card: #ffffff;
    --hr-radius: 16px;
    --hr-radius-sm: 10px;
    --hr-shadow: 0 10px 30px rgba(31, 36, 48, 0.10), 0 2px 8px rgba(31, 36, 48, 0.06);
    --hr-shadow-lg: 0 20px 50px rgba(31, 36, 48, 0.16), 0 6px 16px rgba(31, 36, 48, 0.08);
}

body {
    font-family: 'Inter', 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
    color: var(--hr-ink);
}

/* ---------- Login page ---------- */

body[style*="bodybg"] {
    background: linear-gradient(160deg, #fff7e6 0%, #f4f5f9 45%, #ffe9e6 100%) !important;
}

#right-panel {
    min-height: 100vh;
}

#right-panel .login-content {
    max-width: 420px;
    margin: 6vh auto;
    border-radius: var(--hr-radius);
    overflow: hidden;
    box-shadow: var(--hr-shadow-lg) !important;
    background: var(--hr-card);
}

#right-panel .logosub {
    background: linear-gradient(135deg, var(--hr-red) 0%, var(--hr-red-dark) 100%);
    padding: 28px 20px 22px;
}

#right-panel .login-form {
    padding: 28px 28px 24px;
}

#right-panel .register-link p {
    font-size: 15px !important;
}

#right-panel .register-link a {
    text-decoration: none;
    border-bottom: 2px solid var(--hr-gold);
}

#right-panel hr {
    border-color: #f0e2d6 !important;
    margin: 16px 0;
}

#right-panel .input-group {
    margin-bottom: 6px;
}

#right-panel .input-group-addon {
    background: #f4f5f9;
    border: 1px solid #e3e6ee;
    border-right: none;
    border-radius: var(--hr-radius-sm) 0 0 var(--hr-radius-sm);
    color: var(--hr-muted);
    font-weight: 600;
}

#right-panel .form-control {
    border: 1px solid #e3e6ee;
    border-left: none;
    border-radius: 0 var(--hr-radius-sm) var(--hr-radius-sm) 0;
    padding: 12px 14px;
    font-size: 15px;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

#right-panel .form-control:focus {
    border-color: var(--hr-red);
    box-shadow: 0 0 0 3px rgba(189, 25, 6, 0.12);
}

#right-panel .login-btn,
#right-panel .btn.bg-hry {
    background: linear-gradient(135deg, var(--hr-gold) 0%, #f5b400 100%) !important;
    color: var(--hr-ink) !important;
    border: none;
    border-radius: 999px;
    padding: 11px 28px;
    font-weight: 700;
    letter-spacing: .3px;
    box-shadow: 0 6px 16px rgba(255, 200, 10, 0.35);
    transition: transform .12s ease, box-shadow .12s ease;
}

#right-panel .login-btn:hover,
#right-panel .btn.bg-hry:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(255, 200, 10, 0.45);
}

#right-panel button.btn-secondary {
    background: linear-gradient(135deg, var(--hr-red) 0%, var(--hr-red-dark) 100%);
    border: none;
    border-radius: 999px;
    padding: 11px 28px;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(189, 25, 6, 0.30);
}

/* ---------- Home dashboard ---------- */

body.body {
    background-color: var(--hr-bg);
}

.card,
.widget,
.panel,
.box {
    border: none !important;
    border-radius: var(--hr-radius-sm) !important;
    box-shadow: var(--hr-shadow) !important;
}

.btn {
    border-radius: 999px;
}

.btn-primary,
.btn.bg-hr {
    background: linear-gradient(135deg, var(--hr-red) 0%, var(--hr-red-dark) 100%) !important;
    border: none !important;
}

/* Top header band: gradient overlay over the background photo so the
   greeting/icons stay readable, plus a soft shadow to separate it from
   the content below. */
.right-panel .header.layer1 {
    background-image:
        linear-gradient(135deg, rgba(148, 19, 4, 0.88) 0%, rgba(189, 25, 6, 0.80) 55%, rgba(255, 200, 10, 0.55) 100%),
        url('../images/BG.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    box-shadow: 0 8px 24px rgba(31, 36, 48, 0.18);
    border-radius: 0 0 var(--hr-radius) var(--hr-radius);
}

.header-menu .bellicon,
.header-menu button.bellicon,
.header-menu .namespan,
#menuToggle.menutoggle {
    background: rgba(255, 255, 255, 0.16) !important;
    border-radius: 999px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease;
}

.header-menu .bellicon:hover,
.header-menu button.bellicon:hover,
.header-menu .namespan:hover,
#menuToggle.menutoggle:hover {
    background: rgba(255, 255, 255, 0.28) !important;
}

.header-menu .count.bg-danger {
    background: var(--hr-gold) !important;
    color: var(--hr-ink) !important;
    font-weight: 700;
}

/* Greeting banner */
.timepc1 {
    padding: 4px 0 18px;
}

.timepc1 h4 {
    font-weight: 700 !important;
    font-size: 22px !important;
    letter-spacing: .2px;
}

#timepc {
    font-weight: 600;
    opacity: .9;
    font-size: 15px;
}

/* Content cards: subject list, stat cards, video/rating cards */
.card.boxshadow,
.bordernew,
.stdbox,
.newsubject {
    border: none !important;
    border-radius: var(--hr-radius-sm) !important;
    box-shadow: var(--hr-shadow) !important;
    transition: box-shadow .15s ease, transform .15s ease;
}

.card.boxshadow:hover,
.bordernew:hover,
.stdbox:hover {
    box-shadow: var(--hr-shadow-lg) !important;
    transform: translateY(-2px);
}

.newtitle {
    font-weight: 700 !important;
    color: var(--hr-ink);
    position: relative;
    padding-bottom: .5rem !important;
}

.newtitle::after {
    content: "";
    position: absolute;
    left: 1.25rem;
    bottom: 0;
    width: 36px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--hr-red), var(--hr-gold));
}

.card-header.htgs {
    border-radius: var(--hr-radius-sm) var(--hr-radius-sm) 0 0 !important;
    background: linear-gradient(135deg, var(--hr-red) 0%, var(--hr-red-dark) 100%) !important;
    font-weight: 600;
}

/* Subject row thumbnails */
.newsub2 {
    border-radius: var(--hr-radius-sm);
    overflow: hidden;
    transition: background .15s ease;
}

.newsub2:hover {
    background: #fafafd;
}

.subimg,
.subimg12 {
    border-radius: var(--hr-radius-sm) !important;
    overflow: hidden;
}

.link_a_size {
    font-weight: 600 !important;
    color: var(--hr-ink) !important;
}

.text-primary {
    color: var(--hr-red) !important;
}

/* Modals (notifications, results) */
.modal-content.stdbox {
    border: none;
    border-radius: var(--hr-radius) !important;
    overflow: hidden;
}

.modal-header.bg-hr {
    background: linear-gradient(135deg, var(--hr-red) 0%, var(--hr-red-dark) 100%) !important;
    border: none;
}

.modal-footer .btn.bg-hr {
    background: linear-gradient(135deg, var(--hr-red) 0%, var(--hr-red-dark) 100%) !important;
    border: none;
    border-radius: 999px;
}

/* Sidebar */
.left-panel {
    box-shadow: var(--hr-shadow);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--hr-bg);
}

::-webkit-scrollbar-thumb {
    background: #d7dae3;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b9bdc9;
}

/* ---------- Responsive ---------- */

@media (max-width: 576px) {
    #right-panel .login-content {
        max-width: 94vw;
        margin: 4vh auto;
        border-radius: var(--hr-radius-sm);
    }

    #right-panel .login-form {
        padding: 22px 18px 18px;
    }

    /* Dashboard + inner pages on small screens */
    .timepc1 h4 {
        font-size: 18px !important;
    }

    #timepc {
        font-size: 13px;
    }

    .newtitle {
        font-size: 15px !important;
        padding-left: 1rem !important;
    }

    .newtitle::after {
        left: 1rem;
    }

    .card-body.he350 {
        padding: 14px !important;
    }

    .header-menu .bellicon,
    .header-menu button.bellicon,
    .header-menu .namespan,
    #menuToggle.menutoggle {
        width: 36px;
        height: 36px;
    }

    .subtitle1 {
        font-size: 13px !important;
    }
}
