/* Unified C2PA DASH Workflow Styles */
/* This file contains all CSS styles for the unified workflow application */

h2 {
  margin-bottom: 10px;
}

/* H4 margin styling */
h4 {
  margin-bottom: 10px;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  padding: 20px;
  background-color: #f8f9fa;
}

/* Alpine.js x-cloak directive */
[x-cloak] {
  display: none !important;
}

.container {
  max-width: 1200px;
  padding: 0 15px;
}

/* Accordion body styling */
.accordion-body {
  background: #f8f9fa !important;
  padding: 20px !important;
  min-height: 400px !important;
}

.step-container {
  background: white !important;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  min-height: 100px;
  border: 1px solid #e0e0e0;
  display: block !important;
  visibility: visible !important;
}

.accordion-button:not(.collapsed) {
  background-color: #e7f1ff;
  color: #4169e1;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(0, 0, 0, 0.125);
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%234169E1'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background-color: #4169e1;
  color: white;
  border-radius: 50%;
  font-weight: bold;
  margin-right: 10px;
  font-size: 14px;
}

video {
  width: 100%;
  height: 100%;
  display: block;
  margin: 0;
  border-radius: 8px;
  object-fit: contain;
}

.video-container {
  position: relative;
  width: 100%;
  margin: 10px 0;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
  aspect-ratio: 16/9;
}

.control-panel {
  display: flex !important;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  background: #f8f9fa !important;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  visibility: visible !important;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input {
  width: 100% !important;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white !important;
  min-height: 40px;
  display: block !important;
  visibility: visible !important;
}

.form-group select {
  width: 100% !important;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white !important;
  min-height: 40px;
  display: block !important;
  visibility: visible !important;
}

.form-check {
  display: block !important;
  visibility: visible !important;
  margin-bottom: 10px;
}

.form-check-input {
  display: inline-block !important;
  visibility: visible !important;
}

.form-check-label {
  display: inline-block !important;
  visibility: visible !important;
  margin-left: 5px;
}

.vt-page-button {
  padding: 12px 24px;
  background-color: #4169e1;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-weight: 500;
  font-size: 16px;
  width: 100%;
  margin-bottom: 10px;

  &.button-secondary {
    background-color: #6c757d;
    color: white;
  }
}

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

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

.output {
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  padding: 15px;
  min-height: 120px;
  overflow-y: auto;
  font-family: monospace;
  white-space: pre-wrap;
  margin-top: 10px;
  font-size: 12px;
  border-radius: 4px;
}

.header-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.header-logo img {
  max-height: 40px;
}

h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 10px 20px;
  border-radius: 5px;
  z-index: 1000;
}

.api-status {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
}

.api-message {
  margin-top: 5px;
  font-style: italic;
  color: #666;
}

.assertions-form {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.assertions-form h3 {
  margin-bottom: 20px;
  color: #333;
}

/* Map styles */
.map-container {
  width: 100%;
  height: 300px;
  border: 1px solid #ddd;
  margin: 10px 0;
  position: relative;
  background-color: #f8f9fa;
  border-radius: 8px;
}

#createLocationMap,
#modifyLocationMap {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  min-height: 300px;
}

.coordinates-display {
  margin-top: 10px;
  font-size: 14px;
  color: #666;
  background-color: #f8f9fa;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #dee2e6;
  text-align: center;
}

.url-input-group {
  margin-bottom: 15px;
}

.url-input-group .form-check {
  margin-bottom: 10px;
}

#manualUrlInput {
  display: none;
}

#sourceStreamSelect {
  display: block;
}

.url-input-group[data-input-type="manual"] #manualUrlInput {
  display: block;
}

.url-input-group[data-input-type="manual"] #sourceStreamSelect {
  display: none;
}

.video-js {
  width: 100% !important;
  height: 100% !important;
}

.video-js .vjs-tech {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.new-endpoint-display {
  margin-top: 15px;
  padding: 12px;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  font-size: 14px;
}

.new-endpoint-display strong {
  color: #495057;
  min-width: 100px;
}

#newEndpointURL {
  color: #0d6efd;
  font-family: monospace;
  word-break: break-all;
  flex: 1;
}

.copy-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #9ca3af;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.copy-btn:hover {
  color: #4b5563;
}

.copy-btn .w-4 {
  width: 1rem;
  height: 1rem;
}

.copy-btn .h-4 {
  width: 1rem;
  height: 1rem;
}

/* Form layout styles */
/* Responsive form layout */
.assertions-form .row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -10px;
  margin-right: -10px;
  margin-bottom: 20px;
}

.assertions-form .col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding-right: 10px;
  padding-left: 10px;
  margin-bottom: 15px;
}

.assertions-form .col-md-6:first-child {
  padding-left: 0;
}

