html, body {
    height: 100%; /* Ensure full height for flexbox layout */
    margin: 0; /* Remove default body margin */
    font-size: 1rem;
}

body {
    display: flex;
    flex-direction: column; /* Stack children vertically */
    padding-top: 55px;
    min-height: 100vh;
    font-family: "Trebuchet MS", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", sans-serif;
}

main {
    /* flex: 1; */
    margin-bottom: auto;
}

.navbar {
    background-color: #F8F9FA;
}

/* Style for the active navbar link */
.navbar-nav .nav-link.active {
    /* color: #007bff;  */
    color: #6c757d;
    font-weight: bold; 
    border-bottom: 2px solid #007bff; 
}


.navbar-nav .nav-link:hover {
    color: #0056b3;
}


.navbar-nav .nav-link {
    color: #6c757d;
}

.navbar-nav .nav-link {
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

.dropdown-menu {
    display: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    display: block;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* Fix flickering issue */
.navbar-nav .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
}

.dropdown-menu {
    margin-top: 0;
    pointer-events: none;
    border-radius: 0;
}

.dropdown:hover .dropdown-menu {
    pointer-events: auto;
}

/* Underline style for active domain */
.active-domain {
    color: #007bff; 
    font-weight: bold;
    border-bottom: 2px solid #007bff; 
}

/* breadcrumb */
.breadcrumb-bg {
    background-color: #f8f9fa; 
    padding: 10px;             
    border-radius: 4px;      
    margin-bottom: 20px;     
}

.heading {
    color: #034e73;
}


.scroll-x{
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid #dee2e6;
    border-radius: 1rem !important;

}

.responsive-wide{
    width: max-content; 

    table-layout: auto;
}

/* variable table */
.serie-table {
    margin: 0;
    min-width: 100%;
    width: max-content; 
    /* table-layout: auto; */

}

.serie-table thead th{
    background: #f8f9fa;
    border-bottom: 3px solid #dee2e6;
}
.serie-table th, td, tr{

    text-align: center;

}

.serie-table th{

    padding: 12px;

}


.serie-table td{

    padding: 12px ;
}


.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 10000;
    left: 50%;
    top: 60%;
    transform: translate(-50%, -50%); /* Center modal */
    width: 50%;
    max-width: 500px; /* Optional: limit max width */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal content box styling */
.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    font-size: 18px;
    color: #333;
}
/* #popupModal{
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    pointer-events: none; */

/* } */

/* .modal-content{
    pointer-events: auto;
    color: #fff;
    padding: 60px 40px;
} */


.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.pagination-container button {
    margin: 0 5px;
}


/* navbar */
.custom-login-btn {
    margin-right: 10px;
    font-size: 1.5rem;
}

.search-button {
    margin-right: 10px;
    font-size: 1.5rem;
}



.cart-button {
    margin-right: 10px;
    font-size: 1.5rem;
    position: relative;
    
}

.cart-badge { 

    font-size: 14px; 
    font-weight: bold; 
    padding: 2px 6px; 
    border-radius: 50%; 
    position: absolute; 
    top: -12px; 
    right: -10px; 

}


.years_filter {
    margin: 10px 0;
}
.lighten {
    opacity: 0.5 !important;
    background-color: #F8F9FA !important;
}

.dropdown-checkboxes {
    display: none;
    position: absolute;
    background: white;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 10px;
    z-index: 1000;
}
.dropdown-container {
    position: relative;
    width: 300px;
}
.dropdown-btn {
    width: 100%;
    text-align: left;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: white;
    border: 1px solid #ced4da;
    border-radius: .375rem;
    /* transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out; */
}

.dropdown-btn .caret {
    font-size: 12px;

}
.dropdown-checkboxes label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px;
    width: 100%;
}
.dropdown-checkboxes input[type="checkbox"] {
    margin-right: 10px;
}
.dropdown-checkboxes label:hover {
    background: #F1F1F1;
}

.dropdown-checkboxes label.selected {
    background-color: #d3d3d3;
}

@media (max-width: 1000px) {
    .navbar-brand img {
        width: 60px;
    }

    .btn {
        padding: 0.25rem 0.5rem;  
        font-size: 0.8rem;        
    }

    .navbar-toggler {
        margin-right: 0.5rem;     
    }
    .select2 {
        width: 80%;
        
    }
   
}

