/* src/styles/App.module.css */

/* General container for the whole app */
.App-module__appContainer___QMFCH {
  font-family: sans-serif;
  padding: 20px;
  max-width: 1200px; /* Example max width */
  margin: 0 auto;
}

.App-module__appContainer___QMFCH h1 {
  text-align: center;
  margin-bottom: 20px;
}

/* Styles for the controls section */
.App-module__controlsContainer___Puw0A {
  margin-bottom: 20px;
  padding: 15px;
  background-color: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 5px;
  display: flex; /* Arrange controls in a row */
  flex-wrap: wrap; /* Wrap controls on smaller screens */
  gap: 15px; /* Space between control groups */
  align-items: center;
  justify-content: center; /* Center controls */
}

.App-module__controlGroup___KW3fa {
    display: flex;
    align-items: center;
    gap: 8px; /* Space between label and input/button */
}

.App-module__controlGroup___KW3fa label {
    font-weight: bold;
    white-space: nowrap; /* Prevent labels from wrapping */
    font-size: 0.9em; /* Smaller font for controls */
}

/* Style for input types */
.App-module__controlsContainer___Puw0A input[type="text"],
.App-module__controlsContainer___Puw0A input[type="number"],
.App-module__controlsContainer___Puw0A select {
    padding: 6px 8px; /* Adjusted padding */
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9em; /* Adjusted font size */
}

/* Specific width adjustments for inputs */
.App-module__controlsContainer___Puw0A input[type="text"] {
    min-width: 200px; /* Ensure URL input is wide enough */
    width: auto;
    flex-grow: 1; /* Allow URL input to grow */
}
.App-module__controlsContainer___Puw0A input[type="number"] {
    width: 60px; /* Fixed width for time inputs */
}
.App-module__controlsContainer___Puw0A input[type="range"] {
    flex-grow: 1; /* Allow slider to grow */
    min-width: 100px;
}
.App-module__controlsContainer___Puw0A span { /* For opacity percentage */
    font-size: 0.9em;
    min-width: 35px; /* Prevent layout shift */
    text-align: right;
}


.App-module__controlsContainer___Puw0A button {
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background-color: #0073aa; /* WordPress primary blue */
  color: white;
  font-size: 0.9em; /* Adjusted font size */
  transition: background-color 0.3s ease;
  white-space: nowrap; /* Prevent button text wrapping */
}

.App-module__controlsContainer___Puw0A button:hover:not(:disabled) {
  background-color: #005a87;
}

.App-module__controlsContainer___Puw0A button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

.App-module__controlsContainer___Puw0A button.App-module__activeControl___i1ZYg {
    background-color: #00a0d2; /* Highlight active layout button */
}

