/* assets/theme-pg-compact.css */
/* Planet Gator compact application theme
   Dense layout for video research / editing tools
   -------------------------------------------------- */

:root {
  /* Core */
  --pg-bg: #1f252c;
  --pg-surface: #28313a;
  --pg-surface-2: #303a45;
  --pg-surface-3: #11161b;

  --pg-text: #f4f1e6;
  --pg-muted: #b9b39f;
  --pg-border: #4e5966;

  /* Accents */
  --pg-orange: #fa4616;
  --pg-orange-2: #ffa58b;
  --pg-blue: #5a8cff;
  --pg-blue-2: #cecece;
  --pg-grey: #5f5f5f;
  --pg-grey-2: #a7a7a7;
  --pg-accent: var(--pg-orange);

  /* Compact sizing */
  --pg-radius: .25rem;
  --pg-radius-sm: .15rem;
  --pg-shadow: none;

  --pg-pad-xs: .15rem;
  --pg-pad-sm: .25rem;
  --pg-pad-md: .5rem;

  --pg-font-sm: .82rem;
  --pg-font-md: .95rem;
}

/* Bootstrap basics
   -------------------------------------------------- */

:root {
  --bs-body-bg: var(--pg-bg);
  --bs-body-color: var(--pg-text);
  --bs-secondary-color: var(--pg-muted);
  --bs-border-color: var(--pg-border);
  --bs-heading-color: var(--pg-text);
}

/* Base
   -------------------------------------------------- */

html,
body {
  background: var(--pg-bg);
  color: var(--pg-text);
}

body {
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: var(--pg-font-md);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Grandstander', system-ui, sans-serif;
  letter-spacing: .35px;
}

h1 {
  font-size: 2rem;
  margin: .15rem 0 .35rem;
}

h4 {
  font-size: 1.15rem;
  margin: .25rem 0;
}

a {
  color: var(--pg-text);
  text-decoration: none;
}

a:hover {
  color: var(--pg-blue);
}

/* Panels
   -------------------------------------------------- */

.pg-main-column {
    height: calc(100vh - 90px);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.pg-player-wrap {
    flex: 0 0 auto;
}

.pg-video-edit {
    flex: 0 0 auto;
}




.pg-panel,
.pg-video-list,
.pg-video-edit {
  background: var(--pg-surface);
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius);
  box-shadow: var(--pg-shadow);
}

/* Video list
   -------------------------------------------------- */

.pg-video-list {
  padding: var(--pg-pad-sm);
  color: var(--pg-muted);
  font-size: var(--pg-font-sm);
  line-height: 1.25;
}

.pg-video-list a {
  display: block;
  padding: .12rem .25rem;
  margin: .05rem 0;
  border-radius: var(--pg-radius-sm);
  color: var(--pg-text);
}

.pg-video-list a:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}

.pg-video-list .selected {
  background: rgba(250,70,22,.22);
  color: #fff;
  font-weight: 800;
  border-left: 3px solid var(--pg-orange);
  padding-left: .35rem;
}

/* Player controls: compact, YouTube-ish
   -------------------------------------------------- */

.pg-controls {
  background: linear-gradient(
    to top,
    rgba(0,0,0,.82),
    rgba(0,0,0,.48)
  );
}

.pg-controls-left a, .pg-controls-right a {
  display: inline-block;
  width: 24px;
  text-align: center;
  padding: .05rem .18rem;
  margin: 0 .08rem;
  background: transparent;
  border: none;
  color: var(--pg-text);
  text-decoration: none;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}
.pg-controls-center a {
  display: inline-block;
}
.draw-btns {
    min-width: 70px;
    font-size: 1rem !important;
    text-align: center !important;
    border: 1px solid #666 !important;
    border-radius: 3px !important;
    padding: 2px 4px !important;
    margin-right:10px !important;
}


.pg-controls-right a {
  display: inline-block;
  width: 24px;
  text-align: center;
  padding: .05rem .18rem;
  margin: 0 .08rem;
  background: transparent;
  border: none;
  color: var(--pg-text);
  text-decoration: none;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

.pg-speed-button {
    min-width: 44px;
    font-size: .78rem !important;
    border: 1px solid #666 !important;
    border-radius: 3px !important;
    padding: 2px 4px !important;
}

.pg-speed-button,
.pg-time-input {
    position: relative;
    top: -2px;
}

.pg-controls a:hover {
  color: var(--pg-blue-2);
}

.pg-controls a.selected,
.pg-speed-button.selected,
.draw-toggle-btn.selected {
  color: var(--pg-orange-2);
  background: transparent;
}


/* Progress bar
   -------------------------------------------------- */

.pg-progress-wrap {
  grid-column: 1 / -1;
}

.pg-progress-bar {
  position: relative;
  background: rgba(255,255,255,.22);
  border-radius: 999px;
  overflow: visible;
}

.pg-progress-fill {
  background: var(--pg-orange);
}

.pg-progress-tooltip {
  position: absolute;
  bottom: 140%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.78);
  color: #fff;
  padding: .1rem .3rem;
  border-radius: var(--pg-radius-sm);
  font-size: .72rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .15s ease;
  z-index: 100;
}

