/* Overall container styles */

* {
  font-family: "Nunito";
  font-optical-sizing: auto;
}

:root {
  --button-color: #666666;
}

body {
  /* background: radial-gradient(farthest-corner circle at top, #2f65ac 0, #152a4d 100%); */
  background: #fff567 !important;
  margin: 0;
  padding: 0;
}

.notification-item p {
  font-size: 16px;
}

.insight-container {
  margin: 20px;
  padding: 20px;
  padding-left: 64px;
  padding-right: 38px;
  color: #666666;
}

/* Table styles */
.table-container {
  overflow-x: auto;
  width: 100%;
  margin-left: 10px;
  color: #666666;
  max-height: 500px;
  overflow: auto;
}

table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

#tableName {
  font-size: 14px;
  color: #333;
}

td,
th {
  padding: 12px 15px;
  text-align: left;
  /* border-bottom: 1px solid #ddd; */
}

th {
  /* background-color: #f4f4f4; */
  font-weight: bold;
}

.loading-message {
  font-size: 20px;
  text-align: center;
  font-weight: 500;
  color: #555;
}

/* File input styles */
#fileInput {
  display: block;
  margin: 10px 0;
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #ccc;
  transition: border-color 0.3s ease;
}

.input-field {
  width: 100%;
  max-width: 300px;
  /* Optional, define a max width */
  box-sizing: border-box;
  /* Ensures padding is included in the width */
}

#fileInput:focus {
  border-color: rgb(39, 125, 255);
  outline: none;
}

/* Insight header styles */
.insight-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-left: 13px;
  padding-right: 29px;
}

#one {
  margin-right: 10px;
}

.upload-section {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.notification-icon {
  cursor: pointer;
  font-size: 25px;
  color: #555;
  border-radius: 10px;
  transition: color 0.3s ease;
}

.name-heading {
  font-family: "Nunito";
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  color: #666666;
  font-size: 1.6rem;

}

.notification-icon:hover {
  color: rgb(39, 125, 255);
}

/* Shake animation */
/* Keyframes for the shake animation */
@keyframes shake {
  0% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  50% {
    transform: translateX(5px);
  }

  75% {
    transform: translateX(-5px);
  }

  100% {
    transform: translateX(0);
  }
}

/* Class to trigger the shake animation */
.shake {
  animation: shake 0.5s ease-in-out;
}


/* Add a vibration effect */
.vibrate {
  animation: vibration 0.2s infinite alternate;
}

@keyframes vibration {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes strong-shake {
  0% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  50% {
    transform: translateX(5px);
  }

  75% {
    transform: translateX(-5px);
  }

  100% {
    transform: translateX(5px);
  }
}

#notificationButton.shake {
  animation: strong-shake 0.3s ease-in-out 3;
  /* Stronger shake with less time and 3 repetitions */
}


/* Custom header styles */
/* .custom-header {
  background-color: rgb(39, 125, 255) !important;
  color: white;
  font-weight: bold;
  padding: 12px 20px;
  border-radius: 8px;
} */

/* Action buttons styling */
.action-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  margin-left: 10px;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  /* Adjust spacing between groups as needed */
  align-items: center;
  /* Align items vertically */
}

.generate-sql-section {
  display: flex;
  align-items: center;
  gap: 20px;
  /* Adjust spacing between the button and the input group */
}

.sql-options {
  display: flex;
  flex: 1;
  gap: 10px;
  align-items: center;
  /* Align items in the div vertically */
}

button {
  background-color: var(--button-color) !important;
  color: white !important;
  padding: 10px 20px;
  border-radius: 15px;
  border: none;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn {
  margin-left: 10px;
  border-radius: 10px;
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 176, 240, 0.3);
}

button:active {
  transform: scale(1);
  box-shadow: 0 2px 6px rgba(0, 176, 240, 0.4);
}

button:focus {
  outline: none;
}