/* Optional: Button colors based on action */
.App-module__buttonPrimary___FAniB { background-color: #0073aa; }
.App-module__buttonWarning___COZq5 { background-color: #ffb900; } /* Yellow */
.App-module__buttonDanger___pEeL_ { background-color: #dc3232; } /* Red */
.App-module__buttonPrimary___FAniB:hover:not(:disabled) { background-color: #005a87; }
.App-module__buttonWarning___COZq5:hover:not(:disabled) { background-color: #f5a400; }
.App-module__buttonDanger___pEeL_:hover:not(:disabled) { background-color: #cc1818; }


.App-module__errorMessage___fo5t7 {
    color: #dc3232; /* WordPress primary red */
    font-size: 0.9em;
    margin-left: 10px;
    word-break: break-word; /* Allow long error messages to wrap */
}

/* Container for the dual view (YouTube + Webcam) */
.App-module__dualViewContainer___6NUE1 {
  position: relative;
  width: 100%;
  /* height and aspect ratio will be controlled by padding-bottom on this or inner elements */
  border: 1px solid #ddd;
  overflow: hidden;
  /* Default layout uses grid */
  display: grid;
  grid-template-columns: 1fr 1fr; /* Default side-by-side */
  gap: 10px; /* Space between grid items */
  align-items: start;
  background-color: black; /* Show black background if videos don't cover */

  /* Add aspect ratio to the container if layout requires it (e.g., Overlay) */
  /* layoutAlphaBlend will override this if needed */
}

/* Base styles for individual view panels ( wrappers around iframe/video) */
.App-module__viewPanel____fswm {
    position: relative; /* Needed for absolute positioning of iframe/video children */
    width: 100%; /* Default width within grid/container */

    /* 16:9 Aspect Ratio Trick */
    padding-bottom: 56.25%; /* 9 / 16 * 100% = 56.25% */
    height: 0; /* Required for padding-bottom trick */
    overflow: hidden; /* Hide content that goes beyond the padding */
    /* background-color: black; Moved background to container */
}

/* Style the actual iframe/video element inside the viewPanel */
.App-module__viewPanel____fswm iframe,
.App-module__viewPanel____fswm video {
    position: absolute; /* Position absolutely within the padded parent (.viewPanel) */
    top: 0;
    left: 0;
    width: 100%; /* Fill the parent */
    height: 100%; /* Fill the parent */
    object-fit: cover; /* Cover the area, cropping if necessary */
    object-position: center; /* Center the video/iframe content */
}


/* Specific layout: Side-by-Side (default) */
.App-module__layoutSideBySide___Ivdkw {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  /* The .viewPanel elements inside grid cells will use the padding-bottom trick */
  /* No specific aspect ratio on the container here, grid items handle their own */
  padding-bottom: 0; /* Ensure container doesn't have padding-bottom */
  height: auto; /* Ensure container height is automatic based on grid content */
  display: grid; /* Ensure grid is the display mode */
}
/* No extra styles needed for .viewPanel inside Side-by-Side as base styles apply */


/* Specific layout: Picture-in-Picture */
.App-module__layoutPictureInPicture___l7A2s {
  display: block; /* Revert to block layout */
  grid-template-columns: none; /* Disable grid */
  position: relative; /* Needed for PiP absolute positioning */
  width: 100%;
  /* Main view dictates container aspect ratio */
  padding-bottom: 56.25%; /* Maintain 16:9 ratio for the main view area */
  height: 0;
  overflow: hidden; /* Crucial */
}
.App-module__layoutPictureInPicture___l7A2s .App-module__viewPanel____fswm {
    /* Reset base .viewPanel aspect ratio trick as the container handles it */
    padding-bottom: 0;
    height: 100%; /* Fill the absolute parent */
    position: absolute; /* Position absolutely within the container */
    top: 0;
    left: 0;
}
.App-module__layoutPictureInPicture___l7A2s .App-module__viewPanel-1___N0MIz { /* YouTube (or primary) */
    z-index: 1;
    /* Takes full size of the container */
    width: 100%;
    height: 100%;
}
.App-module__layoutPictureInPicture___l7A2s .App-module__viewPanel-2___qgkvc { /* Webcam (or secondary) - PiP */
    z-index: 10; /* Ensure it's on top */
    /* Position and size the PiP element */
    bottom: 20px; /* Example position */
    right: 20px; /* Example position */
    width: 200px; /* Example size for PiP */
    /* Calculate PiP height based on its width and 16:9 ratio */
    height: calc(200px * 9 / 16);
    border: 2px solid white; /* Optional border */
    border-radius: 5px; /* Optional rounded corners */
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    overflow: hidden; /* Crucial for rounded corners/border */
    /* Ensure iframe/video inside fills this PiP panel */
}
/* Ensure children within PiP panel (iframe/video) fill it */
.App-module__layoutPictureInPicture___l7A2s .App-module__viewPanel-2___qgkvc iframe,
.App-module__layoutPictureInPicture___l7A2s .App-module__viewPanel-2___qgkvc video {
     /* These should inherit .viewPanel iframe, video styles, but double check */
     position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
}


/* Specific layout: Alpha Blending (Overlay) */
.App-module__layoutAlphaBlend___hXhC5 {
   display: block;
   grid-template-columns: none;
   position: relative; /* Needed for absolute positioning */
   width: 100%;
   /* Container dictates 16:9 aspect ratio */
   padding-bottom: 56.25%;
   height: 0;
   overflow: hidden; /* Crucial */
}
.App-module__layoutAlphaBlend___hXhC5 .App-module__viewPanel____fswm {
    /* Reset base .viewPanel aspect ratio trick as the container handles it */
    padding-bottom: 0;
    height: 100%; /* Fill the absolute parent */
    position: absolute; /* Position both absolutely on top of each other */
    top: 0;
    left: 0;
    width: 100%; /* Fill the container */
    height: 100%; /* Fill the container */
}
.App-module__layoutAlphaBlend___hXhC5 .App-module__viewPanel-1___N0MIz { /* YouTube */
    z-index: 1;
    /* opacity is controlled via inline style from React */
    /* mix-blend-mode: screen; // Apply blend mode if using CSS */
}
.App-module__layoutAlphaBlend___hXhC5 .App-module__viewPanel-2___qgkvc { /* Webcam */
    z-index: 2; /* Place webcam on top */
     /* opacity is controlled via inline style from React */
    /* mix-blend-mode: multiply; // Another blend mode example */
}
/* Ensure children within Overlay panels (iframe/video) fill it */
.App-module__layoutAlphaBlend___hXhC5 .App-module__viewPanel-1___N0MIz iframe,
.App-module__layoutAlphaBlend___hXhC5 .App-module__viewPanel-2___qgkvc video {
    /* These should inherit .viewPanel iframe, video styles, but double check */
     position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
}


/* Placeholder styles */
.App-module__playerPlaceholder___x_PaC,
.App-module__webcamPlaceholder___mX4T1 {
  /* Adjust placeholder styling to fit within the new aspect ratio container */
  position: absolute; /* Position absolutely like the videos */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex; /* Keep flex for centering content */
  justify-content: center;
  align-items: center;
  background-color: rgba(0,0,0,0.8); /* Darker background for text */
  color: #ccc;
  font-size: 1.2em;
  text-align: center;
  padding: 20px;
  z-index: 5; /* Ensure placeholders are above backgrounds but below videos */
}

/* Webcam Video Specific Style */
.App-module__webcamVideo___M5WxR {
    /* Styles handled by .viewPanel video rule, but .mirrored is specific */
}

/* Webcam Mirror Mode */
.App-module__mirrored___nT0Oc {
  transform: scaleX(-1); /* Flip horizontally */
}

/* Recording Status */
.App-module__recordingStatus___vubpi {
    text-align: center;
    color: #0073aa;
    font-weight: bold;
    margin-top: 10px;
}
.App-module__error___mlAf4 {
    text-align: center;
    color: #dc3232;
    font-weight: bold;
    margin-top: 10px;
}

/* Resizer element (if implementing drag-and-drop resize) */
/*
.resizer {
    position: absolute;
    width: 10px;
    height: 100%;
    right: -5px; // Half width outside container
    top: 0;
    cursor: ew-resize; // East-West resize cursor
    z-index: 20; // On top of videos
    // Optional: add a visible handle
    background-color: rgba(0,0,0,0.2);
}
*/

/* Responsive adjustments */
@media (max-width: 768px) {
  .App-module__controlsContainer___Puw0A {
    flex-direction: column; /* Stack controls vertically on smaller screens */
    align-items: stretch;
  }
  .App-module__controlGroup___KW3fa {
      flex-direction: column; /* Stack elements within a group */
      align-items: stretch;
  }
  .App-module__controlsContainer___Puw0A input[type="text"],
  .App-module__controlsContainer___Puw0A input[type="number"],
  .App-module__controlsContainer___Puw0A select,
   .App-module__controlsContainer___Puw0A input[type="range"] {
      width: 100%; /* Full width inputs on small screens */
      min-width: auto;
      flex-grow: 0;
   }
    .App-module__controlsContainer___Puw0A span {
        width: 100%; /* Allow percentage text to take full width */
        text-align: left;
    }

  .App-module__dualViewContainer___6NUE1.App-module__layoutSideBySide___Ivdkw {
      grid-template-columns: 1fr; /* Stack views vertically */
      /* The .viewPanel inside will still use its padding-bottom trick */
  }
   .App-module__layoutPictureInPicture___l7A2s .App-module__viewPanel-2___qgkvc { /* Adjust PiP size for smaller screens */
        width: 120px;
        height: calc(120px * 9 / 16); /* Maintain 16:9 */
        bottom: 10px;
        right: 10px;
        border-width: 1px; /* Thinner border */
   }
}

/*# sourceMappingURL=style.css.map*/