@media (max-width: 768px) {
    footer {
        font-size: 0.8rem;
    }
    .select2 {
        width: 90%;
        
    }
}

@media (max-width: 500px) {
    footer {
        font-size: 0.5rem;
    }
}


.tabs{
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.tabs a{
    padding: 10px 16px;
    border: 1px solid #ccc;
    margin: 0 4px;
    text-decoration: none;
    background: #f8f8f8;
    color: #333;
}

.tabs a.active{
    background: #eaeaea;
    font-weight: bold;
}

/* index */
.main-background {
    background-color: #f0f0f0; /* Light grey as a placeholder */
    background-image: url('../images/activity_background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex: 1; /* Allow this section to grow and fill available space */
    color: white;
    display: flex;
    flex-direction: column;
    /* align-items: center; */
    /* justify-content: center;  */
    text-align: center;
    padding: 30px;
    position: relative;
    box-sizing: border-box;
}

/* White block styling */
.white-block {
    background-color: white;
    opacity: 85%;
    color: black;
    padding: 20px;
    width: 80%; 
    max-width: 500px; 
    border-radius: 8px;
    text-align: left;
    box-sizing: border-box;
    margin: 20px 20px; 
    /* margin-left: 10px; */
}

/* Text inside the white block */
.white-block h2 {
    margin-top: 0;
    font-size: 1.2rem;
}

.white-block p {
    font-size: 1rem;
    line-height: 1.5;
}

/* Media query for larger screens */
@media (min-width: 768px) {
    .white-block {
        width: 60%; 
    }
}

@media (min-width: 992px) {
    .white-block {
        width: 50%; 
    }
}






.content-section h2 {
    font-size: 1.8rem;
    color: #333;
}

.content-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}



.background-run {
    position: relative;
    padding: 20px 40px;
}

.background-run::before {
    content: '';
    min-height: 90vh;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* min-height: 100vh; */
    background-image: url('../images/activity_background.jpg');
    background-size: cover; 
    background-position: center; 
    opacity: 0.45; 
    z-index: -1; /* Ensure the background is behind the content */
}



.row-cols-1 .col,
.row-cols-sm-2 .col,
.row-cols-md-4 .col {
  border: 1px solid #ddd; 
  
  box-sizing: border-box; 
}





/* source */
.sources-container {
    background-color: white;
    opacity: 75%;
    color: black;
    padding: 20px;
    width: 80%; 
    max-width: 1000px; 
    border-radius: 8px;
    text-align: left;
    box-sizing: border-box;
    margin: 20px 20px; 
    margin-left: 10px;
}



section {
    scroll-margin-top: 80px; /* Adjust this value as needed */
}


/* footer */
.footer {
    background-color: #F8F9FA; 
    padding-top: 10px;
    padding-bottom: 20px;
    padding-left: 10px;
   
}

#downloadMessage{
    margin: 20px auto 20px auto;
    padding: 15px;
    max-width: 700px;
    text-align: center;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.1);
}

.modal-button{
    width: 20%;;

}

.files-table-wrapper{
    margin-top: 1%;
    max-height: 75%;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 0px;
    /* border: 1px solid #bbb; */
    border-radius: 10px;
    box-shadow: 2px 2px 6px 4px rgba(92, 80, 80, 0.1);
}

.files-table{

    margin: 0;

}

.files-table th{
    padding: 18px;
    background-color: #91c0eb;
}

.files-table td{
    padding-top: 15px;
    padding-bottom: 15px;
}
.footer a:hover {
    text-decoration: underline; 
}

.footer .container {
    max-width: 1200px; 
    max-height: max-content;
    margin: 0 auto; 
}

.footer .list-unstyled {
    padding-left: 0; 
}

.footer .text-center {
    font-size: 14px; 
}

.footer-heading{
    margin-bottom: 0.1rem;
}

#intradayTypeLabel, #userFilterLabel{
    font-size: 18px;
    font-weight: bolder;
}
#userFilterLabel{
    margin-right: 5px;
}


.filter-dropdown{

    padding:8px;
    border-radius: 5px;
}
    
