/* =========================================================
   FACTOFFERS - STORY LIBRARY LIGHT V1
   ONLY LIGHT THEME / PAGE-LIBRARY
   ========================================================= */

/* ---------- PAGE ---------- */
body.light #page-library,
body.fo-light #page-library{
  color:#172033 !important;
}

/* ---------- HEADER ---------- */
body.light #page-library .fo-story-head,
body.fo-light #page-library .fo-story-head{
  background:#ffffff !important;
  border:1px solid #d8e1ec !important;
  box-shadow:0 6px 20px rgba(15,23,42,.055) !important;
}

body.light #page-library .fo-story-head .pg-title,
body.fo-light #page-library .fo-story-head .pg-title{
  color:#172033 !important;
  opacity:1 !important;
}

body.light #page-library .fo-story-head .pg-sub,
body.fo-light #page-library .fo-story-head .pg-sub{
  color:#64748b !important;
  opacity:1 !important;
}


/* ---------- MAIN LIBRARY CARDS ---------- */
body.light #page-library .fo-story-card,
body.fo-light #page-library .fo-story-card{
  background:#ffffff !important;
  border:1px solid #dbe3ed !important;
  box-shadow:0 5px 18px rgba(15,23,42,.05) !important;
  color:#172033 !important;
}

body.light #page-library .fo-story-title,
body.fo-light #page-library .fo-story-title{
  color:#172033 !important;
  opacity:1 !important;
  text-shadow:none !important;
}


/* ---------- LABELS ---------- */
body.light #page-library label,
body.fo-light #page-library label{
  color:#475569 !important;
  opacity:1 !important;
}


/* ---------- INPUTS / SEARCH ---------- */
body.light #page-library input:not([type="checkbox"]),
body.light #page-library textarea,
body.light #page-library select,
body.fo-light #page-library input:not([type="checkbox"]),
body.fo-light #page-library textarea,
body.fo-light #page-library select{
  background:#f8fafc !important;
  color:#172033 !important;
  border-color:#cbd5e1 !important;
  box-shadow:none !important;
}

body.light #page-library input::placeholder,
body.light #page-library textarea::placeholder,
body.fo-light #page-library input::placeholder,
body.fo-light #page-library textarea::placeholder{
  color:#8994a5 !important;
  opacity:1 !important;
}


/* ---------- FILE PICKER ---------- */
body.light #page-library .fo-story-file,
body.fo-light #page-library .fo-story-file{
  background:#f8fafc !important;
  border-color:#cbd5e1 !important;
  color:#334155 !important;
}

body.light #page-library .fo-story-file span,
body.fo-light #page-library .fo-story-file span{
  color:#334155 !important;
  opacity:1 !important;
}

body.light #page-library .fo-story-file b,
body.fo-light #page-library .fo-story-file b{
  color:#64748b !important;
  opacity:1 !important;
}


/* =========================================================
   QUOTA
   ========================================================= */

body.light #page-library .fo-qt,
body.fo-light #page-library .fo-qt{
  background:#fff7f8 !important;
  border-color:#fecdd3 !important;
  box-shadow:none !important;
}

body.light #page-library .fo-qt-top b,
body.fo-light #page-library .fo-qt-top b{
  color:#172033 !important;
}

body.light #page-library .fo-qt-note,
body.fo-light #page-library .fo-qt-note{
  color:#64748b !important;
}

body.light #page-library .fo-qt-bar,
body.fo-light #page-library .fo-qt-bar{
  background:#e5e7eb !important;
}


/* =========================================================
   SCHEDULE BOX
   ========================================================= */

body.light #page-library #fo-story-schedule-box,
body.fo-light #page-library #fo-story-schedule-box{
  background:#faf8ff !important;
  border:1px solid #d8c9fa !important;
  box-shadow:none !important;
}


/* schedule title */
body.light #page-library .fo-sch-compact-title,
body.fo-light #page-library .fo-sch-compact-title{
  color:#4c1d95 !important;
  opacity:1 !important;
}


/* settings button */
body.light #page-library .fo-sch-toggle,
body.fo-light #page-library .fo-sch-toggle{
  background:#f3e8ff !important;
  color:#6d28d9 !important;
  border-color:#c4b5fd !important;
  box-shadow:none !important;
}


/* labels */
body.light #page-library .fo-sch-label,
body.fo-light #page-library .fo-sch-label{
  color:#475569 !important;
  opacity:1 !important;
}


/* chips */
body.light #page-library .fo-sch-chip,
body.fo-light #page-library .fo-sch-chip{
  background:#ffffff !important;
  color:#475569 !important;
  border:1px solid #d6dce7 !important;
  box-shadow:none !important;
}

body.light #page-library .fo-sch-chip.active,
body.fo-light #page-library .fo-sch-chip.active{
  background:linear-gradient(135deg,#8b5cf6,#6d28d9) !important;
  border-color:#7c3aed !important;
  color:#ffffff !important;
}


/* schedule summary */
body.light #page-library .fo-sch-summary,
body.fo-light #page-library .fo-sch-summary{
  background:#f1f5f9 !important;
  color:#475569 !important;
  border:1px solid #dbe2eb !important;
  opacity:1 !important;
}


/* schedule status */
body.light #page-library #fo-story-schedule-status,
body.fo-light #page-library #fo-story-schedule-status{
  background:#f8fafc !important;
  color:#334155 !important;
  border:1px solid #dbe2eb !important;
}


/* progress */
body.light #page-library #fo-story-schedule-progress,
body.fo-light #page-library #fo-story-schedule-progress{
  background:#e2e8f0 !important;
}


