/* No root variables needed */
:root {
    /* none */
}

/* Active/selected dropdown item: white text on an orange/brown background */
.dropdown-item.active,
.dropdown-item:active {
    color: #fff;
    background-color: #bd926f;
}

/* Default link color: navy */
.btn-link,
a {
    color: #001f3f;
}

/* Hover color for links: orange/brown */
.btn-link:hover,
a:hover {
    color: #bd926f;
}

/* Default primary button color: white text on orange/brown */
.btn-primary,
.btn-outline-primary:hover {
    color: #fff;
    background-color: #bd926f;
    border-color: #bd926f;
    transition: none; /* remove glitchy transition */
}

/* Rounded pill shape for all buttons (Adjust border-radius to taste) */
.btn {
    border-radius: 50px; /* makes button pill-shaped */
}

/* Hover state for any button (Set desired hover color here) */
.btn:hover {
    opacity: 0.9;
}

/* Control height of the top nav bar */
.navbar {
    height: 110px;
    background-color: #ffffff; /* Set desired background color */
}

/* Background behind everything */
body {
    background-color: rgb(255, 255, 255);
}

/* Container that holds cards */
.white-maxwidth-container {
    background-color: #fff; /* main container background */
    border: 2px solid #d3d0d0; /* container border */
    max-width: 1200px; /* or pick a size you prefer */
    margin: 0 auto;
    padding: 1rem; /* some padding if desired */
}

/* Force the content wrapper background color */
.content-wrapper {
    background-color: rgb(255, 255, 255) !important;
}

/* Make all <h2> tags use "Wichita TS-Medium" font */
h2 {
    font-family: "Frank Ruhl Libre", serif !important;
}

/* Example: Limit logo height to 70px */
.navbar-brand img {
    max-height: 70px;
    height: auto;
    width: auto;
}

/* Control the color of the main sidebar */
.main-sidebar {
    background-color: #e7e7e7; /* Change to your preferred background color */
    width: 250px; /* Change to your preferred width */
}

/* Adjust the top margin of the sidebar */
.main-sidebar .sidebar {
    margin-top: 55px; /* Adjust the value to increase or decrease the distance */
}

/* Adjust the link styles in the sidebar */
.main-sidebar .nav-link {
    color: #4b4a48 !important;
    transition: background-color 0.3s !important, color 0.3s !important;
}

/* Apply Roboto Black font, bold, and specific text size */
.navbar-nav .nav-link {
    font-family: 'Roboto', sans-serif !important;
    font-weight: 500 !important;
    font-size: 16px !important;
    color: #000 !important;
    text-transform: none !important;
    padding: 5px 10px !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
    transition: background-color 0.3s ease, color 0.3s ease !important;
}

/* Hover effect: gray box with rounded corners */
.navbar-nav .nav-link:hover {
    background-color: #d3d3d3 !important;
    color: #000 !important;
    border-radius: 8px !important;
    padding: 5px 10px !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
}

/* Dropdown links styling */
.navbar-nav .dropdown-menu .dropdown-item {
    font-family: 'Roboto', sans-serif !important;
    font-weight: 450 !important;
    font-size: 16px !important;
    color: #000 !important;
    padding: 5px 10px !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
    transition: background-color 0.3s ease, color 0.3s ease !important;
}

/* Hover effect for dropdown items */
.navbar-nav .dropdown-menu .dropdown-item:hover {
    background-color: #d3d3d3 !important;
    color: #000 !important;
    border-radius: 8px !important;
    padding: 5px 10px !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
}

/* Ensure the font is imported from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Frank+Ruhl+Libre:wght@400;700&display=swap');

/* Apply the font to all heading tags */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Frank Ruhl Libre', serif;
}

/* Manage partial sidebar collapse */
/* Normal (expanded) sidebar width */
.main-sidebar.my-sidebar.elevation-4 {
    width: 250px;
    transition: width 0.3s ease;
    overflow: hidden; /* Ensure no horizontal scroll */
}

/* Collapsed (partial) sidebar width */
.main-sidebar.my-sidebar.elevation-4.collapsed {
    width: 75px;
}

/* Hide the text labels when collapsed, keep icons visible */
.main-sidebar.my-sidebar.elevation-4.collapsed .nav-sidebar .nav-link p,
.main-sidebar.my-sidebar.elevation-4.collapsed .user-panel {
    display: none;
}

/* Media query: Adjust layout on smaller screens */
@media (max-width: 768px) {
    .library-card {
        display: flex !important;
        flex-direction: row !important;
        min-height: 150px;
    }

    .library-card .image-container {
        flex: 0 0 40%;
        margin-right: 1rem;
    }

    .library-card .image-container img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .library-card .card-body {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
    }

    .library-card .card-body .btn {
        margin-top: auto;
    }

    .library-card h2.card-title {
        font-size: 1.25rem;
    }

    .library-card .card-subtitle {
        font-size: .95rem;
    }
}

@media (max-width: 576px) {
    .library-card h2.card-title {
        font-size: 0.8rem;
    }

    .library-card .card-subtitle {
        font-size: 0.7rem;
    }

    .card-container {
        display: none !important;
    }

    .library-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
}
