@import url('https://fonts.googleapis.com/css2?family=Intel+One+Mono:ital,wght@0,300..700;1,300..700&display=swap');

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Intel One Mono', Helvetica, Arial, sans-serif;
  }
  
  body {
    background: #fdf6fa;
    color: #333;
    padding: 1rem;
    min-height: 100vh;
  }
  
  /* App Container */
  #app {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 0.75rem;
    border: 1px solid #f5d0e4;
    box-shadow: 0 8px 24px rgba(213, 70, 143, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 720px;
    margin: 0 auto;
  }
  
  /* Full-width on mobile */
  @media (max-width: 600px) {
    #app {
      padding: 1rem;
      border: none;
      border-radius: 0;
      box-shadow: none;
      max-width: none;
      margin: 0;
      background: white;
    }

    body {
        background:white;
    }
  }
  
  /* Title */
  .header {
    display:flex;
    flex-direction:row;
    padding-bottom: 0.5rem;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #f5d0e4;
  }

  h1 {
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    color: #d5468f;
  }
  
  /* File Upload */
  input[type="file"] {
    border: 1.5px solid #d5468f;
    padding: 0.6rem;
    border-radius: 0.5rem;
    width: 100%;
    background-color: #fff5fa;
    color: #444;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
  }
  
  input[type="file"]:hover {
    background-color: #ffe6f1;
    border-color: #c43c82;
  }
  
  /* Canvas */
  canvas {
    max-width: 100%;
    align-self:center;
    border-radius: 0.5rem;
    border: 2px dashed #d5468f;
    background-color: #fff0f8;
    box-shadow: 0 0 12px rgba(213, 70, 143, 0.15);
  }
  
  /* Controls */
  #video-controls {
    display: flex;
    flex-direction: column;
  }
  
  #seekControl {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }
  
  #seekSlider {
    width: 100%;
    accent-color: #d5468f;
  }
  
  #timeDisplay {
    font-size: 0.9rem;
    color: #777;
    text-align: right;
  }
  
  /* Buttons */
  .pause-play {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top:0.5rem;
  }
  
  button {
    padding: 0.5rem 1.2rem;
    background-color: #d5468f;
    border: none;
    border-radius: 0.5rem;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }
  
  button:hover {
    background-color: #bb3b7e;
  }
  
  /* Visualizer, Toggles, Filters */
  .visualizer,
  .toggles,
  #filter-section,
  #shakeControl {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
  }

  #shakeRange {
    accent-color: #d5468f;
  }

  #filter-section {
    gap: 0;
  }
  
  .mode-picker,
  #colorControl,
  #filter-section label,
  #shakeControl label {
    flex: 1 1 100%;
  }

  
  select,
  input[type="color"],
  input[type="range"] {
    width: 100%;
    margin-top: 0.4rem;
    padding: 0.5rem;
    border-radius: 0.4rem;
    border: 1.5px solid #dba7c5;
    background: #fffafa;
    color: #333;
    appearance: none;
  }

  input[type="color"] {
    height:2rem;
  }
  
  select:focus,
  input[type="range"]:focus {
    outline: 2px solid #d5468f;
  }
  
  .toggles {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  
  .toggles label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: #444;
  }
  
  /* Download Button: Plain but Pretty */
  #downloadProcessed {
    background: transparent;
    border: none;
    color: #d5468f;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    align-self: center;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
  }

  .sticky-download {
    position: fixed;
    bottom: 0;
    right:0;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 0.7rem 0rem 0rem 0rem;
    border-left: 2px solid #f5d0e4;
    border-top: 2px solid #f5d0e4;
    display: flex;
    justify-content: center;
    z-index: 1000;
  }
  
  #downloadProcessed:hover {
    color: #a9306d;
  }

  #download-p {
    align-self: center;
    color: #d5468f;
  }
  
  #YOffset, #XOffset {
    accent-color: #d5468f;
  }

  #visualizer-tab {
    border-bottom: 2px solid #f5d0e4;
    padding-bottom: 1.5rem;
  }

  #filters-tab {
    border-bottom: 2px solid #f5d0e4;
    padding-bottom: 1.5rem;
  }

  #effects-tab {
    border-bottom: 2px solid #f5d0e4;
    padding-bottom: 1.5rem;
  }

  #effects-text {
    font-weight: normal;
  }



  .tab-container {
    border-top: 2px solid #f5d0e4;
    padding-top: 1rem;
  }
  
  .tab-buttons {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .tab-btn {
    flex: 1;
    padding: 0.6rem 1rem;
    background: #fffafa;
    border: 2px solid #f5d0e4;
    border-radius: 0.5rem;
    color: #d5468f;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    text-align: center;
  }
  
  .tab-btn:hover {
    background-color: #ffe6f1;
    border-color: #d5468f;
  }
  
  .tab-btn.active {
    background-color: #d5468f;
    color: white;
    border-color: #d5468f;
  }
  
  
  .tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
  }
  
  .tab-content.active {
    display: block;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
