/* simple custom styles */
:root {
    --brand: #0d6efd;
    --font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    font-family: var(--font-family);
}

body {
    background: linear-gradient(180deg, #f8f9fc 0%, #fff 60%);
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

header h4 {
    letter-spacing: .4px;
    font-weight: 700;
    font-size: 1.5rem;
}

.container .card {
    border: 0;
    box-shadow: 0 6px 20px rgba(40, 50, 70, .06)
}

.btn-primary {
    background: var(--brand);
    border-color: var(--brand)
}

footer {
    font-size: 0.85rem;
    font-weight: 500;
}

/* branding & hero styles */
:root {
    --school: #0b5ed7
}

.brand-badge {
    font-size: .95rem;
}

.brand-img {
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(11, 94, 215, 0.12)
}

.hero {
    background: linear-gradient(90deg, rgba(11, 94, 215, 0.06), rgba(11, 94, 215, 0.02));
    border-radius: 12px;
    padding: 1.25rem;
    animation: fadeIn 650ms ease both;
}

.hero h1 {
    font-weight: 700;
    color: var(--school)
}

.stat {
    min-width: 120px;
    border-radius: 8px;
    box-shadow: none;
    display: inline-block;
    transition: transform .18s ease, box-shadow .18s ease;
    background: #fff
}

.stat:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(11, 94, 215, 0.08)
}

.stat-icon {
    font-size: 1.4rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@media (max-width:767px) {
    .hero {
        padding: 1rem
    }

    .stat {
        width: 100%
    }
}

/* Admin / Guru visual cues */
.admin-bar {
    background: linear-gradient(90deg, #b00020, #d32f2f);
}

.guru-bar {
    background: linear-gradient(90deg, var(--brand), var(--school));
}

/* Slightly tint header when admin to make it more distinct */
.role-admin header {
    background: linear-gradient(90deg, rgba(208, 64, 64, 0.05), rgba(208, 64, 64, 0.02));
}

.role-guru header {
    background: linear-gradient(90deg, rgba(13, 110, 253, 0.03), rgba(13, 110, 253, 0.01));
}

/* Admin-specific tweaks for visibility */
.role-admin .brand-img {
    box-shadow: 0 6px 18px rgba(208, 64, 64, 0.08);
}

.role-admin .hero {
    box-shadow: 0 12px 30px rgba(208, 64, 64, 0.05)
}

.role-admin .btn-primary {
    background: #b00020;
    border-color: #b00020
}

.role-admin .stat:hover {
    box-shadow: 0 12px 30px rgba(208, 64, 64, 0.06)
}

/* Dropdown Submenu Styling */
.dropdown-submenu {
    position: absolute;
    left: 100%;
    top: 0;
    margin-top: -7px;
    margin-left: 0;
}

.dropdown-item.dropdown-toggle::after {
    border-left: 0.3em solid;
    border-top: 0.3em solid transparent;
    border-bottom: 0.3em solid transparent;
    border-right: 0;
    margin-right: -0.5rem;
    transform: rotate(-90deg);
}

.dropdown-item.dropdown-toggle:hover::after {
    transform: rotate(-90deg);
}

.navbar-light .dropdown-submenu .dropdown-item:hover {
    background-color: #e9ecef;
}