@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300&display=swap");

body, table {
    margin: 10px;
    padding: 0;
    border-collapse: collapse;
    font-family: "Poppins", sans-serif;
    background: #2196f3;
    color: #ffffff;
}
h1 {
    color: #5bf3c8;
    transition: 4s;
    text-shadow:2px 2px 0px #00000055;
    margin: 0px auto;
}
h2 {
  color: #e4f35b;
  transition: 4s;
  text-shadow:2px 2px 0px #00000055;
  margin: 0px auto;
}

#query-form {
    display: grid;
    grid-template-columns: 40% 40%;
    gap: 30px 0px ;
    align-items: center;
}

#query-form label {
    grid-area: auto / 1 / span 1 / span 1;
    padding: auto;
}

#query-form input {
    grid-area: auto / 2 / span 1 / span 1;
    text-align: center;
    padding: 10px 0px;
    
}

#query-form button {
    grid-area: 4 / 1 / span 1 / span 2;
    font-weight: bold;
    padding: 10px 0px;
    background-color: #5bf3c8;
    border-color: #aeede0;
    border-radius: 22px;
    color: #000000;
}

/* Style for the result table */
.result-table {
    width: 80%;
    scale: 0 ;
    transition: all 0.5s ease;
    border: 2px solid #c6c6c6;
    border-spacing: 0;
}

.result-table th,
.result-table td {
    padding: 6px 9px;
    /* text-align: left; */
    border-bottom: 1px solid #c6c6c6;
    font-size: 12px;
}

.result-table th {
    font-weight: bold;
    padding: 6px 12px;
    font-size: 14px;
    text-align: center;
}

.result-table tr:nth-child(even) {
    background-color: transparent;
}

.result-table tr:hover {
    background-color: transparent;
}

.result-table .totalRow {
    font-weight: bold;
    text-align: right !important;
}

/* New styles for the login page */
.login-container {
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10%;
    height: 100vh;
}

.login-heading {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333; /* Dark text color */
}

.login-form {
    background-color: #fff; /* White background */
    width: 75%;
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-label {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #333; /* Dark text color */
}

.login-input {
    width: 96%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 1rem;
}

.login-button {
    background-color: #4CAF50; /* Green button color */
    color: #fff; /* White text color */
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    font-size: 1rem;
    cursor: pointer;
}

.login-button:hover {
    background-color: #45a049; /* Darker green on hover */
}

/* Loading Spinner */
.spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 20px;
    z-index: 999;
}

.spinner-icon {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
}

