/* Onesmart theme overrides */

/* Apply only when body has class 'theme-onesmart' */
body.theme-onesmart {
    /* Optional: override palette for components that use CSS variables */
    --primary-color: #d13d95; /* pink from logo */
    --secondary-color: #3b4e8f; /* complementary deep blue */
}

/* Fix navbar alignment for onesmart logo */
body.theme-onesmart .navbar {
    align-items: center;
    min-height: 70px;
    padding-top: 0;
    padding-bottom: 0;
}

body.theme-onesmart .navbar .container-fluid {
    padding-top: 0;
    padding-bottom: 0;
}

body.theme-onesmart .navbar-brand {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-right: 1rem;
    line-height: 1;
}

body.theme-onesmart .navbar-brand img {
    height: 60px;
    width: 150px;
    object-fit: contain;
    display: block;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}

/* Ensure nav items align properly without extra top padding */
body.theme-onesmart .navbar-nav {
    align-items: center;
}

body.theme-onesmart .navbar-nav .nav-link {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Navbar link hover color */
body.theme-onesmart .navbar .nav-link:hover,
body.theme-onesmart .navbar .nav-link:focus {
    color: #d13d95 !important;
}

/* Dropdown item hover state showing subtle pink background */
body.theme-onesmart .dropdown-menu .dropdown-item:hover,
body.theme-onesmart .dropdown-menu .dropdown-item:focus {
    color: #d13d95;
    background-color: rgba(209, 61, 149, 0.08);
}

/* Active nav state accent */
body.theme-onesmart .navbar .nav-link.active,
body.theme-onesmart .navbar .show > .nav-link {
    color: #d13d95 !important;
}

/* Sidebar links (if sidebar is used in other pages) */
body.theme-onesmart .sidebar .nav-link:hover,
body.theme-onesmart .sidebar .nav-link:focus {
    color: #fff;
    background-color: rgba(209, 61, 149, 0.15);
}

/* Buttons that rely on .btn-primary pick up variable; ensure hover is aligned */
body.theme-onesmart .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

body.theme-onesmart .btn-primary:hover,
body.theme-onesmart .btn-primary:focus {
    background-color: #b93082;
    border-color: #b93082;
}