.pg-progress-bar:hover .pg-progress-tooltip {
  opacity: 1;
}

/* Player time input
   -------------------------------------------------- */

.pg-time-input {
  background: transparent;
  color: var(--pg-text);
  border: none;
  text-align: right;
  width: 105px;
  font-size: .82rem;
  padding: 0;
}

.pg-time-input:focus {
  outline: none;
  box-shadow: none;
}

.pg-time-input.invalid {
  color: #ff7b7b;
}

/* Editor
   -------------------------------------------------- */

.pg-video-edit {
  padding: var(--pg-pad-sm);
  margin-top: var(--pg-pad-sm);
  font-size: var(--pg-font-sm);
}

.pg-edit-controls {
  margin-bottom: var(--pg-pad-sm);
  user-select: none;
}

.import-project-input {
    display: none;
}

.pg-edit-controls a,
.pg-edit-controls label {
  min-width: 120px;
  text-align: center;
  display: inline-block;
  padding: .12rem .32rem;
  margin: 0 .08rem .12rem 0;
  background: var(--pg-surface-2);
  color: var(--pg-text);
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius-sm);
  text-decoration: none;
  line-height: 1.15;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

.pg-edit-controls a:hover,
.pg-edit-controls label:hover {
  background: var(--pg-grey);
  border-color: var(--pg-grey-2);
  color: #fff;
}

.mark-clip-btn.marking-end {
  background: #b52828;
  border-color: #e04a4a;
  color: #fff;
}

.pg-edit-status {
  text-align: center;
  margin-top: var(--pg-pad-sm);
}

.clip-time-input,
.clip-field {
  background: var(--pg-surface-3);
  color: var(--pg-text);
  border: 1px solid var(--pg-border);
  border-radius: var(--pg-radius-sm);
  padding: .12rem .28rem;
  margin: 0 .15rem .2rem 0;
  font-size: var(--pg-font-sm);
  line-height: 1.2;
  width: 8rem;

}

.clip-time-input {
  width: 112px;
}

.clip-field {
  min-width: 186px;
}

.clip-time-input:focus,
.clip-field:focus {
  outline: none;
  border-color: var(--pg-orange);
  box-shadow: 0 0 0 .1rem rgba(250,70,22,.25);
}

.invalid,
.clip-time-input.invalid,
.clip-field.invalid {
  border-color: #ff4d4d !important;
  background: rgba(255,0,0,.12);
}

.import-project-input {
  color: var(--pg-muted);
  font-size: var(--pg-font-sm);
}

/* Saved clips
   -------------------------------------------------- */

.pg-saved-clips {
  margin-top: var(--pg-pad-sm);
}

.pg-saved-clips a {
  display: block;
  padding: .18rem .3rem;
  margin-bottom: .12rem;
  background: rgba(255,255,255,.04);
  color: var(--pg-text);
  border-left: 3px solid rgba(255,255,255,.16);
  border-radius: var(--pg-radius-sm);
  font-size: var(--pg-font-sm);
  line-height: 1.2;
}

.pg-saved-clips a:hover {
  background: rgba(250,70,22,.14);
  border-left-color: var(--pg-orange);
  color: #fff;
}

/* Scrollbars
   -------------------------------------------------- */

.pg-video-list, .pg-video-edit {
  scrollbar-color: var(--pg-border) transparent;
  scrollbar-width: thin;
}

.pg-video-list::-webkit-scrollbar {
  width: 7px;
}

.pg-video-list::-webkit-scrollbar-thumb {
  background: var(--pg-border);
  border-radius: 999px;
}

.pg-video-list::-webkit-scrollbar-track {
  background: transparent;
}


.pg-video-edit::-webkit-scrollbar {
  width: 7px;
}

.pg-video-edit::-webkit-scrollbar-thumb {
  background: var(--pg-border);
  border-radius: 999px;
}

.pg-video-edit::-webkit-scrollbar-track {
  background: transparent;
}
