/* General Layout */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f9f9f9;
  color: #333;
  margin: 0;
  padding: 0;
}

#pageBackground {
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
}

/* Intro section */
.intro {
  margin-bottom: 2rem;
  text-align: center;
}

#nada-intro h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

#nada-intro p {
  font-size: 1.1rem;
  color: #555;
}

/* Add Video Button & Form */
#add-video {
  margin-top: 1rem;
  text-align: center;
}

.btn-add {
  background-color: #1e90ff;
  color: white;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  margin-bottom: 1rem;
  cursor: pointer;
}

.btn-add:hover {
  background-color: #006fd6;
}

#add {
  margin-top: 1rem;
  padding: 1.5rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: none;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

#add h2 {
  margin-top: 0;
  font-size: 1.5rem;
}

#add .row {
  margin-bottom: 1rem;
  text-align: left;
}

#add label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

#add input[type="text"] {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.add-btns {
  display: flex;
  justify-content: space-between;
}

.btn-submit, .btn-cancel {
  padding: 0.5rem 1rem;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.btn-submit {
  background-color: #28a745;
  color: white;
}

.btn-submit:hover {
  background-color: #218838;
}

.btn-cancel {
  background-color: #dc3545;
  color: white;
}

.btn-cancel:hover {
  background-color: #c82333;
}

.save-edit {
  background-color: #23a802;
}

.cancel-edit {
  background-color: slategray;
}

/* Video Grid */
.video-container {
  margin-top: 2rem;
}

.video-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.admin-video-card {
  background-color: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.admin-video-card:hover {
  transform: translateY(-4px);
}

.video-frame-container iframe {
  border-radius: 8px;
  width: 100%;
  height: 180px;
}

.video-title {
  margin: 0.8rem 0 0.5rem;
  font-size: 1.1rem;
  text-align: center;
}

.video-title a {
  text-decoration: none;
  color: #007bff;
}

.video-title a:hover {
  text-decoration: underline;
}

/* Buttons */
.buttons {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.left-buttons,
.right-buttons {
  width: 100%;
  display: flex;
  justify-content: space-between;

  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-edit {
  background: rgb(46, 76, 248);
  color: #fff;
}

.btn-delete {
  background: rgb(247, 56, 56);
  color: #fff;
}

.db-copy-button {
  background: #23a802;
  color: #fff;
}

.db-send-button {
  background: #e7395c;
  color: #fff;
}

.move-up, .move-down, .drag-handle {
  font-size: 1.2rem;
  color: black;
  padding: 0.3rem 0.6rem;
  background-color: whitesmoke;
  border-radius: 4px;
}
.move-up:hover, .move-down:hover {
  background-color: #ccc;
}

.edit-input {
  width: 100%;
  padding: 0.5rem;
  margin: 0.3rem 0;
  border-radius: 5px;
  border: 1px solid #ccc;
}