.assertions-form .col-md-6:last-child {
  padding-right: 0;
}

/* Responsive behavior for smaller screens */
@media (max-width: 768px) {
  .assertions-form .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 20px;
  }
  
  .assertions-form .col-md-6:first-child {
    padding-left: 0;
  }
  
  .assertions-form .col-md-6:last-child {
    padding-right: 0;
  }
}

/* Additional responsive improvements for very small screens */
@media (max-width: 480px) {
  .assertions-form .form-group {
    margin-bottom: 15px;
  }
  
  .assertions-form .form-group input,
  .assertions-form .form-group select {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 10px;
  }
}

.assertions-form .form-group {
  margin-bottom: 20px;
}

.assertions-form .form-group:last-child {
  margin-bottom: 0;
}

/* Verification specific styles */
.result-container {
  background: white;
  padding: 2px;
  margin-top: 20px;
  display: none;
}

.result-section {
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #4169e1;
  background-color: #f8f9fa;
}

.result-section h4 {
  margin-bottom: 10px;
  color: #4169e1;
  font-size: 16px;
  font-weight: 600;
}

.result-section.highlight {
  background-color: #e7f1ff;
  border-left-color: #28a745;
}

.result-section.highlight h4 {
  color: #28a745;
}

.json-display {
  background-color: #2d3748;
  color: #e2e8f0;
  padding: 15px;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.4;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.status-indicator {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.status-success {
  background-color: #d4edda;
  color: #155724;
}

.status-error {
  background-color: #f8d7da;
  color: #721c24;
}

.status-warning {
  background-color: #fff3cd;
  color: #856404;
}

.status-info {
  background-color: #d1ecf1;
  color: #0c5460;
}

/* Provenance chain styles */
.provenance-chain {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 20px 0;
}

.provenance-step {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  position: relative;
  transition: all 0.3s ease;
}

.provenance-step.active {
  border-color: #28a745;
  background: linear-gradient(135deg, #f8fff9 0%, #e8f5e8 100%);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
}

.provenance-step.ingredient {
  border-color: #6c757d;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.provenance-step::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #e9ecef;
}

.provenance-step:last-child::after {
  display: none;
}

.provenance-step.active::after {
  border-top-color: #28a745;
}

.provenance-step.ingredient::after {
  border-top-color: #6c757d;
}

.manifest-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e9ecef;
}

.manifest-id {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: #495057;
  background: #f8f9fa;
  padding: 4px 8px;
  border-radius: 4px;
  word-break: break-all;
}

.manifest-type {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.manifest-type.active {
  background: #d4edda;
  color: #155724;
}

.manifest-type.ingredient {
  background: #d1ecf1;
  color: #0c5460;
}

.assertions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.assertion-card {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 12px;
  transition: all 0.2s ease;
  min-height: auto;
  word-wrap: break-word;
  overflow-wrap: break-word;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.assertion-card:hover {
  border-color: #4169e1;
  box-shadow: 0 2px 8px rgba(65, 105, 225, 0.1);
}

.assertion-label {
  font-weight: 600;
  color: #4169e1;
  margin-bottom: 8px;
  font-size: 14px;
}

.assertion-data {
  font-size: 12px;
  color: #495057;
  max-height: 150px;
  overflow-y: auto;
  background: white;
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #e9ecef;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  line-height: 1.4;
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
}

.assertion-type {
  display: inline-block;
  padding: 2px 6px;
  background: #e9ecef;
  color: #495057;
  border-radius: 3px;
  font-size: 10px;
  margin-left: 8px;
  text-transform: uppercase;
}

.assertion-type.standard {
  background: #d1ecf1;
  color: #0c5460;
}

.assertion-type.custom {
  background: #fff3cd;
  color: #856404;
}

.validation-summary {
  background: linear-gradient(135deg, #e7f1ff 0%, #d4edda 100%);
  border: 1px solid #28a745;
  border-radius: 8px;
  padding: 15px;
  margin: 20px 0;
}

.validation-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.validation-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
}

.validation-icon.success {
  background: #28a745;
  color: white;
}

.validation-icon.error {
  background: #dc3545;
  color: white;
}

.validation-icon.warning {
  background: #ffc107;
  color: #212529;
}

.ingredient-connection {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
  color: #6c757d;
  font-size: 14px;
}

.ingredient-connection::before,
.ingredient-connection::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #dee2e6;
}

.ingredient-connection span {
  background: white;
  padding: 0 15px;
  border: 1px solid #dee2e6;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

/* Collapsible section styles */
.collapsible-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.collapsible-header:hover {
  background-color: rgba(65, 105, 225, 0.05);
}

.collapsible-icon {
  transition: transform 0.2s ease;
  font-size: 16px;
  color: #4169e1;
}

.collapsible-icon.collapsed {
  transform: rotate(-90deg);
}

.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.collapsible-content.expanded {
  max-height: 2000px;
}

/* Full response specific styles */
.full-response-container {
  max-height: 500px;
  overflow-y: auto;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  background: #f8f9fa;
}

.full-response-container .json-display {
  margin: 0;
  border: none;
  border-radius: 0;
  max-height: none;
  overflow: visible;
}

/* Validation category styles */
.validation-category {
  margin-bottom: 20px;
}

.validation-category-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.validation-category-title.success {
  background: #d4edda;
  color: #155724;
}

.validation-category-title.failure {
  background: #f8d7da;
  color: #721c24;
}

.validation-category-title.informational {
  background: #d1ecf1;
  color: #0c5460;
}

.validation-category-count {
  background: rgba(255, 255, 255, 0.7);
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
}

/* Media queries */
@media (min-width: 768px) {
  .container {
    padding: 0 30px;
  }

  .vt-page-button {
    width: auto;
    min-width: 200px;
  }

  .video-container {
    max-width: 800px;
    margin: 10px auto;
  }
}

@media (max-width: 768px) {
  .assertions-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .assertion-card {
    padding: 10px;
    min-height: auto;
  }
  
  .assertion-label {
    font-size: 13px;
    margin-bottom: 6px;
    word-break: break-word;
  }
  
  .assertion-data {
    font-size: 11px;
    max-height: 120px;
    padding: 8px;
    overflow-x: hidden;
    word-break: break-word;
  }
  
  .assertion-type {
    font-size: 9px;
    padding: 1px 4px;
  }
}

@media (max-width: 480px) {
  .assertion-card {
    padding: 8px;
    min-height: auto;
  }
  
  .assertion-label {
    font-size: 12px;
    word-break: break-word;
  }
  
  .assertion-data {
    font-size: 10px;
    max-height: 100px;
    padding: 6px;
    overflow-x: hidden;
    word-break: break-word;
  }
}

/* Detailed validation results styles */
.validation-result-item {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

.validation-result-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.validation-result-item.success {
  border-left: 4px solid #28a745;
  background: linear-gradient(135deg, #f8fff9 0%, #e8f5e8 100%);
}

.validation-result-item.failure {
  border-left: 4px solid #dc3545;
  background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
}

.validation-result-item.informational {
  border-left: 4px solid #17a2b8;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.validation-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.validation-result-code {
  font-family: 'Courier New', monospace;
  font-weight: 600;
  font-size: 13px;
  color: #495057;
}

.validation-result-status {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.validation-result-status.success {
  background: #d4edda;
  color: #155724;
}

.validation-result-status.failure {
  background: #f8d7da;
  color: #721c24;
}

.validation-result-status.informational {
  background: #d1ecf1;
  color: #0c5460;
}

.validation-result-explanation {
  font-size: 13px;
  color: #666;
  margin-bottom: 5px;
}

.validation-result-url {
  font-size: 11px;
  color: #999;
  font-family: 'Courier New', monospace;
  word-break: break-all;
}

.validation-category {
  margin-bottom: 20px;
}

.validation-category-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.validation-category-title.success {
  background: #d4edda;
  color: #155724;
}

.validation-category-title.failure {
  background: #f8d7da;
  color: #721c24;
}

.validation-category-title.informational {
  background: #d1ecf1;
  color: #0c5460;
}

.validation-category-count {
  background: rgba(255, 255, 255, 0.7);
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
}

/* Tooltip styles */
.validation-help-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: #4169e1;
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 16px;
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
  margin-left: 8px;
  vertical-align: middle;
  transition: background-color 0.2s ease;
}

.validation-help-icon:hover {
  background-color: #3a5ecc;
}

.validation-tooltip-container {
  position: relative;
  display: inline-block;
}

.validation-tooltip-text {
  visibility: hidden;
  width: 320px;
  background-color: #333;
  color: #fff;
  text-align: left;
  border-radius: 8px;
  padding: 16px;
  position: fixed;
  z-index: 9999;
  bottom: auto;
  top: auto;
  left: 50%;
  margin-left: -160px;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  border: 1px solid #555;
  max-height: 200px;
  overflow-y: auto;
}

.validation-tooltip-text::after {
  display: none;
}

.validation-tooltip-text.show {
  visibility: visible;
  opacity: 1;
}

.validation-result-header {
  position: relative;
}

/* API Inspector Styles */
.api-call-item {
  transition: all 0.2s ease;
}

.api-call-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.method-badge {
  font-family: 'Courier New', monospace;
  font-weight: bold;
}

.api-call-details {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 8px;
  margin-top: 8px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.api-call-step-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.api-call-status-success {
  background-color: #d4edda;
  color: #155724;
}

.api-call-status-error {
  background-color: #f8d7da;
  color: #721c24;
}

.api-call-status-pending {
  background-color: #fff3cd;
  color: #856404;
}

.api-call-method-get {
  background-color: #d4edda;
  color: #155724;
}

.api-call-method-post {
  background-color: #d1ecf1;
  color: #0c5460;
}

.api-call-method-patch {
  background-color: #ffeaa7;
  color: #856404;
}

.api-call-method-delete {
  background-color: #f8d7da;
  color: #721c24;
}

/* API Call Description Styles */
.api-call-description {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 2px;
}

.api-call-endpoint {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: #6b7280;
  word-break: break-all;
}

/* Video Player Control Bar Alignment */
.video-js .vjs-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.video-js .vjs-control-bar .vjs-control {
  flex-shrink: 0;
}

/* Left side controls */
.video-js .vjs-control-bar .vjs-play-control,
.video-js .vjs-control-bar .vjs-progress-control {
  order: 1;
}

/* Center progress bar */
.video-js .vjs-control-bar .vjs-progress-control {
  flex: 1;
  margin: 0 10px;
}

/* Right side controls */
.video-js .vjs-control-bar .vjs-current-time,
.video-js .vjs-control-bar .vjs-time-divider,
.video-js .vjs-control-bar .vjs-duration,
.video-js .vjs-control-bar .vjs-volume-panel,
.video-js .vjs-control-bar .vjs-picture-in-picture-control,
.video-js .vjs-control-bar .vjs-fullscreen-control {
  order: 2;
  margin-left: auto;
}

/* Ensure volume panel and fullscreen are grouped on the right */
.video-js .vjs-control-bar .vjs-volume-panel,
.video-js .vjs-control-bar .vjs-picture-in-picture-control,
.video-js .vjs-control-bar .vjs-fullscreen-control {
  margin-left: 8px;
}

/* API Inspector Refresh Button */
.api-refresh-btn {
  transition: all 0.2s ease;
}

.api-refresh-btn:hover {
  transform: rotate(180deg);
}

.api-refresh-btn:active {
  transform: rotate(180deg) scale(0.95);
}

/* Mobile Video.js fixes */
@media (max-width: 768px) {
  .video-js {
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
  }
  
  .video-js .vjs-control-bar {
    height: 3.5em;
    padding: 0.5em;
  }
  
  .video-js .vjs-play-control {
    font-size: 1.8em;
    width: 3em;
    height: 3em;
  }
  
  .video-js .vjs-progress-control {
    height: 0.5em;
  }
  
  .video-js .vjs-volume-panel {
    width: 4em;
  }
  
  .video-js .vjs-fullscreen-control {
    font-size: 1.5em;
    width: 3em;
    height: 3em;
  }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
  .video-js {
    -webkit-playsinline: true;
  }
  
  .video-js video {
    -webkit-playsinline: true;
    object-fit: contain;
  }
}

/* Safari-specific fixes */
.video-js {
  /* Force hardware acceleration for Safari */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Safari video element fixes */
.video-js video {
  /* Ensure proper video rendering in Safari */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  /* Fix Safari video controls */
  -webkit-appearance: none;
  appearance: none;
}

/* Safari control bar fixes */
.video-js .vjs-control-bar {
  /* Ensure controls are visible in Safari */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  z-index: 10;
}

/* Safari play button fixes */
.video-js .vjs-play-control {
  /* Ensure play button is clickable in Safari */
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

/* Chrome-specific fixes */
.video-js {
  /* Chrome hardware acceleration */
  will-change: transform;
  transform: translateZ(0);
}

/* Chrome video element fixes */
.video-js video {
  /* Chrome video rendering optimization */
  will-change: transform;
  transform: translateZ(0);
  /* Chrome-specific video fixes */
  -webkit-transform: translateZ(0);
}

/* Chrome control bar fixes */
.video-js .vjs-control-bar {
  /* Chrome control visibility */
  will-change: transform;
  transform: translateZ(0);
  z-index: 10;
}

/* Chrome play button fixes */
.video-js .vjs-play-control {
  /* Chrome play button optimization */
  will-change: transform;
  transform: translateZ(0);
  cursor: pointer;
  /* Remove Chrome's default button styling */
  -webkit-appearance: none;
  appearance: none;
}

/* Chrome mobile specific fixes */
@media (max-width: 768px) {
  .video-js {
    /* Chrome mobile touch optimization */
    touch-action: manipulation;
    -webkit-touch-callout: none;
  }
  
  .video-js .vjs-control-bar {
    /* Chrome mobile control bar */
    height: 3.5em;
    padding: 0.5em;
    /* Chrome mobile touch targets */
    -webkit-tap-highlight-color: transparent;
  }
}