/* Add custom styles for the file type selection section */
.file-type-selection {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.file-type-label {
  margin-right: 10px;
  font-size: 18px;
  margin-bottom: 13px;
}

.file-type-radio-buttons {
  display: flex;
  gap: 15px;
  /* Add space between radio buttons */
}

.primary-button {

  padding: 10px 15px;
  background-color: #4CAF50;
  color: white;
  border: none;
  cursor: pointer;
}

button.primary-button:disabled {
  background-color: #ccc;
}

.upload-section {
  margin-bottom: 20px;
}

.row-header {
  margin-top: 4px;
}

/* Input styling */
input {
  color: black;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #ddd;
  transition: border-color 0.3s ease;
}

input:focus {
  border-color: rgb(39, 125, 255);
  outline: none;
}

/* SQL options styles */
.sql-options {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
}

/* SQL response container styles */
.sql-response-container {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow-y: auto;
}

/* Spinner styling */
/* Spinner Container that overlays on the table */
.spinner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.7);
  /* Semi-transparent overlay */
  display: none;
  /* Initially hidden */
  justify-content: center;
  align-items: center;
  z-index: 10;
  /* Ensure it appears over the table */
  text-align: center;
}

/* The spinner itself */
.spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  display: inline-block;
}

/* Spinner Animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Table container to have relative positioning */


/* Basic table styling */
/* Card-like container styling */
.table-container {
  width: 98%;
  position: relative;
  /* height: 400px; */
  max-width: 100%;
  margin-top: 10px;
  padding: 15px;
  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
  border-radius: 8px;
  background-color: #ffffff;
  overflow-x: hidden;
  overflow: auto;
  /* Prevents table overflow from breaking the card design */
}

.primary-button {
  border-radius: 10px;
}

.row-header {
  font-weight: 500;
  font-size: 18px;
}

/* Basic table styling */
#data-table {
  width: 100%;
  border-collapse: collapse;
}

#data-table th,
#data-table td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
}

#data-table th {
  /* background-color: #666666; */
  background-color: #888;
  color: white;
}

/* Scrollbar for table body */
/*  */

/* Spinner overlay */
#spinner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 1;
}

.spinner {
  font-size: 1.5em;
  color: #666666;
}


/* Spinner overlay */
#spinner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 1;
}

.spinner {
  font-size: 1.5em;
  color: #666666;
}


/* #spinner {
  margin-top: 10px;
  font-size: 1.2em;
  color: #3498db;
} */

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-input {
  text-align: center;
  border: none;
  border-bottom: 2px solid white;
  font-size: 14px;
  padding: 4px;
  color: white;
  flex: 1; /* Take up available space */
  margin-right: 8px;
  background: transparent;
}

.datatype-dropdown {
  font-size: 14px;
  padding: 4px;
  background: #ffffff;
  border-radius: 5px;
  border: 1px solid #ddd;
}

.header-input:focus {
  outline: none;
  border-bottom: 2px solid #666666;
}


#spinner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 1;
}

.spinner {
  font-size: 1.5em;
  color: #3498db;
}

.download-icon {
  font-size: 24px;
  /* Adjust the size of the icon */
  color: #666666;
  /* Icon color */
  cursor: pointer;
  /* Pointer cursor for interactivity */
  position: absolute;
  /* Absolute positioning for alignment */
  right: 19px;
  /* Align the icon to the right */
  top: 31px;
  /* Adjust vertical alignment */
}

.download-icon:hover {
  color: #4f4f50;
  /* Darker color on hover */
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.notification-icon {
  position: relative;
  top: -12px;
  display: inline-block;
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.3s;
  /* Add this only if you want the icon to scale */
}

.notification-icon:hover {
  transform: scale(1.1);
  /* Adjust this for hover effect */
}

.notification-count {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: red;
  color: white;
  font-size: 17px;
  border-radius: 50%;
  padding: 2px 6px;
  display: inline-block;
  min-width: 28px;
  text-align: center;
  /* No transition here to keep it static */
}

/* Ensure the count doesn't inherit any hover effects */
.notification-icon:hover .notification-count {
  transform: none;
}


.insights-modal {
  position: fixed;
  top: 0;
  right: 10px;
  width: 90%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}

.insights-content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 500px;
  width: 80%;
}

/* .modal-content1 p{
  margin-bottom: 10px !important;
} */
.insights-card {
  border: 1px solid #ddd;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
}

/* Modal background */
/* Simple modal styling */
/* Modal Background (Overlay) */
.modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  z-index: 1;
  /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  background-color: rgba(0, 0, 0, 0.4);
  /* Semi-transparent background */
  overflow: auto;
  /* Enable scrolling if needed */
}


