/*=========Google Fonts=======*/
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');


/*===========Global Styles*/
*{
    font-family: 'Ubuntu', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{
    --blue: #2e2185;
    --white: #fff;
    --gray: #f5f5f5;
    --black1: #222;
    --black2: #999;
    --orange: orange;
    --golden: rgb(255, 183, 0);
}

body{
    min-height: 80vh;
    overflow-x: hidden;
}

#main-title{
    border: 1px solid var(--golden); 
    text-align: center;
    text-transform: uppercase;
    background-color: var(--blue);
    color: var(--white);
    padding: 10px;
    letter-spacing: 2px;
    font-weight: 500;
}

.table thead th {
   text-transform: uppercase;
   font-size:13px;
}

.table-hover tbody tr:hover td, th {
    background: var(--blue);
    color: var(--white);
}

.table-hover tbody th:hover {
    background: var(--blue);
    color: var(--white);
}


.box1 h3 {
    float: left;
}

.box1 button {
    float: right;
    
}


.box1 a{
    float: right;
    margin-right: 10px;
    padding: 5px 10px;
}

.form_space{
    margin-top: 200px;
}

.form-container {
    top: 0;
        border: 2px solid #007bff; /* Choose your border color */
        padding: 20px; /* Adds some padding inside the border */
        border-radius: 8px; /* Optional: gives rounded corners */
        background-color: #f9f9f9; /* Optional: light background color */
}

/*===========styling table for scrollbar========*/

.table-responsive-scrollbar-top {
  position: relative;
  overflow-x: auto; /* Enables horizontal scrolling */
}

.table-responsive-scrollbar-top::-webkit-scrollbar {
  height: 8px; /* Adjust the scrollbar height */
}

.table-responsive-scrollbar-top::-webkit-scrollbar-thumb {
  background-color: #ccc; /* Style for scrollbar handle */
  border-radius: 10px; /* Rounded corners for scrollbar */
}

.table-responsive-scrollbar-top::-webkit-scrollbar-track {
  background-color: #f9f9f9; /* Style for scrollbar track */
}

.table-responsive-scrollbar-top:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px; /* Matches the scrollbar height */
  background-color: #ccc; /* Mimics the scrollbar at the top */
}

/* Flexbox layout to align buttons and title on the same row */
.box1 {
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn {
    display: inline-flex; /* Use inline-flex to keep buttons inline */
    align-items: center;  /* Vertically center the text */
    justify-content: center; /* Horizontally center the text */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words if needed */
    min-width: 100px; /* Set a minimum button width */
    padding: 10px 15px; /* Adjust padding for a comfortable size */
}

.box1 h2 {
  margin: 0;
}

.box1 div {
  display: flex;
  gap: 1px; /* Adds space between the buttons */
}

/* Date filter row styling */
.small-date-input {
  width: 100%; /* Makes date input take full width */
}

.row .btn-primary {
  width: 100%; /* Ensures the button takes full width within the column */
}


/*===========Search Bar style ========*/

 .custom-search-form {
      display: flex;
      align-items: center;
      margin-right: 10px;
    }
.custom-search-form .form-control {
     width: 400px;
    margin-right: 10px;
    margin-bottom: -12px;
    
    }
.custom-search-form .btn{
    margin-bottom: -12px;
    }




.no-data-message {
    margin-top: 20px; 
    padding: 15px; 
    background-color: #f8d7da;
    color: #721c24; 
    border: 1px solid #f5c6cb; 
    border-radius: 5px; 
    font-size: 1.2em; 
}
 
 /*===========<!-- Date Filter Form in payments style--> ========*/
 /* Thin input fields */
.small-date-input {
    padding: 5px;
    font-size: 14px;
    height: 30px;
    border-radius: 4px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.small-date-input:focus {
    border-color: #007bff;
    outline: none;
}

/* Thin button */
.search-button {
    padding: 5px 10px;
    font-size: 14px;
    height: 30px; /* Thin button */
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

/* dropdown menu in contributions */
   .dropdown-menu {
            padding: 0;
            width: 100%;
        }

        .dropdown-menu .dropdown-item {
            padding:5px 10px;
            margin-bottom: 10px;
            width: 100%;
            box-sizing: border-box;
        }

        .dropdown-menu .dropdown-item:hover {
            background-color: #f1f1f1;
        }

        .dropdown-menu .btn {
            display: block;
            width: 100%;
            text-align: center;
        }


  /*============================== User dropdown styling ================================================*/
  
#user_list {
    position: absolute;
    z-index: 1000;
    width: calc(100% - 80px); /* Ensure it fits within the input width (account for border) */
    background-color: white; /* Background color for the dropdown */
    border: 1px solid #ccc;  /* Border styling */
    border-radius: 4px;      /* Rounded corners */
    max-height: 200px;       /* Max height for the dropdown */
    overflow-y: auto;        /* Scroll if the list gets too long */
}

/* List item styling */
.list-group-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #ddd; /* Separate each item with a border */
    background-color: #f9f9f9;
}

/* Hover effect on list items */
.list-group-item:hover {
    background-color:  var(--blue);
    color: white;
}

/* Style for the selected item */
.list-group-item:active,
.list-group-item.selected {
    background-color:  var(--blue);
    color: white;
}

/* Hide the dropdown when it's empty */
#user_list:empty {
    display: none;
}


  #user_list {
        width: 550px;
        max-height: 150px;
        overflow-y: auto;
        border: 1px solid darkred;
        background-color: var(--blue); 
        color: var(--white);
    }

/*=============================== Footer========================================*/

footer{
    background-color: #000;
    margin-top: 50px;
}

.footernav{
    width: 100%;
    padding: 20px;
}

.footerbottom{
    text-align: center;
}

.footerbottom p{
    color: #ffffff;
}

footer a {
            color: var(--golden); 
            text-decoration: none; 
        }

footer a:hover {
    text-decoration: underline; 
}

.love{
    color: red;
    font-size: 500;
}
.designer{
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    margin: 0px 5px;
}    
      

/* =============================== Responsive design for small screens================================== */
/* General styles for devices up to 768px */
@media screen and (max-width: 768px) {
    .row {
        flex-direction: column;
        gap: 5px; /* Space between columns */
    }

    .col-md-4 {
        margin-bottom: 0; /* Remove margin-bottom; handled by row gap */
    }

    .small-date-input {
        display: flex; /* Align elements using flexbox */
        width: 100%; /* Full width for small screens */
        margin-bottom: 10px; /* Add spacing below */
    }

    .search-button, #filterButton {
        width: 100%; /* Full width for buttons */
    }

    .btn {
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        margin-bottom: 10px;
        font-size: 13px; /* Adjust font size for smaller screens */
        padding: 10px 5px; /* Reduce padding */
    }

    .box1 {
        display: flex;
        flex-wrap: wrap; /* Allow wrapping if necessary */
        justify-content: center; /* Center items */
        gap: 2px; /* Space between buttons */
    }

    .custom-search-form {
        margin-top: 1rem;
        margin-bottom: 1rem; /* Space below form */
        width: 100%;
    }

    .custom-search-form input[type="text"] {
        width: 100%; /* Full width input */
    }

    .custom-search-form button {
        margin-top: 0.5rem;
        width: 100%; /* Full width button */
    }
}

/* Additional styles for devices up to 576px */
@media screen and (max-width: 576px) {
    .box1 {
        flex-wrap: wrap; /* Prevent wrapping */
        justify-content: flex-start; /* Align items to the start */
        gap: 0; /* Reduce spacing */
    }

    .btn {
        font-size: 12px; /* Smaller font for very small screens */
    }
}
