/* Fix for C2PA playbar dot position */
.video-js .vjs-play-progress::before {
    font-size: 1.5em;
    line-height: 1em !important;  /* Fix the vertical position */
    top: -0.2em !important;  /* Adjusted position - moved up by 1px */
    z-index: 100;
}

/* Additional fixes for C2PA UI */
.video-js .vjs-control-bar {
    z-index: 10;
}

/* Make C2PA menu larger and more visible */
.c2pa-menu-button .vjs-menu {
    min-width: 300px !important;
}

/* Fix for icon positioning */
.c2pa-menu-button .vjs-chapters-button .vjs-icon-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure C2PA controls are visible */
.video-js .vjs-control {
    width: 4em;
}

/* Critical fix for C2PA timeline segments */
.seekbar-play-c2pa {
    position: absolute;
    top: 0;
    height: 100%;
    z-index: 2;
}

/* Make C2PA status colors more visible */
:root {
    --c2pa-passed: rgb(42, 122, 243) !important;
    --c2pa-failed: #d31510 !important;
    --c2pa-unknown: rgb(172, 172, 172) !important;
}

/* Force C2PA logo visibility */
.c2pa-menu-button .vjs-chapters-button[aria-expanded="false"] .vjs-icon-placeholder {
    width: 36px !important;
    height: 22px !important;
    background: url('/c2pa/assets/icons/cr-icon.svg') center center no-repeat !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Ensure C2PA timeline is visible */
.video-js .vjs-load-progress, .video-js .C2PALoadProgressBar {
    display: block !important;
    visibility: visible !important;
}

/* Page-specific button styles */
.vt-page-button {
    padding: 8px 16px;
    background-color: #4169e1;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    margin-bottom: 10px;
}

.vt-page-button:hover {
    background-color: #3a5ecc;
}

.vt-page-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

@media (min-width: 768px) {
    .vt-page-button {
        width: auto;
    }
}

/* Custom class selectors for third-party widgets */

/* Video.js custom styles */
.vt-video-js .vjs-control-bar {
  background-color: rgba(0, 0, 0, 0.7);
}

.vt-video-js .vjs-progress-control {
  color: rgb(172, 172, 172);
}

.vt-video-js .vjs-progress-holder .vjs-play-progress {
  background-color: rgb(172, 172, 172);
}

.vt-video-js .vjs-play-progress::before {
  font-size: 1.5em;
  line-height: 0.5em;
  z-index: 100;
}

.vt-video-js .vjs-play-progress:after {
  font-size: 1.5em;
  line-height: 0.5em;
  z-index: 1;
}

.vt-video-js .vjs-slider {
  height: 0.7em;
}

.vt-video-js .vjs-volume-level {
  height: 0.7em;
}

.vt-video-js .vjs-volume-level::before {
  font-size: 1.5em;
  z-index: 3;
}

/* C2PA menu button styles */
.vt-c2pa-menu-button .vjs-chapters-button[aria-expanded="false"] .vjs-icon-placeholder {
  width: 36px;
  height: 22px;
  background: url('/c2pa/assets/icons/cr-icon.svg') center center no-repeat;
}

.vt-c2pa-menu-button .vjs-chapters-button[aria-expanded="true"] .vjs-icon-placeholder {
  width: 36px;
  height: 22px;
  background: url('/c2pa/assets/icons/cr-icon-whitebg.svg') center center no-repeat;
}

.vt-c2pa-menu-button .vt-c2pa-menu-button-invalid[aria-expanded="false"] .vjs-icon-placeholder {
  width: 36px;
  height: 22px;
  background: url('/c2pa/assets/icons/cr-invalid.svg') center center no-repeat;
}

.vt-c2pa-menu-button .vt-c2pa-menu-button-invalid[aria-expanded="true"] .vjs-icon-placeholder {
  width: 36px;
  height: 22px;
  background: url('/c2pa/assets/icons/cr-invalid-whitebg.svg') center center no-repeat;
}

/* C2PA menu styles */
.vt-c2pa-menu .vjs-menu {
  left: 0em;
}

.vt-c2pa-menu .vjs-menu .vjs-menu-content {
  font-family: 'Plus Jakarta Sans', sans-serif;
  max-height: none;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 1.25rem;
}

.vt-c2pa-menu .vjs-menu li.vjs-menu-title {
  display: flex;
  justify-content: left;
  text-transform: none;
  font-size: 1.2rem;
  border-bottom: 0.063rem solid #ffffff;
  padding-bottom: 0.313rem;
  margin: 0;
  width: 13.438rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
}

.vt-c2pa-menu .vjs-menu li.vjs-menu-item {
  display: flex;
  justify-content: left;
  text-transform: none;
  font-size: 1rem;
  border-top: 0.063rem solid #ffffff;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  width: 13.438rem;
  cursor: default;
  white-space: pre-wrap;
  text-align: left;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 400;
  font-size: 0.75rem;
}

.vt-c2pa-menu .vjs-menu li.vjs-menu-item:last-child {
  border-top: none;
}

.vt-c2pa-menu .vjs-menu li.vjs-menu-item:hover,
.vt-c2pa-menu .js-focus-visible .vjs-menu li.vjs-menu-item:hover {
  background: none;
}

/* C2PA menu item styles */
.vt-c2pa-menu-item .itemName {
  font-weight: 700;
  padding-bottom: 4px;
}

.vt-c2pa-menu .url {
  color: #4b9cf5;
}

.vt-c2pa-menu-item .alert-div {
  width: 100%;
  background-color: #d31510;
  padding: 10px;
  border-radius: 4px;
  display: flex;
  align-items: flex-start;
}

.vt-c2pa-menu-item .alert-icon {
  content: url('/c2pa/assets/icons/alert.svg');
  padding-right: 10px;
}

.vt-validation-padding {
  padding-bottom: 0px !important;
}

/* Friction overlay styles */
.vt-friction-overlay {
  position: absolute;
  bottom: 40px;
  left: 10px;
  background-color: rgba(160, 157, 157, 0.157);
  width: 40%;
  padding: 10px;
  border-radius: 5px;
  font-family: 'Verdana';
  font-size: 1em;
  color: #fff;
}

.vt-friction-overlay .vt-friction-button {
  background-color: #007bff;
  border-radius: 5px;
  padding: 5px;
  float: right;
}

/* C2PA progress bar styles */
.vt-seekbar-play-c2pa {
  position: absolute;
  top: 0;
  height: 100%;
}