/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-color);
  background-color: var(--background);
  padding: 2rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  line-height: 1.6;
  font-size: 1rem;
}

/* Title */
h1 {
  font-size: 2.5rem;
  color: var(--text-color);
  text-align: center;
  margin-bottom: 2rem;
  text-transform: uppercase;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Form Layout */
form {
  background: var(--form-bg);
  border-radius: 1rem;
  padding: 2rem;
  max-width: 600px;
  margin: auto;
  box-shadow: 8px 8px 15px var(--shadow-light),
              -8px -8px 15px var(--shadow-dark);
  transition: transform 0.3s ease;
}

form:hover {
  transform: scale(1.02);
}

/* Label */
label {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  display: block;
  color: var(--text-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Input Fields */
input, select {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 1rem;
  font-size: 1rem;
  background: var(--input-bg);
  color: var(--text-color);
  margin-bottom: 1.5rem;
  box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.1),
              inset -2px -2px 5px rgba(255, 255, 255, 0.7);
  transition: background 0.3s, box-shadow 0.3s;
}

input:focus, select:focus {
  outline: none;
  background: var(--input-focus-bg);
  box-shadow: inset 2px 2px 10px rgba(0, 0, 0, 0.2),
              inset -2px -2px 10px rgba(255, 255, 255, 0.8);
}

/* Buttons */
button {
  background: var(--button-bg);
  color: #fff;
  padding: 1rem 2rem;
  border: none;
  border-radius: 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 4px 4px 8px var(--shadow-light),
              -4px -4px 8px var(--shadow-dark);
  transition: background 0.3s, transform 0.2s;
  margin-top: 1.5rem;
}

button:hover {
  background: var(--button-hover-bg);
  transform: scale(1.05);
}

button:active {
  transform: scale(0.98);
}

/* Sidebar Menu */
#sidebarMenu {
  height: 100%;
  width: 250px;
  position: fixed;
  top: 0;
  left: -250px;
  background-color: var(--sidebar-bg);
  color: var(--sidebar-text);
  padding: 20px;
  transition: left 0.3s ease;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

#sidebarMenu .menu-header h3 {
  font-size: 1.5rem;
  color: var(--highlight-color);
  margin-bottom: 20px;
  text-align: center;
}

#sidebarMenu ul {
  list-style: none;
  padding: 0;
}

#sidebarMenu ul li {
  margin: 15px 0;
}

#sidebarMenu ul li button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: inherit;
  font-size: 1rem;
  padding: 10px;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

#sidebarMenu ul li button:hover {
  background-color: var(--sidebar-hover-bg);
  color: var(--highlight-color);
}

/* Preview Section */
#previewSection {
  background: var(--preview-bg);
  padding: 2rem;
  border-radius: 1rem;
  margin-top: 3rem;
  animation: fadeIn 0.5s ease;
  display: none;
  text-align: center;
}

/* Preview Image */
#previewSection img {
  max-width: 100%;
  border-radius: 1rem;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1),
              -2px -2px 5px rgba(255, 255, 255, 0.7);
  transition: transform 0.3s, box-shadow 0.3s;
}

#previewSection img:hover {
  transform: scale(1.1);
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2),
              -2px -2px 10px rgba(255, 255, 255, 0.5);
}

/* JSON Output Section */
#jsonOutput {
  background: var(--preview-bg);
  padding: 1rem;
  border-radius: 1rem;
  margin-top: 1rem;
  font-family: monospace;
  color: var(--text-color);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 1.5rem;
  }

  h1 {
    font-size: 2rem;
  }

  form {
    padding: 1.5rem;
  }

  button {
    padding: 0.75rem 1.5rem;
  }

  #previewSection, #jsonOutput {
    padding: 1rem;
  }
}

/* CSS Variables */
:root {
  --background: #f7f7f7;
  --text-color: #2e2e2e;
  --form-bg: linear-gradient(145deg, #ffffff, #f0f0f0);
  --input-bg: linear-gradient(145deg, #f9f9f9, #e0e0e0);
  --input-focus-bg: #fff;
  --button-bg: linear-gradient(145deg, #ff7f50, #ff6347);
  --button-hover-bg: linear-gradient(145deg, #ff6347, #ff7f50);
  --sidebar-bg: #2a2a2a;
  --sidebar-text: #fff;
  --sidebar-hover-bg: #444;
  --highlight-color: #ff6347;
  --preview-bg: linear-gradient(145deg, #ffffff, #f0f0f0);
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-dark: rgba(255, 255, 255, 0.7);
  #infoBox{
    color: #ff1e00; /* Set the text color (green in this case) */
    background-color: #f0f0f0; /* Set a light background color */
  }
}

/* Dark Theme */
[data-theme="dark"] {
  --background: #121212;
  --text-color: #ff0000;
  --form-bg: linear-gradient(145deg, #1e1e1e, #333);
  --input-bg: #222;
  --input-focus-bg: #333;
  --button-bg: linear-gradient(145deg, #e85d04, #dc2f02);
  --button-hover-bg: linear-gradient(145deg, #dc2f02, #e85d04);
  --sidebar-bg: #1c1c1c;
  --sidebar-text: #ccc;
  --sidebar-hover-bg: #333;
  --highlight-color: #e85d04;
  --preview-bg: linear-gradient(145deg, #1e1e1e, #333);
  --shadow-light: rgba(255, 255, 255, 0.1);
  --shadow-dark: rgba(0, 0, 0, 0.7);
  #infoBox{
    color: #ff1e00; /* Set the text color (green in this case) */
    background-color: #000000; /* Set a light background color */
  }
}

/* Close Button */
#menuClose {
  font-size: 20px;
  background: none;
  border: none;
  color: white;
  position: absolute;
  top: 15px;
  right: 15px;
  cursor: pointer;
  display: none; /* Hidden by default */
  z-index: 1100;
}

#menuClose:hover {
  color: var(--highlight-color);
}

/* Sidebar Menu Visibility */
#sidebarMenu.open {
  left: 0; /* Make the menu visible */
}

#menuClose.show {
  display: block; /* Show close button when menu is open */
}
#convertToM3U {
  background-color: #4CAF50;
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  margin-top: 20px;
}

#convertToM3U:hover {
  background-color: #45a049;
}

/* Basic styling for the info box */
#infoBox {
  font-family: 'Arial', sans-serif; /* Set the font family */
  font-size: 16px; /* Set the font size */
  font-weight: bold; /* Make the text bold */
  color: #ff1e00; /* Set the text color (green in this case) */
  background-color: #f1f1f1; /* Set a light background color */
  padding: 10px 20px; /* Add padding for spacing */
  border-radius: 8px; /* Rounded corners */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
  text-align: center; /* Center the text */
  transition: all 0.3s ease; /* Add a smooth transition for hover effect */
}

/* Hover effect to change text color */
#infoBox:hover {
  color: #ffffff; /* Change text color to white on hover */
  background-color: #ff1e00; /* Change background to a darker green */
}

/* Animating the info box */
@keyframes fadeIn {
  0% {
      opacity: 0;
  }
  100% {
      opacity: 1;
  }
}

#infoBox {
  animation: fadeIn 1s ease-out;
}
