/* Videocast Author Modal Styles */

.author-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.author-modal-content {
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 10000;
}

.author-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.author-modal-header h2 {
  margin: 0;
  font-size: 1.5em;
  color: #333;
}

.author-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #666;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.author-modal-close:hover {
  color: #333;
}

.author-form {
  padding: 20px;
}

.author-form .form-item {
  margin-bottom: 15px;
}

.author-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #333;
  font-size: 0.95em;
}

.author-form input[type="text"],
.author-form input[type="url"],
.author-form input[type="file"],
.author-form textarea,
.author-form select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95em;
  box-sizing: border-box;
}

.author-form input[type="text"]:focus,
.author-form input[type="url"]:focus,
.author-form input[type="file"]:focus,
.author-form textarea:focus,
.author-form select:focus {
  outline: none;
  border-color: #008cba;
  box-shadow: 0 0 5px rgba(0, 140, 186, 0.3);
}

.author-form textarea {
  resize: vertical;
  font-family: inherit;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: flex-end;
  border-top: 1px solid #e0e0e0;
  padding-top: 15px;
}

.form-actions .button {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.95em;
  font-weight: 600;
}

.form-actions .button-primary {
  background-color: #008cba;
  color: white;
}

.form-actions .button-primary:hover {
  background-color: #007399;
}

.form-actions .button {
  background-color: #f0f0f0;
  color: #333;
}

.form-actions .button:hover {
  background-color: #e0e0e0;
}

.add-author-modal-trigger {
  background-color: #008cba;
  color: white;
  padding: 8px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
}

.add-author-modal-trigger:hover {
  background-color: #007399;
}

/* Responsive design */
@media (max-width: 600px) {
  .author-modal-content {
    width: 95%;
    max-height: 80vh;
  }

  .author-modal-header {
    padding: 15px;
  }

  .author-form {
    padding: 15px;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .button {
    width: 100%;
  }
}
