#kard:hover {
    color: rgb(13, 126, 141);
    box-shadow: 2px 2px 30px rgba(15, 110, 158, 0.5);  /* horizontal-offset vertical-offset blur-radius color */
    transition: .7s; 
 } 

.display-4{
    display: block;
}

.quant{
    align-items: center;
    color: red;
}

.book-selection{
    margin-bottom: 20px;
}

.search-box{
    margin-bottom: 10px;
    margin-top: 5px;
}

#book-table th, #book-table td{
    padding: 8px;
    border: 1px solid #bbb7b7;
}

#add-book {
    cursor: pointer;
}

.select2-container {
    width: 100% !important;
}

.quantity-input {
    width: 80px;
}

#selected-books {
    margin-top: 20px;
}

.remove-book {
    padding: 0.25rem 0.5rem;
}

.card {
    margin-bottom: 1rem;
}

.total-row {
    font-weight: bold;
    background-color: #f8f9fa;
}

/* Enhanced navigation styling */
.navbar-nav .nav-link.active {
    font-weight: 500;
    /* border-bottom: 3px solid rgba(255,255,255,0.8); */
    position: relative;
}

/* Subtle hover effect for non-active items */
.navbar-nav .nav-link:not(.active):hover {
    /* border-bottom: 3px solid rgba(255,255,255,0.3); */
    transition: border-bottom 0.3s ease;
}

/* #Dasboard styles  */

.dashboard-container {
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;  /* Center the container */
}
.stats-row {
    margin-bottom: 30px;
    margin-left: 5px;
    margin-right: 5px;
}
.stat-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 80%;
    margin: 10px;
}
.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #1a3d66;
    padding-bottom: 8px;
}
.chart-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    margin: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.chart-container h4 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #1a3d66;
}
.row {
    margin-left: -5px;
    margin-right: -5px;
}

/* #Chart_filter css */
/* Time Filter Dropdown Styles */
.dashboard-header {
    margin-bottom: 1.5rem;
}

.filter-container {
    background-color: white;
    padding: 8px 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}

.form-select-sm {
    padding-right: 2rem;
    min-width: 150px;
    font-size: 0.875rem;
}

label.me-2 {
    margin-right: 0.5rem;
    font-weight: 500;
    color: #495057;
}

/* Making the charts responsive for mobile phones*/

.chart-wrapper {
    position: relative;
    height: 300px;
    max-height: 500px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .chart-wrapper {
        height: 400px;
        margin-bottom: 25px;
    }
    .stat-value {
        font-size: 1.5rem;
    }
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start !important;
    }
    .filter-container {
        margin-top: 10px;
        width: 100%;
    }
    #timeFilter {
        width: 100%;
    }
    .chart-container {
        padding: 15px; /* More internal padding */
        margin-bottom: 25px; /* Space between chart containers */
    }
    
    .stat-card {
        margin-bottom: 15px; /* More space between stat cards */
    }
    
    .dashboard-container {
        padding: 10px; /* Additional padding for the whole container */
    }
    
    h4 {
        font-size: 1.1rem; /* Slightly smaller headings on mobile */
        margin-bottom: 15px; /* More space below headings */
    }
}