/* disabled stop button */
body.light #page-library #btn-story-schedule-stop:disabled,
body.fo-light #page-library #btn-story-schedule-stop:disabled{
  background:#f1f5f9 !important;
  color:#94a3b8 !important;
  border:1px solid #dbe2eb !important;
  opacity:1 !important;
}


/* clear schedule status button - overrides inline dark style */
body.light #page-library #fo-sch-clear-btn,
body.fo-light #page-library #fo-sch-clear-btn{
  background:#eef2f7 !important;
  color:#475569 !important;
  border:1px solid #d7dee8 !important;
  box-shadow:none !important;
}


/* =========================================================
   LIBRARY CONTROLS
   ========================================================= */

body.light #page-library .fo-lib-star,
body.fo-light #page-library .fo-lib-star{
  background:#f8fafc !important;
  color:#94a3b8 !important;
  border:1px solid #cbd5e1 !important;
  text-shadow:none !important;
}

body.light #page-library .fo-lib-star.on,
body.fo-light #page-library .fo-lib-star.on{
  background:#fff7db !important;
  color:#d97706 !important;
  border-color:#f6cf68 !important;
  text-shadow:none !important;
}

body.light #page-library .fo-lib-pub,
body.fo-light #page-library .fo-lib-pub{
  background:#ecfdf5 !important;
  color:#047857 !important;
  border-color:#a7f3d0 !important;
}

body.light #page-library .fo-lib-pub b,
body.fo-light #page-library .fo-lib-pub b{
  color:#047857 !important;
}

body.light #page-library .fo-lib-new,
body.fo-light #page-library .fo-lib-new{
  background:#f8fafc !important;
  color:#64748b !important;
  border-color:#dbe2eb !important;
}


/* =========================================================
   INDIVIDUAL VIDEO CARDS
   ========================================================= */

body.light #page-library #story-list .fo-story-item,
body.fo-light #page-library #story-list .fo-story-item{
  background:#ffffff !important;
  border:1px solid #d9e1eb !important;
  color:#172033 !important;
  box-shadow:0 5px 16px rgba(15,23,42,.045) !important;
}


/* top decoration bar */
body.light #page-library #story-list .fo-lib-bar,
body.fo-light #page-library #story-list .fo-lib-bar{
  background:transparent !important;
  color:#475569 !important;
}


/* layout wrappers created by V3 */
body.light #page-library #story-list .fo-story-layout-v3,
body.fo-light #page-library #story-list .fo-story-layout-v3{
  color:#172033 !important;
}


/* Common card text */
body.light #page-library #story-list .fo-story-item b,
body.fo-light #page-library #story-list .fo-story-item b{
  color:#172033;
}

body.light #page-library #story-list .fo-story-item small,
body.light #page-library #story-list .fo-story-item .muted,
body.fo-light #page-library #story-list .fo-story-item small,
body.fo-light #page-library #story-list .fo-story-item .muted{
  color:#64748b !important;
}


/* IDs / filenames / secondary metadata */
body.light #page-library #story-list .fo-story-item [class*="meta"],
body.light #page-library #story-list .fo-story-item [class*="sub"],
body.fo-light #page-library #story-list .fo-story-item [class*="meta"],
body.fo-light #page-library #story-list .fo-story-item [class*="sub"]{
  color:#64748b !important;
  opacity:1 !important;
}


/* checkbox */
body.light #page-library #story-list input[type="checkbox"],
body.fo-light #page-library #story-list input[type="checkbox"]{
  accent-color:#7c3aed !important;
}


/* dark blocks that may remain directly inside video cards */
body.light #page-library #story-list .fo-story-item .fo-story-layout-v3 > div,
body.fo-light #page-library #story-list .fo-story-item .fo-story-layout-v3 > div{
  color:#172033;
}


/* =========================================================
   LIGHT RESULT / STATUS MESSAGES
   ========================================================= */

body.light #page-library #result-story-list,
body.light #page-library #result-story-upload,
body.fo-light #page-library #result-story-list,
body.fo-light #page-library #result-story-upload{
  color:#334155 !important;
}

body.light #page-library #result-story-list .ok,
body.light #page-library #result-story-upload .ok,
body.fo-light #page-library #result-story-list .ok,
body.fo-light #page-library #result-story-upload .ok{
  color:#047857 !important;
}


/* =========================================================
   KEEP ACTION COLORS STRONG
   ========================================================= */

body.light #page-library .btn-purple,
body.fo-light #page-library .btn-purple{
  color:#ffffff !important;
}

body.light #page-library .btn-green,
body.fo-light #page-library .btn-green{
  color:#ffffff !important;
}

body.light #page-library .btn-red,
body.fo-light #page-library .btn-red{
  color:#ffffff !important;
}


/* normal ghost buttons */
body.light #page-library .btn-ghost,
body.fo-light #page-library .btn-ghost{
  background:#f1f5f9 !important;
  color:#334155 !important;
  border:1px solid #d5dde8 !important;
  box-shadow:none !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media(max-width:480px){

  body.light #page-library #story-list .fo-story-item,
  body.fo-light #page-library #story-list .fo-story-item{
    box-shadow:0 3px 12px rgba(15,23,42,.04) !important;
  }

  body.light #page-library #fo-story-schedule-box,
  body.fo-light #page-library #fo-story-schedule-box{
    box-shadow:none !important;
  }

}


/* FO_STORY_PRODUCT_TITLE_DARK_V1 */
#page-library .fo-story-item h3{
    color:#26354d !important;
    font-weight:900 !important;
    opacity:1 !important;
    text-shadow:none !important;
}