.hidden {
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Google reCAPTCHA */
.g-recaptcha {
    transform:scale(0.8);
    -webkit-transform:scale(0.8);
    transform-origin:0 0;
    -webkit-transform-origin:0 0;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 48px;
    background: #11101d;
    padding: 6px 14px;
    transition: all 0.5s ease;
    z-index: 10;
  }
  
  .sidebar.active {
    width: 190px;
  }
  
  .sidebar .logo-content .logo {
    color: #fff;
    display: flex;
    height: 50px;
    width: 100%;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s ease;
  }
  
  .sidebar.active .logo-content .logo {
    opacity: 1;
    pointer-events: none;
  }
  
  .logo-content .logo i {
    font-size: 28px;
    margin-right: 5px;
  }
  
  .logo-content .logo .logo-name {
    font-size: 20px;
    font-weight: 300;
  }
  
  .sidebar #btn {
    position: absolute;
    color: #fff;
    left: 50%;
    top: 6px;
    font-size: 20px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    transform: translateX(-50%);
  }
  
  .sidebar.active #btn {
    left: 90%;
  }
  
  .sidebar ul {
    margin-top: 20px;
    padding: 0px;
  }
  
  .sidebar ul li {
    position: relative;
    height: 50px;
    width: 100%;
    list-style: none;
    line-height: 50px;
  }
  
  .sidebar ul li .tooltip {
    position: absolute;
    left: 122px;
    top: 0;
    transform: translate(-50%, -50%);
    border-radius: 6px;
    height: 35px;
    width: 122px;
    background: #fff;
    line-height: 35px;
    text-align: center;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    transition: 0s;
    opacity: 0;
    pointer-events: none;
  }
  
  .sidebar.active ul li .tooltip {
    display: none;
  }
  
  .sidebar ul li:hover .tooltip {
    transition: all 0.5s ease;
    top: 50%;
    opacity: 1;
    color: #000000;
  }
  
  .sidebar ul li input {
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    border-radius: 12px;
    outline: none;
    border: none;
    background: #1d1b31;
    padding-left: 50px;
    font-size: 18px;
    color: #fff;
  }
  
  .sidebar ul li .bx-search-alt {
    position: absolute;
    z-index: 99;
    color: #fff;
    font-size: 22px;
    transition: all 0.5s ease;
  }
  
  .sidebar ul li .bx-search-alt:hover {
    background: #fff;
    color: #1d1b31;
  }
  
  .sidebar ul li a {
    color: #fff;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 12px;
    white-space: nowrap;
  }
  
  .sidebar ul li i {
    height: 50px;
    min-width: 50px;
    border-radius: 12px;
    line-height: 50px;
    text-align: center;
  }
  .sidebar .links-name {
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s ease;
  }
  .sidebar.active .links-name {
    opacity: 1;
    pointer-events: auto;
  }
  
  .sidebar ul li a:hover {
    color: #11101d;
    background: #fff;
  }
  
  .sidebar .profile-content {
    position: absolute;
    color: #fff;
    bottom: 0;
    left: 0;
    width: 100%;
  }
  
  .sidebar .profile-content .profile {
    position: relative;
    padding: 10px 6px;
    height: 60px;
    background: none;
    transition: all 0.5s ease;
  }
  
  .sidebar.active .profile-content .profile {
    background: #1d1b31;
  }
  
  .profile-content .profile .profile-details {
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
  }
  
  .sidebar.active .profile .profile-details {
    opacity: 1;
    pointer-events: auto;
  }
  
  .profile .profile-details img {
    height: 45px;
    width: 45px;
    object-fit: cover;
    border-radius: 2px;
    transition: all 0.7s ease-in;
    background-color: white;
    padding: 10px;
  }
  
  .profile .profile-details .name-job {
    margin-left: 10px;
  }
  
  .profile .profile-details .name {
    font-size: 15px;
    font-weight: 300;
  }
  
  .profile .profile-details .job {
    font-size: 12px;
    font-weight: 200;
  }
  
  .profile #logout {
    position: absolute;
    left: 50%;
    bottom: 5px;
    transform: translateX(-50%);
    min-width: 50px;
    line-height: 50px;
    font-size: 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.5s ease;
    background: #1d1b31;
  }
  
  .profile #logout .tooltip {
    position: absolute;
    left: 122px;
    top: 0;
    transform: translate(-50%, -50%);
    border-radius: 6px;
    height: 35px;
    width: 122px;
    background: #fff;
    line-height: 35px;
    text-align: center;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    transition: 0s;
    opacity: 0;
    pointer-events: none;
  }

  .profile #logout:hover {
    background-color:#ffffff;
    color: #000000;
  }

  .sidebar.active .profile #logout {
    left: 88%;
  }

  /* .sidebar.active .profile #logout .tooltip {
    display: none;
  } */

  .sidebar .profile #logout:hover .tooltip {
    transition: all 0.5s ease;
    top: 50%;
    opacity: 1;
    color: #000000;
    font-family: "Poppins", sans-serif;
  }
  
  .home-content {
    position: absolute;
    height: 100%;
    left: 78px;
    width: calc(100% - 78px);
    transition: all 0.5s ease;
    z-index: 1;
  }
  
  .home-content .text {
    margin: 12px;
  }
  
  .sidebar.active ~ .home-content {
    /* width: calc(100% - 240px); */
    left: 240px;
  }

@media only screen and (min-width: 768px) {

    #query-form {
        grid-template-columns: 20% 20% 60%;
    }
    .login-form {
        background-color: #fff; /* White background */
        width: 30%;
    }
    
}

@media only screen and (max-width: 330px) {

    .g-recaptcha {
        transform:scale(0.68);
        -webkit-transform:scale(0.68);
        transform-origin:0 0;
        -webkit-transform-origin:0 0;
    }
    
}