/* styles.css */

/* Global Styles */
body {
  font-family: Arial, sans-serif;
  text-align: center;
  margin: 0;
  padding: 0;
  background-image: url('BG.png');
  background-size: cover;
  background-position: center;
  background-repeat: repeat;
  color: #fff;
}

header, footer {
  background-color: #df0101;
  color: white;
  padding: 20px;
}

h1, h2 {
  color: white;
}

.container {
  max-width: 900px;
  margin: auto;
  background: rgba(0, 0, 0, 0.7); /* Semi-transparent background for readability */
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}

section {
  margin-bottom: 40px;
}

input[type="text"], input[type="url"], textarea {
  width: 80%;
  padding: 10px 30px;
  background-color: black;
  font-size: 16px;
  color: red;
  margin: 20px 0;
  height: 40px;
  border: none;
  outline: none;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}

textarea {
  height: 100px;
  resize: vertical;
}

#button-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

button {
  background-color: red;
  font-size: 20px;
  color: white;
  padding: 15px 25px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(253, 252, 252, 0.8);
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #c70000;
}

.results-container, .text-container, .audio-container, .docs-container {
  margin-top: 20px;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #ddd;
  padding: 15px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 5px;
}

.text-item, .audio-item, .docs-item {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  cursor: pointer;
  color: white;
}

.text-item:hover, .audio-item:hover, .docs-item:hover {
  background-color: rgba(255, 0, 0, 0.7);
}

.error {
  color: #ff4d4d;
  font-weight: bold;
}

.progress {
  width: 100%;
  background-color: #ddd;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 20px;
  display: none; /* Initially hidden */
}

/* Optional: Video Container Styles (if needed) */
.video-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 20px;
}

.video {
  margin: 10px;
  border: none;
  border-radius: 4px;
  width: 200px;
  text-align: center;
  background-color: black;
  font-size: 14px;
  padding: 20px;
  color: red;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}

.video img {
  max-width: 100%;
  border-bottom: 1px solid #ddd;
  border-radius: 4px 4px 0 0;
}

.video p {
  margin: 10px 0;
}

#waiting-gif {
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
position: fixed;
width: 40%;
height: auto;
z-index: 99999999;
}

#reset-button {
  position: fixed;
  top: 20px;
  left: 20px;
  background-color: black;
  color: red;
  border: none;
  font-size: 16px;
  padding: 10px 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

#reset-button:hover {
  background-color: red;
  color: black;
}

#reset-button i {
  font-size: 16px;
}

.search-results-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.search-result-item {
  background-color: rgba(30, 30, 30, 0.7);
  margin-bottom: 15px;
  padding: 15px;
  border-radius: 5px;
  display: flex;
  align-items: flex-start;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
  cursor: pointer;
}

.search-result-item:hover {
  background-color: rgba(42, 42, 42, 0.7);
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
  transform: translateY(-2px);
}

.result-number {
  background-color: #ff0000;
  color: #ffffff;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 50%;
  margin-right: 15px;
  min-width: 30px;
  text-align: center;
}

.result-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.result-text {
  margin: 0 0 10px 0;
  color: #ffffff;
  text-align: left;
  line-height: 1.4;
}

.result-source {
  font-size: 0.9em;
  color: #ff6666;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.result-source i {
  margin-right: 5px;
}

.no-results {
  color: #ff0000;
  font-style: italic;
}

/* Add this to your existing CSS */

#action-select,
#format-select {
  width: 80%;
  padding: 10px 30px;
  background-color: black;
  font-size: 16px;
  color: red;
  margin: 20px 0;
  height: 40px;
  text-align: center;
  border: none;
  outline: none;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='red' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px top 50%;
  cursor: pointer;
}

#action-select::-ms-expand {
  display: none;
}

#action-select option {
  background-color: black;
  color: red;
}

#action-select:focus {
  box-shadow: 0 0 15px rgba(255, 0, 0, 1);
}

footer {
  position: fixed;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 100%;
}

footer p {
  font-size: 14px;
  color: white;
}

.format-select-container {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}