/*
 * CSP Learning - Forma LMS Custom Theme Overlay
 * Brand accent: #7F7F7F
 *
 * Install at:
 * /templates/csp-learning/style/custom.css
 *
 * This file is intentionally an override layer.
 * Do not modify Forma's compiled CSS.
 */

/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */

:root {
  --csp-brand: #7F7F7F;
  --csp-brand-dark: #5F5F5F;
  --csp-brand-darker: #454545;
  --csp-brand-soft: #E7E7E7;
  --csp-bg: #F5F5F5;
  --csp-surface: #FFFFFF;
  --csp-text: #202020;
  --csp-text-muted: #666666;
  --csp-border: #DADADA;
  --csp-focus: rgba(127, 127, 127, 0.36);
  --csp-radius-sm: 8px;
  --csp-radius: 12px;
  --csp-radius-lg: 18px;
  --csp-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);

  /* Forma native variables */
  --color-primary: #7F7F7F;
  --color-primary-text: #111111;
  --color-secondary: #6A6A6A;
  --color-secondary-text: #FFFFFF;

  --color-navbtn-bg: #D8D8D8;
  --color-navbtn-text: #202020;
  --color-navbtn-bg-inter: #7F7F7F;
  --color-navbtn-text-inter: #111111;

  --color-icon-bg: #DADADA;
  --color-icon-text: #202020;

  --color-wrapper-bg: #F5F5F5;
  --color-wrapper-text: #202020;
  --color-heading: #202020;
}

/* =========================================================
   2. BASE
   ========================================================= */

html,
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  color: var(--csp-text);
}

body {
  background: var(--csp-bg);
}

a {
  color: var(--csp-brand-dark);
}

a:hover,
a:focus {
  color: var(--csp-brand-darker);
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
.form-control:focus,
.forma-button:focus {
  outline: 3px solid var(--csp-focus) !important;
  outline-offset: 2px;
  box-shadow: none !important;
}

/* =========================================================
   3. FORMA PRIMARY ACTIONS
   #7F7F7F with dark text meets stronger contrast than white
   text on this specific gray.
   ========================================================= */

.forma-button--primary,
.btn-primary,
button.btn-primary,
input.btn-primary,
input[type="submit"].btn-primary,
.forma-button.forma-button--primary {
  background-color: var(--csp-brand) !important;
  border-color: var(--csp-brand) !important;
  color: #111111 !important;
  border-radius: var(--csp-radius-sm);
  transition: background-color .18s ease, border-color .18s ease,
    transform .18s ease;
}

.forma-button--primary:hover,
.forma-button--primary:focus,
.btn-primary:hover,
.btn-primary:focus,
button.btn-primary:hover,
button.btn-primary:focus {
  background-color: var(--csp-brand-dark) !important;
  border-color: var(--csp-brand-dark) !important;
  color: #FFFFFF !important;
}

.forma-button--primary:active,
.btn-primary:active,
.btn-primary.active {
  background-color: var(--csp-brand-darker) !important;
  border-color: var(--csp-brand-darker) !important;
  color: #FFFFFF !important;
}

.label-primary,
.badge-primary,
.progress-bar,
.pagination > .active > a,
.pagination > .active > span,
.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus {
  background-color: var(--csp-brand) !important;
  border-color: var(--csp-brand) !important;
}

/* =========================================================
   4. FORMS
   ========================================================= */

.form-control,
input[type="text"],
input[type="password"],
input[type="email"],
input[type="search"],
select,
textarea {
  border: 1px solid var(--csp-border);
  border-radius: var(--csp-radius-sm);
  min-height: 42px;
  background: #FFFFFF;
  color: var(--csp-text);
  box-shadow: none;
}

.form-control:hover,
input[type="text"]:hover,
input[type="password"]:hover,
input[type="email"]:hover,
select:hover,
textarea:hover {
  border-color: #B5B5B5;
}

.form-control:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  border-color: var(--csp-brand) !important;
}

/* =========================================================
   5. LOGIN / PUBLIC HOME
   ========================================================= */

