/**
 * @file
 * Styles for MediaValet remote URL field integration.
 */

.mediavalet-remote-button-wrapper {
  margin-top: 10px;
  margin-bottom: 10px;
}

.mediavalet-remote-url-button {
  background: #0073aa;
  color: white;
  border: 1px solid #005177;
  border-radius: 3px;
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.mediavalet-remote-url-button:hover {
  background: #005177;
  color: white;
}

.mediavalet-remote-url-button:focus {
  outline: 2px solid #005177;
  outline-offset: 2px;
}

.mediavalet-remote-url-button.active {
  background: #46b450;
  border-color: #46b450;
}

.mediavalet-remote-url-button.active:hover {
  background: #0085ba;
}

/* Ensure proper spacing in form items */
.form-item .mediavalet-remote-button-wrapper {
  margin-top: 5px;
  text-align: left;
}

/* Media library specific styles */
.mediavalet-remote-url-library-button {
  background: #0073aa;
  color: white;
  border: 1px solid #005177;
  border-radius: 3px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 5px;
}

.mediavalet-remote-url-library-button:hover {
  background: #005177;
  color: white;
}

.mediavalet-remote-url-library-button:focus {
  outline: 2px solid #005177;
  outline-offset: 2px;
}

.mediavalet-remote-url-library-button.active {
  background: #46b450;
  border-color: #46b450;
}

.mediavalet-remote-url-library-button.active:hover {
  background: #0085ba;
}

/* Dialog styles */
.ui-dialog .mediavalet-iframe {
  width: 100%;
  height: 100%;
  border: none;
  min-height: 500px;
}

/* Readonly time field styling - make it look disabled */
input[type="time"].is-readonly {
  background-color: #f5f5f5;
  color: #888;
  cursor: not-allowed;
  opacity: 0.7;
  border-color: #ddd;
}

input[type="time"].is-readonly:hover {
  background-color: #f5f5f5;
  border-color: #ddd;
}

input[type="time"].is-readonly:focus {
  outline: none;
  box-shadow: none;
}

/* Readonly text/textarea field styling for media type - make it look disabled */
input[type="text"].is-readonly-text,
textarea.is-readonly-text {
  background-color: #f5f5f5;
  color: #888;
  cursor: not-allowed;
  opacity: 0.7;
  border-color: #ddd;
}

input[type="text"].is-readonly-text:hover,
textarea.is-readonly-text:hover {
  background-color: #f5f5f5;
  border-color: #ddd;
}

input[type="text"].is-readonly-text:focus,
textarea.is-readonly-text:focus {
  outline: none;
  box-shadow: none;
}
