/* Base resets */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

/* Main container wrapper for large popup layout with two columns */
.wrapper {
  display: flex;
  flex-direction: row;
  height: 100vh;
}

/* Left column for main controls (flex-grow takes remaining space) */
.main-content {
  flex-grow: 1;
  padding: 12px;
  overflow-y: auto;
}

/* Right column for playback panel */
.playback {
  width: 400px;
  padding: 12px;
  background-color: #f2f2f2;
  border-left: 1px solid #ddd;
  box-sizing: border-box;
}

/* Playback video styling */
#playbackVideo {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-color: #000;
  margin-bottom: 10px;
}

/* Header style */
h2, h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: #333;
}

.compact-header {
  font-size: 18px;
  margin-bottom: 6px;
}

/* Container for settings and controls */
.container, .options, .controls, .donation-container, .footer {
  margin-bottom: 10px;
}

/* Compact versions */
.compact {
  margin-bottom: 8px;
}

.compact-option {
  margin-top: 6px;
}

/* Form elements for text, number inputs and selects */
select,
input[type="text"],
input[type="number"] {
  padding: 6px;
  border-radius: 4px;
  border: 1px solid #ddd;
  width: 100%;
  box-sizing: border-box;
}

/* Custom styling for checkboxes */
input[type="checkbox"] {
  width: auto;
  margin-right: 5px;
  vertical-align: middle;
}

/* Individual form control groups */
.options > div,
.controls > div {
  margin-bottom: 6px;
}

/* Controls Section: styling buttons inside .controls */
.controls button {
  width: 100%;
  padding: 8px;
  background-color: #4285f4;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.controls button:hover {
  background-color: #3367d6;
}

.controls button:disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
}

/* Donation container styling */
.donation-container {
  margin-top: 15px;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #eee;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.donation-container h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: #333;
  font-size: 16px;
}

.donation-container p {
  margin-bottom: 12px;
  color: #555;
  font-size: 13px;
  line-height: 1.4;
}

/* Donation button styling */
.donation-btn {
  background-color: white;
  color: #253b80;
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  width: auto;
  margin: 10px auto;
}

.donation-btn:hover {
  background-color: #f5f5f5;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.donation-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Policy link in donation container */
.policy-link {
  font-size: 11px !important;
  margin-top: 8px !important;
  margin-bottom: 0 !important;
  color: #777 !important;
}

/* Footer styles */
.footer {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

/* Link button style */
.link-btn {
  background: none;
  border: none;
  color: #4285f4;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.custom-input-container {
  display: inline-block;
  width: 200px; /* Match the width of your select elements */
}

.custom-input-container input {
  width: 100%;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ddd;
  box-sizing: border-box;
}
/* Custom resolution container */
.custom-resolution {
  display: none;
  margin-bottom: 10px;
}

.custom-label {
  width: 60px; /* Or match your .field label width if you want perfect alignment */
  display: inline-block;
  text-align: right;
}

/* Timer display */
.timer {
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  margin: 10px 0;
  color: #333;
}

/* Status message */
.status {
  padding: 8px;
  margin: 8px 0;
  border-radius: 4px;
  background-color: #e6f7ff;
  color: #333;
  font-size: 13px;
}

/* Modal styling */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  animation: fadeIn 0.3s;
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 600px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.3s;
  max-height: 90vh;
  overflow-y: auto;
}

.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.close-button:hover {
  color: #333;
}

/* Animations */
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

@keyframes slideIn {
  from {transform: translateY(-50px); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}

/* Policy content styling */
.policy-content {
  line-height: 1.5;
  font-size: 14px;
}

.policy-content h4 {
  margin-top: 16px;
  margin-bottom: 8px;
  color: #333;
}

.policy-content ul {
  margin-bottom: 12px;
}

.policy-footer {
  margin-top: 16px;
  padding-top: 8px;
  border-top: 1px solid #eee;
  font-size: 12px;
  color: #777;
}

/* PayPal logo styling */
.paypal-logo {
  max-width: 124px;
  height: auto;
}

.field {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.field label {
  width: 90px; /* Set a fixed width for labels */
  display: inline-block;
}

.field .tooltip {
  margin-left: 5px;
  cursor: pointer;
}

.field select {
  width: 200px; /* Set a fixed width for select elements */
  padding: 6px;
  border-radius: 4px;
  border: 1px solid #ddd;
  box-sizing: border-box;
}

/* Tooltip container */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
  margin-left: 5px;
}

/* Tooltip text */
.tooltip .tooltiptext {
  visibility: hidden;
  width: 200px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 1000;
  top: 150%;      /* Position below the icon */
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
}

/* Show the tooltip on hover */
.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}
