/* Reset svih default stilova */
:root {
  --lwb-border-color: #dcdcdc;
  --lwb-app-header-height: 74px;
  --lwb-app-sidebar-width: 240px;
  --lwb-primary-bg: #fff;
  --lwb-primary-color: #272361;
  --lwb-app-link-color: #5b6b79;
  --lwb-app-error-color: rgb(219 27 45);
  --lwb-app-error-bg-color: rgb(220, 53, 69);
  --lwb-app-link-primary-color: rgb(91, 102, 235);
  --lwb-body-bg: rgb(249, 249, 251);
  --lwb-body-x-padding: 25px;
}

@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Bitter:ital,wght@0,100..900;1,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Osnovni stilovi za telo stranice */
body {
  font-family: "Inter", sans-serif;
  background-color: var(--lwb-body-bg);
  color: #333;
}

/* Sidebar (side meni) */
.sidebar {
  width: var(--lwb-app-sidebar-width);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1005;
  border-right: 1px solid var(--lwb-border-color);
  background-color: var(--lwb-primary-bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.3s;
}

.sidebar-collapse {
  width: 0;
  border-right: none;
}

.sidebar-logo {
  height: var(--lwb-app-header-height);
  padding: 0 12px;
}

.sidebar-link {
  padding: 10px 12px;
  position: relative;
  display: flex;
  gap: 12px;
  margin-bottom: 4px;
  align-items: center;
  text-decoration: none;
  line-height: 20px;
  font-weight: 500;
  color: var(--lwb-app-link-color);
  font-size: 14px;
  border-radius: 0.3125rem;
  transition: 0.3s;
}

.sidebar-link-active,
.sidebar-link:hover {
  background-color: var(--lwb-primary-color);
  color: var(--lwb-primary-bg);
}

.sidebar-list {
  padding: 0 12px;
  list-style-type: none;
}

/* Content wrapper – flex‐kolona, rasteže se */
.content-wrapper {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Footer stoji na dnu content-wrapper */
.site-footer {
  background: var(--lwb-primary-color);
  color: #fff;
  text-align: center;
  color: #fff;
  padding: 10px;
  position: fixed;
  bottom: 0;
  left: var(--lwb-app-sidebar-width);
  width: calc(100% - var(--lwb-app-sidebar-width));
  transition: 0.3s;
}
/* Header stil */
header {
  transition: none;
  display: flex;
  align-items: center;
  z-index: 1001;
  position: fixed;
  right: 0;
  top: 0;
  padding: 0 var(--lwb-body-x-padding);
  height: var(--lwb-app-header-height);
  background-color: var(--lwb-primary-bg);
  left: var(--lwb-app-sidebar-width);
  border-bottom: 1px solid var(--lwb-border-color);
  transition: 0.3s;
}

.header-menu {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 4px;
  border: 2px solid var(--lwb-border-color);
  transition: 0.3s;
}

.header-menu:hover {
  background-color: var(--lwb-border-color);
}

.header-menu-svg path {
  stroke: var(--lwb-primary-color);
}

/* fiksiraj workspace-desni-menju layout bez Bootstrapa */
.test-builder {
  position: relative;
}
#workspace {
  width: 100%;
  margin: 0;
  padding: 0;
  margin-top: 20px;
}

.lwb-link-primary {
  color: var(--lwb-app-link-primary-color);
  text-decoration: none;
}

.lwb-fs-12 {
  font-size: 12px;
}
.lwb-fs-14 {
  font-size: 14px;
}
.lwb-fs-16 {
  font-size: 16px;
}
.lwb-fs-24 {
  font-size: 24px;
}
.lwb-fs-28 {
  font-size: 28px;
}
.lwb-fw-400 {
  font-weight: 400;
}
.lwb-fw-500 {
  font-weight: 500;
}
.lwb-fw-600 {
  font-weight: 600;
}
.lwb-fw-700 {
  font-weight: 700;
}

.lwb-color-white {
  color: #fff !important;
}

.lwb-color-light {
  color: #878787;
}

.lwb-color-error {
  color: var(--lwb-app-error-color);
}

.row {
  flex-wrap: wrap;
  display: flex;
}

.row-normal {
  margin: 0 -12px;
}

.col-4 {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
  padding: 0 12px;
}

.col-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 12px;
}