/* Modal Content Box */
.modal-content1 {
  background-color: #fefefe;
  margin: 3% auto;
  color: rgb(39, 38, 38);
  padding: 20px;
  position: relative;
  border-radius: .3rem;
  border: 1px solid #888;
  width: 100%;
  max-width: 750px;
  /* Adjust width */
  height: 55%;
  max-height: 80%;
  overflow-y: auto;
  overflow: hidden;
  /* Hide overflow outside the modal */
}

.insider {
  display: flex;
  justify-content: space-between;
}
.modal-content1 h2 {
  color:#29374d;
  margin-bottom: 0;
  text-align: center;
}

.modal-content1 h3 {
  margin-top: 20px;
}
.modal-content1 p {
  color: rgb(39, 38, 38);
  margin-bottom: 10px;
}
/* Make the content inside modal scrollable */
#notificationContent {
  max-height: 100%;
  /* Prevent content from overflowing the modal */
  overflow-y: auto;
  /* Enable vertical scrolling */
  padding-right: 15px;
  /* Ensure scrollbar is not hidden behind content */
  max-height: 70%;
  /* Limit the height of the content to fit inside the modal */
}

#notificationContent1 {
  max-height: 100%;
  /* Prevent content from overflowing the modal */
  color: #666666;
  overflow-y: auto;
  /* Enable vertical scrolling */
  padding-right: 15px;
  /* Ensure scrollbar is not hidden behind content */
  max-height: 90%;
  /* Limit the height of the content to fit inside the modal */
}

#notificationContent2 {
  max-height: 100%;
  /* Prevent content from overflowing the modal */
  color: #666666;
  overflow-y: auto;
  /* Enable vertical scrolling */
  padding-right: 15px;
  /* Ensure scrollbar is not hidden behind content */
  max-height: 90%;
  /* Limit the height of the content to fit inside the modal */
}

/* Optional: Style for the notification items */
.notification-item {
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #ddd;
}

/* Style to highlight rows with issues in red */
/* Red highlight for rows with issues */
.highlight-red {
  background-color: #ffcccc !important;
  /* Light red background */
}

.issue-highlight {
  color: red;
  font-weight: bold;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 15px;
}

.pagination button {
  padding: 8px 12px;
  margin: 0 5px;
  cursor: pointer;
}

.pagination span {
  margin: 0 10px;
}


.close-btn {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 10px;
}

.close-btn:hover,
.close-btn:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.modal-header {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.issue-item {
  margin-bottom: 15px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f9f9f9;
}

.issue-separator {
  border: 0;
  border-top: 1px solid #ddd;
  margin: 10px 0;
}
/* .header-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 8px;
}

.header-input {
  border: none;
  border-bottom: 1px solid black;
  font-size: 14px;
  flex-grow: 1;
  margin-right: 10px;
}

.header-input:focus {
  outline: none;
  border-bottom: 2px solid blue;
}

.header-select {
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 12px;
  padding: 2px 5px;
} */

/* Loader Style */
.loader {
  border: 8px solid #f3f3f3;
  /* Light gray */
  border-top: 8px solid #666666;
  /* Blue */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Red Highlight for Queries with Issues */
.query-issue {
  color: red;
  font-weight: bold;
}


@media (min-width: 768px) and (max-width: 991px) {
  .insight-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    /* Space between items */
  }

  .upload-section {
    flex-direction: column;
    /* Stack the elements */
    align-items: flex-start;
    width: 100%;
  }

  .action-buttons {
    margin-bottom: 10px;
    /* Space before next line */
  }

  .notification-icon,
  .checkbox-element {
    /* Adjust these selectors if necessary */
    margin-top: 10px;
    /* Add space between lines */
  }
}


/* Responsive styling */
@media (min-width: 460px) and (max-width: 768px) {
  .insight-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    /* Space between items */
  }

  .upload-section {
    flex-direction: column;
    /* Stack the elements */
    align-items: flex-start;
    width: 100%;
  }

  .action-buttons {
    margin-bottom: 10px;
    /* Space before next line */
  }

  .notification-icon,
  .checkbox-element {
    /* Adjust these selectors if necessary */
    margin-top: 10px;
    /* Add space between lines */
  }
}