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

/* Variables */
:root {
  --background: #f7f7f7;
  --text-color: #616161;
  --form-bg: linear-gradient(145deg, #ffffff, #ff000063);
  --input-bg: linear-gradient(145deg, #f9f9f9, #f7f7f7);
  --input-focus-bg: #fff;
  --button-bg: linear-gradient(145deg, #ff9900,#ff6600, #ff0000);
  --button-hover-bg: linear-gradient(145deg, #ff2600, #b40000);
  --sidebar-bg: #2a2a2a;
  --sidebar-text: #fff;
  --sidebar-hover-bg: #fc0000;
  --highlight-color: #ff6347;
  --preview-bg: linear-gradient(145deg, #ffffff, #ff2600);
  --shadow-light: rgba(238, 4, 4, 0.1);
  --shadow-dark: rgba(0, 0, 0, 0.301);
  .select-field{
    color: #5c5c5c;
  }
}

/* Theme: Dark */
[data-theme="dark"] {
  --background: #111111;
  --text-color: #ff0000;
  --form-bg: linear-gradient(145deg, #1e1e1e, #77000093);
  --input-bg: #313131;
  --input-focus-bg: #dddada;
  --button-bg: linear-gradient(145deg, #ff6600, #ff0000);
  --button-hover-bg: linear-gradient(145deg, #ff2600, #b40000);
  --sidebar-bg: #1c1c1c;
  --sidebar-text: #cccccc;
  --sidebar-hover-bg: #333;
  --highlight-color: #e85d04;
  --preview-bg: linear-gradient(145deg, #1e1e1e, #ff0000);
  --shadow-light: rgba(112, 0, 0, 0.685);
  --shadow-dark: rgba(43, 0, 0, 0.7);
  .select-field{
    color: #b8b8b8;
  }
}

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

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

/* Forms */
form {
  background: var(--form-bg);
  border-radius: 1rem;
  padding: 2rem;
  max-width: 1500px;
  margin: auto;
  margin-top: 2%;
  margin-bottom: 8%;
  box-shadow: 8px 8px 15px var(--shadow-light), -8px -8px 15px var(--shadow-dark);
  transition: transform 0.3s;
}

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

label {
  font-weight: bold;
  margin-bottom: 0.5rem;
  display: block;
  color: var(--text-color);
}

input, select {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 1rem;
  background: var(--input-bg);
  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;
  cursor: pointer;
  box-shadow: 4px 4px 8px var(--shadow-light),
              -4px -4px 8px var(--shadow-dark);
  margin-top: 1.5rem;
  transition: background 0.3s, transform 0.2s;
}

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

button:active {
  transform: scale(0.98);
}
#previewLogo{
  max-width: 25%;
  min-width: 150px;
}
#previewStreamUrl{
  width: 90%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: center;
  overflow: hidden;
}
/* Sidebar */
#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;
  z-index: 1000;

  background-image: url('https://i.postimg.cc/PqDM77h2/Direct-TV.png');
  background-repeat: no-repeat;
  background-position: bottom;
  margin-bottom: 10px; /* Fixed property */
  background-size: 75%;
  opacity: 0.9; /* Fixed property */
}

#sidebarMenu.open {
  left: 0;
}

#menuClose {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 20px;
  background: none;
  border: none;
  color: white;
  display: none;
}

#menuClose.show {
  display: block;
}


/* Header Styling */
header {
  background-color: #1a1a1a; /* Dark background for a premium look */
  color: white; /* White text for contrast */
  padding: 10px 20px; /* Adjust padding for spacing */
  display: flex; /* Use flexbox to align items in a row */
  justify-content: space-between; /* Space out menu button and logo */
  align-items: center; /* Vertically center the items */
  border-bottom: 2px solid #f39c12; /* Accent color for a sleek divider */
  margin-bottom: 6%;
}

header .menu-button {
  font-size: 24px; /* Size of the menu button */
  color: white; /* Button color */
  cursor: pointer; /* Pointer cursor on hover */
  display: flex; /* To make the button aligned with the logo */
}

header img {
  height: 100px; /* Increase logo size */
  width: auto; /* Maintain aspect ratio */
  max-width: 100%; /* Ensure logo resizes with the container */
}

header h1 {
  font-size: 24px; /* Add a title below the logo */
  font-weight: 600;
  margin: 0;
  display: none; /* Hide title, only logo and button are visible */
}

/* Responsive Header for Mobile Devices */
@media (max-width: 768px) {
  header {
    padding: 10px 15px; /* Reduce padding for smaller screens */
  }

  header .menu-button {
    font-size: 20px; /* Adjust menu button size for mobile */
  }

  header img {
    height: 80px; /* Slightly smaller logo for mobile */
  }

  header h1 {
    font-size: 18px; /* Optional, if title should appear on mobile */
  }
}
/* Footer Styling */
footer {
  background-color: #1a1a1a; /* Dark background */
  color: white; /* White text for contrast */
  padding: 15px 20px; /* Adjust padding for spacing */
  display: flex; /* Use flexbox to arrange items horizontally */
  justify-content: space-between; /* Space out logo and text */
  align-items: center; /* Vertically center the items */
  border-top: 2px solid #f39c12; /* Accent color for a divider */
  margin-top: 65px;
}

footer img {
  height: 50px; /* Adjust logo size */
  width: auto; /* Maintain aspect ratio */
  max-width: 100%; /* Ensure logo resizes dynamically */
}

footer .footer-text {
  font-size: 14px; /* Text size for the footer */
  font-weight: 400;
}

footer .footer-text a {
  color: white; /* Link color */
  text-decoration: none; /* Remove underline */
}

footer .footer-text a:hover {
  text-decoration: underline; /* Underline on hover */
}

/* Responsive Footer for Mobile Devices */
@media (max-width: 768px) {
  footer {
    flex-direction: column; /* Stack items vertically on mobile */
    padding: 10px 15px; /* Reduce padding for smaller screens */
    text-align: center; /* Center the text */
  }

  footer img {
    height: 40px; /* Slightly smaller logo on mobile */
  }

  footer .footer-text {
    font-size: 12px; /* Smaller text for mobile */
  }
}