.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 12px;
}

.d-flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-column {
  flex-direction: column;
}

.flex-1 {
  flex: 1;
}

.gap-4 {
  gap: 4px;
}

.gap-12 {
  gap: 12px;
}

.gap-25 {
  gap: 25px;
}

.h-fit-content {
  height: fit-content;
}

.align-items-center {
  align-items: center;
}

.justify-content-start {
  justify-content: flex-start !important;
}

.justify-content-between {
  justify-content: space-between;
}

.justify-content-end {
  justify-content: flex-end;
}

.text-align-right {
  text-align: right;
}

.help-text,
.text-muted {
  color: #6c757d;
  font-size: 12px;
  font-weight: 500;
}

.page-wrapper {
  margin-inline-start: var(--lwb-app-sidebar-width);
  margin-block-start: var(--lwb-app-header-height);
  padding: 20px var(--lwb-body-x-padding);
  transition: 0.3s;
  margin-bottom: 40px;
}

.body-full-width .page-wrapper {
  padding: 0;
}

.card {
  padding: 12px;
  background-color: var(--lwb-primary-bg);
  border: 1px solid var(--lwb-border-color);
  border-radius: 6px;
}

.card-login-row {
  height: calc(100vh - 155px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-login {
  width: 460px;
  margin: 0 auto;
  max-width: calc(100% - 24px);
  display: block;
  padding: 2rem;
  border: 0;
}

.card-sidebar {
  width: 300px;
}

.card-sidebar-sticky {
  position: sticky;
  top: 85px;
  overflow: hidden;
}

.card-sidebar-image {
  height: auto;
  width: 100%;
  object-fit: cover;
}

.card-no-padding {
  padding: 0;
}

.card-sidebar-border {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-sidebar-list-item-border {
  border-bottom: 1px solid #dfe2e6;
}

.card-sidebar-list-item {
  text-align: center;
}

.card-login-copy {
  font-size: 13px;
  text-align: center;
  margin-top: 24px;
  color: #141724;
  font-family: "Inter", sans-serif;
}

.card-login-title {
  text-align: center;
  font-size: 22px;
  font-weight: 500;
}

.input-file {
  max-width: 90%;
  margin: 1rem auto 0;
  display: block;
}

select,
textarea,
input:not([type="checkbox"]) {
  width: 100%;
  padding: 9px 1.125rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--lwb-app-link-color);
  appearance: none;
  background-clip: padding-box;
  border: 2px solid var(--lwb-border-color);
  border-radius: 5px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  outline: none;
  flex: 1;
}

select::placeholder,
textarea::placeholder,
input:not([type="checkbox"])::placeholder {
  color: var(--lwb-app-link-color);
  font-weight: 500;
  font-family: "Inter", sans-serif;
  outline: none;
}

select:focus,
select:hover,
select:active,
textarea:focus,
textarea:hover,
textarea:active,
input:not([type="checkbox"]):focus,
input:not([type="checkbox"]):hover,
input:not([type="checkbox"]):active {
  border-color: var(--lwb-primary-color);
  background-color: #fff !important;
}

textarea:-webkit-autofill,
input:-webkit-autofill {
  -webkit-background-clip: text;
}

.btn-text {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  outline: none;
  color: var(--lwb-app-link-color);
  font-size: 14px;
  font-weight: 500;
  font-family: "Inter", sans-serif;
  padding: 0.75rem 1.5rem;
  transition: 0.3s;
  width: 100%;
  display: flex;
  justify-content: center;
}

.btn-text:hover {
  color: #fff;
  background-color: var(--lwb-primary-color);
}

.btn-text-danger {
  color: var(--lwb-app-error-color);
}

.btn-text-danger:hover {
  color: #fff;
  background-color: var(--lwb-app-error-bg-color);
}

.button {
  padding: 9px 18px;
  border: 0;
  line-height: 21px;
  border-radius: 5px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  transition: all 0.3s ease;
}

.button-primary {
  background: var(--lwb-primary-color);
  color: var(--lwb-primary-bg);
}

.button-secondary {
  background: var(--lwb-app-link-color);
  color: var(--lwb-primary-bg);
}

.button-tertiary {
  background: #808080;
  color: var(--lwb-primary-bg);
}

.button-ternary {
  background: var(--student-dark-hover-color);
  color: var(--lwb-primary-bg);
}

.button:hover {
  opacity: 0.8;
}

.button-back-to {
  text-decoration: none;
  height: 26px;
  width: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lwb-border-color);
  border-radius: 2px;
  padding: 0;
}

.button-back-to svg {
  height: 18px;
  width: 18px;
}

.button-back-to svg polygon {
  fill: var(--lwb-app-link-color);
}

.button-small {
  padding: 6px 12px;
  font-size: 12px;
}

.m-0 {
  margin: 0 !important;
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-24 {
  margin-bottom: 24px;
}

.ml-4 {
  margin-left: 4px;
}
.ml-10 {
  margin-left: 10px;
}

.mr-4 {
  margin-right: 4px;
}
.mt-8 {
  margin-top: 8px;
}
.mt-10 {
  margin-top: 10px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-20 {
  margin-top: 20px;
}

.mt-24 {
  margin-top: 24px;
}
.mt-25 {
  margin-top: 25px;
}

.p-25 {
  padding: 25px;
}

.py-0 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.px-0 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.professor-header-row {
  border-bottom: 2px solid var(--lwb-border-color);
}

.professor-header-row .professor-cell {
  font-weight: 600;
}

.professor-data-row {
  border-bottom: 2px solid var(--lwb-border-color);
}

.professor-data-row:last-child {
  border-bottom: 0;
}

.professor-cell {
  flex: 1;
  padding: 0.875rem 0.7rem;
  display: flex;
  align-items: center;
  font-size: 14px;
}

.professor-cell-auto {
  flex: 0 0 50px;
}

.professor-cell-auto--large {
  flex: 0 0 100px;
}

.body-large header {
  left: 0;
}

.body-large .page-wrapper {
  margin-inline-start: 0;
}

.body-large .sidebar {
  left: calc(-1 * var(--lwb-app-sidebar-width));
}

.body-large .site-footer {
  left: 0;
  width: 100%;
}

/* // Tabs */
.tabset > input[type="radio"] {
  position: absolute;
  left: -200vw;
}

.tabset .tab-panel {
  display: none;
}

.tabset > input:first-child:checked ~ .tab-panels > .tab-panel:first-child,
.tabset > input:nth-child(3):checked ~ .tab-panels > .tab-panel:nth-child(2),
.tabset > input:nth-child(5):checked ~ .tab-panels > .tab-panel:nth-child(3),
.tabset > input:nth-child(7):checked ~ .tab-panels > .tab-panel:nth-child(4),
.tabset > input:nth-child(9):checked ~ .tab-panels > .tab-panel:nth-child(5),
.tabset > input:nth-child(11):checked ~ .tab-panels > .tab-panel:nth-child(6) {
  display: block;
}

.tabset > label {
  position: relative;
  display: inline-block;
  padding: 15px 15px;
  border: 1px solid transparent;
  border-bottom: 0;
  cursor: pointer;
  font-weight: 500;
  border: 0;
  border-bottom: 3px solid transparent;
}

.tabset > label:hover,
.tabset > input:focus + label,
.tabset > input:checked + label {
  color: var(--lwb-primary-color);
}

.tabset > input:checked + label {
  border-color: var(--lwb-border-color);
  margin-bottom: -1px;
  border-bottom: 3px solid var(--lwb-primary-color);
  color: var(--lwb-primary-color);
}

.tab-panel {
  padding: 30px 0;
  border-top: 2px solid var(--lwb-border-color);
}

.w-full {
  width: 100%;
}

.lwb-button-icon {
  padding: 6px;
  font-size: 12px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  transition: 0.3s;
  border: 0;
  outline: none;
  cursor: pointer;
}

.lwb-button-icon:hover {
  opacity: 0.7;
}

.lwb-button-icon-primary {
  background-color: var(--lwb-app-link-primary-color);
}

.lwb-button-icon-primary svg {
  stroke: #fff;
}

.lwb-button-icon-secondary {
  background-color: var(--lwb-app-error-bg-color);
}

.lwb-button-icon-secondary svg {
  fill: #fff;
}

.lwb-success-message {
  color: #fff;
  position: absolute;
  bottom: 50px;
  right: 25px;
  z-index: 2;
  background: #18a538;
  border-radius: 4px;
  padding: 12px;
}

/* Overrides */
.select2-container--default .select2-selection--single {
  border: 2px solid var(--lwb-border-color);
  height: 33px;
}
.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  line-height: 30px;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__clear,
.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 32px;
}

.p-left-0 {
  padding-left: 0 !important;
}

.p-right-0 {
  padding-right: 0 !important;
}
.pos-relative {
  position: relative;
}

.pos-absolute {
  position: absolute;
}

@media (max-width: 1200px) {
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  :root {
    --lwb-body-x-padding: 15px;
  }
}

@media (max-width: 767px) {
  .col-sm-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.hide-on-mobile {
  display: block;
}

@media (max-width: 767px) {
  .hide-on-mobile {
    display: none;
  }
}

.hide-on-desktop {
  display: none;
}

@media (max-width: 767px) {
  .hide-on-desktop {
    display: block;
  }
}

/* Global Modal Styles */
.modal-overlay {
  position: fixed;
  z-index: 1002;
  inset: 0;
  background: rgba(11, 11, 11, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.2s;
}

.modal-overlay.show {
  display: flex;
}

.modal-content {
  background: #fff;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalPopIn 0.3s;
  margin: auto;
  max-width: 80vw;
  padding: 10px;
  width: 80vw;
}

@keyframes modalFadeIn {
  from {
    background: rgba(0, 0, 0, 0);
  }
  to {
    background: rgba(11, 11, 11, 0.8);
  }
}

@keyframes modalPopIn {
  from {
    transform: scale(0.93) translateY(30px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Modal Mobile Responsive */
@media (max-width: 768px) {
  .modal-content {
    max-width: 100%;
    padding: 1rem;
    max-height: 100vh;
    width: 100vw;
    height: 100vh;
    display: flex;
    border-radius: 0;
    padding: 0;
  }

  .close-modal-btn {
    height: 50px;
    width: 50px;
    position: fixed;
    top: 0;
    right: 0;
    font-size: 1.5rem;
  }
}

.btn-text-blue {
  display: inline-block;
  width: fit-content;
  background-color: var(--student-accent-color);
  color: #fff;
  border-radius: 10px;
}

.btn-text-red {
  display: inline-block;
  width: fit-content;
  background-color: var(--lwb-app-error-color);
  color: #fff;
  border-radius: 10px;
}

.btn-text-green {
  border-radius: 10px;
  display: inline-block;
  width: fit-content;
  background-color: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}

.sentence-word,
.button-answer {
  padding: 8px;
  font-family: "Plus Jakarta Sans", sans-serif;
  border-radius: 4px;
  background: none;
  font-size: 14px;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  border: 0;
  color: #fff;
  transition: 0.3s;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 4px;
}

.button-answer:not(.button-answer-not-clickable):hover {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.button-answer-not-clickable {
    background: #eee;
    color: #000;
    cursor: default;
}

.text-red-700 {
  background: var(--lwb-app-error-color) !important;
  color: #fff !important;
}

.text-green-700 {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #fff !important;
}

.text-blue-700 {
  background-color: var(--student-accent-color) !important; 
  color: #fff !important;
}


.sentence-word {
  background: linear-gradient(135deg, #10b981, #059669) !important;
}


.feedback-text {
  border-radius: 6px;
  margin: 12px 0 !important;
}
