* {
  box-sizing: border-box;
}
/* General settings */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #ccc;
  overflow: hidden;
  font-family: 'Roboto', sans-serif;
}
  
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #572a79;
  color: #fff;
  padding: 5px 20px;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-left .logo {
  height: 40px;
  margin-right: 10px;
}

.header-right {
  display: flex;
  align-items: center;
}
    
main {
  position: relative;
  padding: 5px 0px 5px 0px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}
  
/* Styles for the search field */
.search-container {
  margin-bottom: 10px;
  padding: 0 2px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: linear-gradient(145deg, rgba(30, 30, 30, 0.9), rgba(20, 20, 20, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 12px;
  transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(33, 150, 243, 0.2);
}

.search-icon {
  color: #fff;
  font-size: 0.9rem;
  margin-right: 8px;
}

#searchInput {
  flex: 1;
  background: none;
  border: none;
  color: #fff;
  font-size: 0.9rem;
  padding: 4px 0;
  outline: none;
}

#searchInput::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

.clear-search {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  display: none;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.clear-search:hover {
  opacity: 1;
}

.clear-search.visible {
  display: block;
}

/* Button area start */
.stylish-button {
  background-color: #4CAF50; /* Green background */
  border: none; /* Remove border */
  color: white; /* White text */
  padding: 10px; /* Some padding */
  min-width: 130px;
  text-align: center; /* Centered text */
  text-decoration: none; /* Remove underline */
  display: inline-block; /* Get it to display inline */
  font-size: 14px; /* Increase font size */
  margin: 4px 2px; /* Some margin */
  cursor: pointer; /* Pointer/hand icon */
  border-radius: 5px; /* Rounded corners */
  transition: background-color 0.3s ease, transform 0.3s ease; /* Smooth transition for hover effect */
}
        
.stylish-button:hover {
  background-color: #45a049; /* Darker green on hover */
  transform: scale(1.1); /* Slightly increase the size */
}
        
.input-area {
  text-align: center;
  margin-bottom: 20px;
  background-color: #572a79;
  color: #ffffff;
}
.input-area input[type="file"],
.input-area input[type="text"] {    
  margin: 5px;
  background: linear-gradient(145deg, rgba(30, 30, 30, 0.9), rgba(20, 20, 20, 0.9));	 
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px;    
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.input-area button {
  padding: 8px 15px;
  margin: 5px;
  cursor: pointer;
}

.container {
  display: flex;
  height: calc(100vh - 100px); /* Adjust based on header height */
}

.left-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 300px;
  height: 93%;
  background: #fff;
  padding: 10px;
  margin: 5px;
  border: 1px solid #ccc;
  border-radius: 10px;
  overflow-y: auto;
  scrollbar-width: none; /* For Firefox */
}

.left-column::-webkit-scrollbar {
  display: none; /* For Chrome, Safari, and Opera */
}

.right-column {
  flex: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.channel-list {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
}

.channel {
  display: flex;
  align-items: center;
  padding: 10px;
  margin: 5px 0;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background 0.3s;
}

.channel:hover {
  background: #eaeaea;
}

.channel.selected {
  background: #d4d4d4;
  font-weight: bold;
}

.channel img {
  height: 30px;
  width: 30px;
  margin-right: 10px;
}

.video-player {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #ccc;
  position: relative;
}

video {
  width: 100%;
  height: 100%;
  margin-bottom: 40px;
  max-height: calc(100vh - 155px); /* Adjust based on header height */
  object-fit: contain;
  border-radius: 5px;
  z-index: 1;
}

.default-image {
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 155px); /* Adjust based on header height */
  object-fit: contain;
  border-radius: 10px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.stylish-select {
  margin: 10px auto;
  padding: 5px;
  font-size: 16px;
}

/* Popup Styles */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup.hidden {
  display: none;
}

.popup-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  position: relative;
}

.close {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 30px;
}

.link-list {
  list-style: none;
  padding: 0;
}

.link-list li {
  margin: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qr-code {
  width: 200px;
  height: 200px;
  margin: 10px auto;
}

.donation-grid {
  display: flex;
  justify-content: center;
  text-align: center;
}

.donation-item {
  flex: 1;
}

/* Responsive Styles */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
  }
  
  .container {
    flex-direction: column;
  }

  .left-column {
    max-width: 100%;
    height: auto;
    margin: 0 0 10px 0;
  }

  .right-column {
    width: 100%;
  }

  .video-player {
    width: 100%;
    height: auto;
    margin-bottom: 60px;
  }
}