/* body.homepage {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(226,226,226,.96)),
    url("../static/images/login/bg.jpg") center center / cover no-repeat fixed !important;
} */
body.homepage {
  min-height: 100vh;
  background-image: url("../static/images/login/bg.jpg") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

.homepage__content {
  width: calc(100% - 32px);
  max-width: 920px;
  margin: 32px auto;
  overflow: hidden;
  background: var(--csp-surface);
  border: 1px solid rgba(0,0,0,.07);
  border-radius: var(--csp-radius-lg);
  box-shadow: var(--csp-shadow);
}

.homepage__row {
  background: #FFFFFF;
}

.homepage__row--header {
  min-height: 108px;
  height: auto;
  padding: 22px 34px;
  border: 0 !important;
  border-bottom: 1px solid var(--csp-border) !important;
  background: #FFFFFF !important;
  justify-content: space-between;
}

.homepage .left_logo {
  width: auto !important;
  height: 52px !important;
  max-width: 280px;
  object-fit: contain;
  margin: 0 !important;
}

.homepage__row--login,
.homepage__row--login.homepage__row--gray {
  background: #FFFFFF !important;
  padding: 42px 28px 26px;
  backdrop-filter: none;
}

.homepage__row--login > .col-xs-12,
.homepage__row--login > .col-sm-6 {
  float: none !important;
  width: 100% !important;
  max-width: 440px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.homepage__row--login .homepage__form {
  padding: 0;
}

.homepage__row--login .form-control {
  min-height: 46px;
  font-size: 15px;
  border-radius: 10px;
}

.homepage__row--login .forma-button,
.homepage__row--login .btn,
.homepage__row--login button,
.homepage__row--login input[type="submit"] {
  min-height: 44px;
  border-radius: 10px;
}

.homepage__links {
  margin-top: 18px;
}

.homepage__links > a {
  color: var(--csp-brand-dark) !important;
  font-weight: 600;
  line-height: 1.35;
}

.homepage__links > a:hover {
  color: var(--csp-brand-darker) !important;
}

.homepage__row--login.homepage__row--gray + .homepage__row {
  padding-top: 26px;
}

.homepage__row--login ~ .homepage__row strong {
  display: inline-block;
  font-size: 22px;
  line-height: 1.25;
  color: var(--csp-text);
  margin-bottom: 4px;
}

.homepage__collapsed-text {
  color: var(--csp-text-muted);
  font-size: 15px;
}

.homepage__row--footer {
  background: #FFFFFF !important;
  padding-bottom: 18px;
}

.homepage__row--footer .homepage__links {
  border-top: 1px solid var(--csp-border) !important;
  padding-top: 20px;
}

.homepage__footer {
  color: var(--csp-text-muted);
}

.homepage__footer a {
  color: var(--csp-brand-dark);
}

.login_failed,
.logout {
  border-radius: 8px;
}

/* =========================================================
   6. HEADER / NAVIGATION
   ========================================================= */

.navbar,
.navbar-default,
.navbar-inverse {
  border-radius: 0;
}

.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus,
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  background-color: var(--csp-brand) !important;
}

#main-menu a:hover,
#main-menu a:focus,
#admcontainer a:hover {
  color: var(--csp-brand-dark) !important;
}

/* =========================================================
   7. CARDS / PANELS / DASHBOARD
   ========================================================= */

.panel,
.card,
.dashboard__item,
.dash-course,
.course-box,
.box {
  border-color: var(--csp-border);
}

.panel,
.card {
  border-radius: var(--csp-radius);
  box-shadow: 0 5px 18px rgba(0,0,0,.045);
}

.panel-heading {
  border-bottom-color: var(--csp-border);
}

.progress {
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  background: var(--csp-brand) !important;
}

/* =========================================================
   8. TABLES
   ========================================================= */

.table > thead > tr > th {
  border-bottom-color: var(--csp-brand);
}

.table > tbody > tr:hover {
  background: #F7F7F7;
}

/* =========================================================
   9. CSP CUSTOM HOME PAGE
   Used by 02_TELA_INICIAL/home-inicial.html
   ========================================================= */

.csp-home {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 8px 42px;
  color: var(--csp-text);
}

.csp-home__hero {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 6vw, 70px);
  border: 1px solid var(--csp-border);
  border-radius: 20px;
  background:
    radial-gradient(circle at 86% 18%, rgba(127,127,127,.18), transparent 34%),
    linear-gradient(145deg, #FFFFFF 0%, #EFEFEF 100%);
}

