/* upload.css */

.upload-container {
  background-color: rgba(30, 30, 30, 0.8);
  border: 1px solid #333;
  border-radius: 10px;
  padding: 30px;
  margin: 40px auto;
  max-width: 700px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.upload-container h2 {
  color: #FFD700;
  margin-bottom: 25px;
  font-size: 1.8em;
}

#videoFileInput {
  width: calc(100% - 20px);
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #555;
  border-radius: 6px;
  background-color: #2a2a2a;
  color: #eee;
  cursor: pointer;
  font-size: 1em;
}

#videoFileInput::-webkit-file-upload-button {
  background-color: #FFD700;
  color: #1a1a1a;
  padding: 8px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-right: 15px;
  transition: background-color 0.3s ease;
}

#videoFileInput::-webkit-file-upload-button:hover {
  background-color: #e0bb00;
}


#uploadVideoBtn {
  background-color: #FFD700;
  color: #1a1a1a;
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 10px;
}

#uploadVideoBtn:not([disabled]):hover {
  background-color: #e0bb00;
  transform: translateY(-2px);
}

#uploadVideoBtn[disabled] {
  background-color: #555;
  cursor: not-allowed;
  opacity: 0.7;
}

.message {
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 5px;
  font-weight: 500;
  color: #fff;
  background-color: #333; /* Default for info */
  min-height: 20px; /* Ensures space even if empty */
}

.message.info {
  background-color: #2196F3; /* Blue */
}

.message.success {
  background-color: #4CAF50; /* Green */
}

.message.error {
  background-color: #F44336; /* Red */
}

.progress-bar-container {
  width: 100%;
  background-color: #333;
  border-radius: 5px;
  margin-top: 20px;
  height: 25px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background-color: #FFD700;
  border-radius: 5px;
  text-align: center;
  line-height: 25px;
  color: #1a1a1a;
  font-weight: bold;
  transition: width 0.3s ease;
}

.progress-bar-fill.progress-error {
  background-color: #F44336; /* Red for error */
  color: #fff;
}

.upload-note {
  font-size: 0.9em;
  color: #aaa;
  margin-top: 20px;
  line-height: 1.5;
}

/* Video Gallery Styling */
.video-gallery {
  margin-top: 50px;
  background-color: rgba(30, 30, 30, 0.8);
  border: 1px solid #333;
  border-radius: 10px;
  padding: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.video-gallery h2 {
  color: #FFD700;
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.8em;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  justify-content: center;
}

.video-item {
  background-color: #1a1a1a;
  border: 1px solid #444;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}

.video-item:hover {
  transform: translateY(-5px);
}

.video-item video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0; /* Override global video border-radius */
  box-shadow: none; /* Override global video box-shadow */
}

.video-item h3 {
  color: #FFD700;
  font-size: 1.2em;
  padding: 15px;
  margin: 0;
  text-align: center;
}

.video-item p {
  color: #ccc;
  font-size: 0.9em;
  padding: 0 15px 15px;
  margin: 0;
  text-align: center;
}

.video-item.pending-upload {
    border-color: #2196F3; /* Blue border for pending */
    background-color: rgba(33, 150, 243, 0.1);
}

#noVideosMessage {
    text-align: center;
    color: #aaa;
    font-size: 1.1em;
    padding: 20px;
}

