/* Reset margins and make full-height layout */
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f7fa;
}

/* Main container splits the screen */
.jsontree_node {
  list-style: none;
}

.code-block {
  background: #f6f8fa;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  padding: 16px;
  font-size: 15px;
}

pre {
  margin-top: 0;
  margin-bottom: 0;
}

.container {
  flex: 1;
  display: flex;
  overflow: hidden;
  padding: 10px;
  max-width: 100% !important;
}

/* Styled textarea for input */
#input {
  width: 50%;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
  font-family: 'Courier New', Courier, monospace;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: #ffffff;
  border: 1px solid #d1d9e6;
  border-right: none;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
  resize: none;
  outline: none;
  transition: box-shadow 0.2s ease;
}

#input:focus {
  box-shadow: 0 0 0 3px rgba(100, 149, 237, 0.3);
}

/* Right panel wrapper */
.right-panel {
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #d1d9e6;
  box-shadow: inset -2px 0 4px rgba(0,0,0,0.04);
}

/* Toolbar for format switch inside right panel */
.toolbar {
  padding: 12px 20px;
  background: #f0f4ff;
  border-bottom: 1px solid #d1d9e6;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.toolbar label {
  margin-right: 20px;
  font-size: 15px;
  color: #2c3e50;
  cursor: pointer;
}

.toolbar input {
  margin-right: 6px;
  accent-color: #4a90e2;
  cursor: pointer;
}

/* Right output area styling */
#output {
  flex: 1;
  overflow: auto;
  padding: 55px 10px 0px 10px;
  box-sizing: border-box;
  color: #2c3e50;
  background: #fcfcfc;
  margin: 10px;
}

.exex {
  margin: 10px;
  border: 2px solid #e4e4e4;
  padding: 10px;
  border-radius: 5px;
}

.jsontree_tree {
  margin-left: 0px;
}

/* Стили для кнопок таймкодов в .manual-chapters */
#manual-chapters > a {
  display: inline-block;
  margin: 4px 8px 4px 0;
  padding: 6px 14px;
  background: linear-gradient(90deg, #4a90e2 0%, #357ab8 100%);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  position: relative;
}

#manual-chapters > a:hover, 
#manual-chapters > a:focus {
  background: linear-gradient(90deg, #357ab8 0%, #4a90e2 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(74,144,226,0.16);
  text-decoration: none;
}

#manual-chapters > a.active {
  background: #fff;
  color: #357ab8;
  border: 2px solid #4a90e2;
  box-shadow: 0 2px 8px rgba(74,144,226,0.12);
  font-weight: 600;
}

.vjs-theme-sea .vjs-big-play-button {
  background-color: rgb(110 113 141 / 25%) !important;
}

/* Стили для браузерного окна */
.browser-window {
  background: #ffffff;
  border: 1px solid #d1d9e6;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
}

.browser-window::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 32px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 1px solid #d1d9e6;
  z-index: 1;
}

.browser-window::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 12px;
  width: 12px;
  height: 12px;
  background: #ff5f56;
  border-radius: 50%;
  box-shadow: 20px 0 0 #ffbd2e, 40px 0 0 #27ca3f;
  z-index: 2;
}

.browser-window > * {
  position: relative;
  z-index: 3;
} 

.block-toolbar {
  padding: 10px;
  background: #f0f4ff;
  border-bottom: 1px solid #d1d9e6;
  display: flex;
  flex-wrap: wrap;
}