.csp-home__eyebrow {
  margin: 0 0 14px;
  color: var(--csp-brand-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.csp-home__hero h2 {
  max-width: 760px;
  margin: 0 0 18px;
  color: #191919;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.csp-home__lead {
  max-width: 720px;
  margin: 0;
  color: #565656;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
}

.csp-home__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.csp-home__card {
  min-height: 190px;
  padding: 28px;
  border: 1px solid var(--csp-border);
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 8px 24px rgba(0,0,0,.045);
}

.csp-home__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 26px;
  border-radius: 50%;
  background: var(--csp-brand);
  color: #111111;
  font-weight: 800;
}

.csp-home__card h3 {
  margin: 0 0 9px;
  color: #202020;
  font-size: 19px;
}

.csp-home__card p {
  margin: 0;
  color: #666666;
  font-size: 14px;
  line-height: 1.6;
}

.csp-home__note {
  margin-top: 18px;
  padding: 18px 22px;
  border-left: 4px solid var(--csp-brand);
  border-radius: 0 10px 10px 0;
  background: #EFEFEF;
  color: #444444;
  font-size: 14px;
  line-height: 1.55;
}

/* =========================================================
   10. RESPONSIVE
   ========================================================= */

@media (max-width: 767px) {
  .homepage__content {
    width: calc(100% - 20px);
    margin: 10px auto;
    border-radius: 14px;
  }

  .homepage__row--header {
    min-height: 86px;
    padding: 16px 20px;
  }

  .homepage .left_logo {
    height: 38px !important;
    max-width: 210px;
  }

  .homepage__row--login {
    padding: 28px 18px 18px;
  }

  .csp-home {
    padding: 8px 4px 28px;
  }

  .csp-home__hero {
    padding: 32px 24px;
    border-radius: 16px;
  }

  .csp-home__grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   11. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
/* =========================================================
   CSP LEARNING - FUNDO INTERNO FORÇADO
   ========================================================= */

/* fundo geral da área logada */
html,
body {
    background: url("/templates/csp-learning/images/internal-bg.jpg") center center / cover no-repeat fixed !important;
}

/* estruturas principais da área interna ficam transparentes */
body #container,
body #menu_over,
body #lms_main_container,
body .lms-user-content-wrapper,
body .lms-user-content-wrapper > .container-fluid,
body .lms-user-content-wrapper > .container-fluid > .row,
body .lms-user-content-wrapper > .container-fluid > .row > [class*="col-"],
body .middlearea_container,
body .std_block,
body .white-bg,
body .layout_footer,
body #footer,
body .jumbotron,
body .panel,
body .panel-body,
body .panel-heading,
body .box,
body .tab-content,
body .page-header,
body .course-box,
body .course-box__content,
body .catalogue,
body .catalogue__content,
body .catalogue__filters,
body .yui-content,
body .yui-navset .yui-content,
body .yui-b,
body .yui-main {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

/* remove a faixa do título */
body h1,
body h2,
body h3,
body .page-header {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* inputs e selects continuam legíveis */
body input[type="text"],
body input[type="search"],
body input[type="email"],
body input[type="password"],
body select,
body textarea,
body .form-control {
    background: rgba(255,255,255,0.78) !important;
    border: 1px solid rgba(0,0,0,0.10) !important;
    box-shadow: none !important;
}

/* botões pequenos do catálogo */
body .btn,
body button,
body input[type="submit"],
body .forma-button {
    box-shadow: none !important;
}

/* garante altura e continuidade do fundo */
body #container {
    min-height: calc(100vh - 86px) !important;
}


/* CSP Customer Learning — Learning Objects premium cards
   Drop-in for Forma LMS active template: /templates/<ACTIVE_TEMPLATE>/style/custom.css
*/

.fv-is-student-area .folderView {
  padding: 8px 0 24px;
}

.fv-is-student-area .folderView__ul {
  display: grid;
  gap: 18px;
}

.fv-is-student-area .folderView__li.js-folderView-file {
  min-height: 150px;
  height: auto;
  border: 1px solid rgba(20, 20, 20, .10);
  border-radius: 18px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 10px 32px rgba(20, 20, 20, .07);
  overflow: hidden;
  cursor: default;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.fv-is-student-area .folderView__li.js-folderView-file:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(20, 20, 20, .11);
  border-color: rgba(20, 20, 20, .16);
}

/* Learning object content */
.fv-is-student-area .folderView__li.js-folderView-file .folderView__el {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: calc(100% - 190px);
  max-width: none;
  min-height: 150px;
  padding: 28px 24px 24px 190px;
  box-sizing: border-box;
  background-image: none !important;
}

/* Visual video panel for SCORM-based video lessons */
.fv-is-student-area .folderView__el.fv-is-scormorg::before {
  content: "▶";
  position: absolute;
  left: 22px;
  top: 22px;
  width: 140px;
  height: 106px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 36px;
  line-height: 1;
  color: #111;
  background:
    radial-gradient(circle at 30% 25%, rgba(142, 203, 240, .95), rgba(255,255,255,.15) 45%),
    linear-gradient(135deg, #b9ddf2 0%, #fff2cb 48%, #ff9f88 100%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}

/* Type chip */
.fv-is-student-area .folderView__el.fv-is-scormorg::after {
  content: "VÍDEO";
  position: absolute;
  left: 32px;
  top: 104px;
  min-width: 54px;
  padding: 5px 9px;
  border-radius: 999px;
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  color: #111;
  background: rgba(255,255,255,.92);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

/* Title */
.fv-is-student-area .folderView__label {
  display: block;
  max-width: none !important;
  width: 100%;
  padding: 0;
  color: #171717;
  font-size: 19px;
  font-weight: 750;
  line-height: 1.25;
  pointer-events: none;
}

/* Forma normally treats this as tooltip. Make the description editorial and visible. */
.fv-is-student-area .folderView__label .tooltip-div {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: static !important;
  width: auto !important;
  max-width: 720px;
  height: auto !important;
  margin: 10px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #626262 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  transform: none !important;
}

/* Actions area */
.fv-is-student-area .folderView__li.js-folderView-file .actions-wrapper {
  top: 0;
  right: 0;
  width: 180px;
  height: 100%;
  overflow: visible;
}

.fv-is-student-area .folderView__li.js-folderView-file .folderView__visibleActions {
  top: 50%;
  right: 18px !important;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Main CTA */
.fv-is-student-area .folderView__li.js-folderView-file .fv-is-play {
  position: relative;
  width: 128px;
  height: 44px;
  margin: 0;
  border: 1px solid #151515;
  border-radius: 999px;
  background: #151515;
  color: #fff;
  text-decoration: none;
}

.fv-is-student-area .folderView__li.js-folderView-file .fv-is-play::before {
  content: "Assistir vídeo";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  color: #fff;
}

.fv-is-student-area .folderView__li.js-folderView-file .fv-is-play::after {
  display: none !important;
}

.fv-is-student-area .folderView__li.js-folderView-file .fv-is-play:hover {
  background: #000;
  border-color: #000;
}

/* Completion/status */
.fv-is-student-area .folderView__li.js-folderView-file .folderView__status {
  width: 42px;
  height: 42px;
  margin: 0;
  border: 1px solid rgba(0,0,0,.14);
  background-color: rgba(255,255,255,.7);
}

/* Hide tracking chart in student card: completion status is enough */
.fv-is-student-area .folderView__li.js-folderView-file .fv-is-tracking {
  display: none !important;
}

/* Focus */
.fv-is-student-area .folderView__li.js-folderView-file:focus-within {
  outline: 2px solid #171717 !important;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(23,23,23,.10);
}

/* Mobile */
@media (max-width: 760px) {
  .fv-is-student-area .folderView__li.js-folderView-file {
    min-height: 0;
  }

  .fv-is-student-area .folderView__li.js-folderView-file .folderView__el {
    width: 100%;
    min-height: 0;
    padding: 150px 20px 86px;
  }

  .fv-is-student-area .folderView__el.fv-is-scormorg::before {
    left: 20px;
    right: 20px;
    top: 18px;
    width: calc(100% - 40px);
    height: 112px;
  }

  .fv-is-student-area .folderView__el.fv-is-scormorg::after {
    left: 30px;
    top: 95px;
  }

  .fv-is-student-area .folderView__li.js-folderView-file .actions-wrapper {
    top: auto;
    bottom: 18px;
    left: 20px;
    right: 20px;
    width: calc(100% - 40px);
    height: 48px;
  }

  .fv-is-student-area .folderView__li.js-folderView-file .folderView__visibleActions {
    left: 0;
    right: auto !important;
    top: 0;
    transform: none;
  }

  .fv-is-student-area .folderView__li.js-folderView-file .fv-is-play {
    width: 138px;
  }
}
