@charset "UTF-8";
/*--- Fonts ---*/
/* Fonty jsou načteny přes Google Fonts (standardní Tailwind/Flowbite řešení) */
/* Inter font je definován v tailwind.config.js a používá se přes třídu font-sans */
/* Fonty se načítají v header.tailwind.tpl přes Google Fonts CDN */

/*--- X-Editable Plugin Styles ---*/
/* Minimální styly pro x-editable JavaScript plugin - nelze nahradit Tailwind */
/* X-editable plugin umožňuje inline editaci - kliknutím na element se zobrazí editor */

/* Editable element - základní styly */
.editable {
  cursor: pointer;
  position: relative;
}

.editable:hover {
  background-color: rgba(24, 64, 218, 0.05);
  border-radius: 4px;
}

/* Editable input wrapper - input-style editable */
.editable-input-wrapper {
  cursor: pointer;
}

.editable-input-wrapper:hover .editable-value {
  border-color: #1840DA;
}

.editable-input-wrapper .editable-value {
  cursor: pointer;
  transition: border-color 0.2s;
}

.editable-input-wrapper .editable-edit-btn {
  pointer-events: auto;
  z-index: 1;
}

.editable i {
  color: #52525C;
  font-size: 0.875em;
  transition: color 0.2s;
}

/* Don't apply hover background to input-wrapper */
.editable-input-wrapper:hover {
  background-color: transparent;
}

/* Style dynamically created x-editable form inside input wrapper */
.editable-container.editable-inline {
  width: 100%;
  max-width: 36rem; /* max-w-xl */
}

.editable-container.editable-inline .editableform {
  width: 100%;
  max-width: 36rem;
}

.editable-container.editable-inline .editableform .control-group {
  width: 100%;
}

.editable-container.editable-inline .editableform .control-group > div:first-child {
  width: 100%;
}

.editable-container.editable-inline .editableform .editable-input {
  width: auto;
}

.editable-container.editable-inline .editableform .form-control {
  width: 100%;
  min-width: 60px;
}

.editable-container.editable-inline .editableform .year.form-control {
  min-width: 80px;
}

/* Editable form - formulář, který se zobrazí při editaci */
.editableform {
  margin-bottom: 0;
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
}

.editableform .control-group {
  z-index: 2;
  margin-bottom: 0;
  line-height: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.editableform .form-control {
  width: auto;
  min-width: 200px;
}

.editableform .control-group input,
.editableform .control-group textarea,
.editableform .control-group select {
  background-color: #FCFCFD;
  border: 1px solid #E9EAEB;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.editableform .control-group input:focus,
.editableform .control-group textarea:focus,
.editableform .control-group select:focus {
  outline: none;
  border-color: #1840DA;
  box-shadow: 0 0 0 3px rgba(24, 64, 218, 0.1);
}

/* Editable input wrapper */
.editable-input {
  vertical-align: top;
  display: inline-block;
  width: auto;
  white-space: normal;
}

/* Wrapper pro input a tlačítka - zobrazit vedle sebe */
.editableform .control-group > div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  white-space: nowrap;
}

/* Textarea layout - davani buttons pod textarea */

.editableform .editable-textarea-layout {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.editableform .editable-textarea-layout .editable-input,
.editableform .editable-textarea-layout .editable-input textarea {
  width: 100%;
}

.editableform .editable-textarea-layout .editable-buttons {
  width: 100%;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 0;
}

.editableform .editable-textarea-layout .editable-buttons .editable-submit,
.editableform .editable-textarea-layout .editable-buttons .editable-cancel {
  margin-left: 0 !important;
}

.moveIcon,
.moveIcon-handle {
  cursor: grab !important;
}

.moveIcon:active,
.moveIcon-handle:active {
  cursor: grabbing !important;
}

.moveIcon-handle {
  float: none !important;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@supports selector(:has(*)) {
  .editableform .control-group > div:has(.editable-input textarea) {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .editableform .control-group > div:has(.editable-input textarea) .editable-input,
  .editableform .control-group > div:has(.editable-input textarea) .editable-input textarea {
    width: 100%;
  }

  .editableform .control-group > div:has(.editable-input textarea) .editable-buttons {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 0;
  }

  .editableform .control-group > div:has(.editable-input textarea) .editable-buttons .editable-submit,
  .editableform .control-group > div:has(.editable-input textarea) .editable-buttons .editable-cancel {
    margin-left: 0 !important;
  }
}

/* Editable buttons - tlačítka Uložit/Zrušit */
.editable-buttons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 0;
  margin-top: 4px;
  flex-shrink: 0;
}

.editable-buttons button {
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 70px;
  text-align: center;
}

/* Override pro čtvercová tlačítka - submit a cancel */
.editable-buttons button.editable-submit,
.editable-buttons button.editable-cancel {
  min-width: 30px !important;
}

.editable-buttons .editable-submit {
  background-color: #1840DA !important;
  color: white !important;
  border-color: #1840DA !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 12px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  font-size: 14px;
  margin-left: 8px !important;
}

.editable-buttons .editable-submit:hover {
  background-color: #1333ae;
  border-color: #1333ae;
}

.editable-buttons .editable-submit i {
  font-size: 16px;
  color: white;
  line-height: 1;
}

.editable-buttons .editable-cancel {
  background-color: white !important;
  color: #1F2937 !important;
  border: 1px solid #9CA3AF !important;
  margin-left: 8px !important;
  font-weight: 500;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  position: relative;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 12px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  font-size: 14px;
}

.editable-buttons .editable-cancel i {
  font-size: 16px !important;
  color: #1F2937 !important;
  line-height: 1;
  display: inline-block !important;
}


.editable-buttons .editable-cancel:hover {
  background-color: #F3F4F6;
  border-color: #6B7280;
  color: #111827;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.editable-buttons .editable-cancel:focus {
  outline: none;
  border-color: #4B5563;
  box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.2);
  color: #111827;
}

.editable-buttons .editable-cancel:active {
  background-color: #E5E7EB;
  border-color: #4B5563;
}


/* Editable click - styl pro klikatelný element */
.editable-click,
a.editable-click,
a.editable-click:hover {
  text-decoration: none;
}

/* Editable error - chybové hlášky */
.editableform .control-group .editable-error-block {
  font-size: 14px;
  color: #DC2626;
  margin-top: 4px;
  margin-left: 0;
  width: 100%;
  white-space: normal;
  display: block;
}

.editable-error {
  color: #DC2626;
}

/* Editable empty - prázdný stav */
.editable-empty,
.editable-empty:hover,
.editable-empty:focus {
  font-style: italic;
  color: #DC2626;
  text-decoration: none;
}

/* Editable disabled - zakázaný stav */
.editable-click.editable-disabled,
a.editable-click.editable-disabled,
a.editable-click.editable-disabled:hover {
  color: #9CA3AF;
  cursor: not-allowed;
  border-bottom: none;
  opacity: 0.6;
}

.editable-click, a.editable-click, a.editable-click:hover {
  border-bottom: none;
}

td>.editable-click, td>a.editable-click, td>a.editable-click:hover {
  border-bottom: none;
}

/* Editable container - wrapper pro editable form */
.editable-container.editable-inline {
  display: inline-block;
  vertical-align: middle;
}

/* --- Flowbite Tabs (global normalization to styleguide look) --- */
/* Vyjmuto #events-tabs, #questions-tabs-pill – mají vlastní pill styly v list.tpl / asks.tpl */
[data-tabs-toggle]:not(#events-tabs):not(#questions-tabs-pill) [data-tabs-target] {
  border-color: transparent;
  color: #52525C; /* body */
  background-color: transparent;
}

[data-tabs-toggle]:not(#events-tabs):not(#questions-tabs-pill) [data-tabs-target].active,
[data-tabs-toggle]:not(#events-tabs):not(#questions-tabs-pill) [data-tabs-target][aria-selected="true"] {
  border-color: #1840DA; /* brand */
  color: #1840DA;
  background-color: transparent;
  box-shadow: none;
}

[data-tabs-toggle]:not(#events-tabs):not(#questions-tabs-pill) [data-tabs-target]:hover,
.sessions-tab-link:hover,
.session-drawer-tab:hover {
  color: #1840DA; /* brand */
  border-color: #1840DA; /* brand */
}

/* Pill tabs – badge v asks (questions-tabs-pill) mění styl podle aktivního tabu */
#questions-tabs-pill [data-tabs-target] .questions-tab-badge {
  background-color: #fafafa; /* bg-secondary-medium */
  border-color: #e4e4e7; /* border-base-medium */
  color: #52525C; /* body */
}
#questions-tabs-pill [data-tabs-target][aria-selected="true"] .questions-tab-badge {
  background-color: #ecfdf5; /* bg-success-soft */
  border-color: #A4F4CF; /* border-success-subtle */
  color: #004F3B; /* fg-success-strong */
}


.editable-container.editable-popup {
  max-width: none !important;
}

/* Form control editable - kombinace s form-control */
.form-control.editable {
  height: auto;
  border: 1px solid #E9EAEB;
}

/* Loading state */
.editableform-loading {
  background: url('../js/x-editable-1.5.1/bootstrap3-editable/img/loading.gif') center center no-repeat;
  height: 25px;
  width: auto;
  min-width: 25px;
}

/* Buttons margin fix */
.btn + .btn.no-margin-left {
  margin-left: 0px;
}

/*--- Tailwind Button Override ---*/
/* Zajištění, že Tailwind utility třídy pro pozadí tlačítek fungují správně */
/* Tailwind resetuje button na transparent (řádek 352 v tailwind.css), takže musíme zajistit, že utility třídy mají přednost */
/* Používáme selektor, který cílí na tlačítka s Tailwind utility třídami pro pozadí */

/* editable input different width by element - specifické pro různé moduly */
#eventDetail .form-control.input-sm {
  width: 350px;
}

#programModul .form-control.input-sm {
  width: 300px;
}

#localityModule .form-control.input-sm {
  width: 300px;
}

#invitationModule .form-control.input-sm {
  width: 300px;
}

/*--- Event Module Selection ---*/
/* Specifické styly pro výběr modulů - komplexní komponenta */
div[rel=se-event-add] .event-module label {
  cursor: pointer;
}

div[rel=se-event-add] .event-module label.checked {
  border-color: rgb(59 130 246) !important;
}


/*--- Navigation Container Override ---*/
/* Override pro Tailwind navigaci - dočasné, dokud se nepřesune kompletně na Tailwind */
#navigationContainerTailwind {
  display: flex !important;
}

/*--- SVG ---*/
svg {
  max-width: 100% !important;
}


.select2-flowbite-container .select2-selection {
  min-height: 42px !important;
  border: 1px solid #d1d5db !important;
  border-radius: 0.75rem !important;
  background-color: #f9fafb !important;
  padding: 0.5rem 0.75rem !important;
  font-size: 0.875rem !important;
  line-height: 1.25rem !important;
  color: #111827 !important;
  transition: all 0.2s !important;
}

.select2-flowbite-container.select2-container--focus .select2-selection,
.select2-flowbite-container.select2-container--open .select2-selection {
  border-color: #1840DA !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2) !important;
  outline: none !important;
}

.select2-flowbite-container .select2-selection__choice {
  background-color: #1840DA !important;
  border: 1px solid #1840DA !important;
  color: #ffffff !important;
  border-radius: 0.5rem !important;
  padding: 0.25rem 0.5rem !important;
  margin: 0.125rem !important;
  font-size: 0.875rem !important;
  line-height: 1.25rem !important;
}

.select2-flowbite-container .select2-selection__choice__remove {
  color: #ffffff !important;
  margin-right: 0.25rem !important;
  font-weight: bold !important;
}

.select2-flowbite-container .select2-selection__choice__remove:hover {
  color: #e5e7eb !important;
}

.select2-flowbite-container .select2-selection__placeholder {
  color: #6b7280 !important;
}

.select2-flowbite-dropdown {
  border: 1px solid #d1d5db !important;
  border-radius: 0.75rem !important ;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
  margin-top: 0.25rem !important;
  background-color: #ffffff !important;
}

.select2-flowbite-dropdown .select2-search__field {
  border: 1px solid #d1d5db !important;
  border-radius: 0.5rem !important;
  padding: 0.5rem 0.75rem !important;
  font-size: 0.875rem !important;
  margin: 0.5rem !important;
  width: calc(100% - 1rem) !important;
}

.select2-flowbite-dropdown .select2-results__option {
  padding: 0.75rem !important;
  font-size: 0.875rem !important;
  color: #111827 !important;
}

.select2-flowbite-dropdown .select2-results__option--highlighted {
  background-color: #eff6ff !important;
  color: #1e40af !important;
}

.select2-flowbite-dropdown .select2-results__option[aria-selected="true"] {
  background-color: #1840DA !important;
  color: #ffffff !important;
}

input.no-spin::-webkit-outer-spin-button,
input.no-spin::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input.no-spin {
    -moz-appearance: textfield;
}

.placeholder-row span.bg-tertiary {
  background-color: transparent !important;
  border-radius: 0 !important;
}

.test-row {
  display: none;
  transition: all 200ms ease;
}

/*--- SE Multiselect (Flowbite-like) ---*/
.se-multiselect-wrapper {
  position: relative;
}
.se-multiselect-wrapper .se-multiselect-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.se-multiselect-trigger {
  outline: none;
}
.se-multiselect-trigger:focus {
  outline: none;
}
.se-multiselect-dropdown {
  left: 0;
  right: 0;
}
.se-multiselect-badge {
  display: inline-flex;
  align-items: center;
}
.se-multiselect-badge .se-multiselect-badge-remove {
  margin-left: 2px;
}

/* Flowbite Datepicker – z-index nad drawer/modal (drawer má z-80) */
.datepicker-dropdown,
.datepicker.dropdown {
  z-index: 9999 !important;
}

/* Bootstrap datepicker legacy CSS hides direct child divs (.datepicker > div).
   Flowbite datepicker renders calendar in .datepicker-picker, so force it visible. */
.datepicker.datepicker-dropdown > .datepicker-picker,
.datepicker.dropdown > .datepicker-picker {
  display: inline-block !important;
}

/*--- Simple 24h Timepicker (Flowbite-styled) ---*/
.simple-timepicker-24h-dropdown {
  z-index: 9999;
}
.simple-timepicker-24h-dropdown .simple-timepicker-hours,
.simple-timepicker-24h-dropdown .simple-timepicker-minutes {
  max-height: 180px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.exhibitor-sortable-helper-table { border-collapse: collapse; background: var(--color-primary-soft, #fff); box-shadow: 0 4px 12px rgba(0,0,0,0.15); z-index: 9999; }
tr.exhibitor-sortable-placeholder { background: rgba(0,0,0,0.04); }

@property --abf {
  syntax: "<number>";
  inherits: false;
  initial-value: 0.35;
}

.ask-pill-wrap {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 50;
  pointer-events: none;
  transition: opacity .3s cubic-bezier(0.22, 1, 0.36, 1), transform .3s cubic-bezier(0.22, 1, 0.36, 1);
}

.ask-pill-wrap.is-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(16px);
}

.ask-pill-wrap::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  background: linear-gradient(
    45deg,
    rgba(255, 205, 110, 0.70) 0%,
    rgba(255, 180, 145, 0.60) 22%,
    rgba(255, 175, 195, 0.55) 44%,
    rgba(225, 175, 230, 0.55) 66%,
    rgba(180, 145, 220, 0.65) 88%,
    rgba(155, 110, 215, 0.70) 100%
  );
  background-size: 240% 240%;
  filter: blur(12px);
  opacity: .65;
  animation: ask-pill-glow 8s ease-in-out infinite;
  transition: opacity .4s ease, inset .4s ease, filter .4s ease;
  pointer-events: none;
}

.ask-pill-wrap:has(.ask-pill:focus-within)::before {
  opacity: 1;
  inset: -18px;
  filter: blur(26px);
}

@media (hover: hover) and (pointer: fine) {
  .ask-pill-wrap:has(.ask-pill:hover)::before {
    opacity: 1;
    inset: -18px;
    filter: blur(26px);
  }
}

.ask-pill {
  --abf: 0.35;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 22px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(
      45deg,
      rgba(255, 205, 110, var(--abf)) 0%,
      rgba(255, 180, 145, var(--abf)) 22%,
      rgba(255, 175, 195, var(--abf)) 44%,
      rgba(225, 175, 230, var(--abf)) 66%,
      rgba(180, 145, 220, var(--abf)) 88%,
      rgba(155, 110, 215, var(--abf)) 100%
    ) border-box;
  background-size: auto, 240% 240%;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1;
  color: #3C3F75;
  cursor: text;
  pointer-events: auto;
  box-shadow: 0 4px 14px rgba(11, 14, 96, 0.05);
  animation: ask-pill-border-glow 8s ease-in-out infinite;
  transition:
    transform .25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow .25s cubic-bezier(0.22, 1, 0.36, 1),
    --abf .3s cubic-bezier(0.22, 1, 0.36, 1);
}

.ask-pill:focus-within {
  --abf: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(11, 14, 96, 0.08);
}

@media (hover: hover) and (pointer: fine) {
  .ask-pill:hover {
    --abf: 0.95;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(11, 14, 96, 0.08);
  }
}

.ask-pill__input {
  width: 180px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  color: #3C3F75;
  letter-spacing: inherit;
  transition: width .3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: none;
}

.ask-pill-wrap .ask-pill__input,
.ask-pill-wrap .ask-pill__input:focus,
.ask-pill-wrap .ask-pill__input:focus-visible {
  outline: 0 !important;
  box-shadow: none !important;
  border: 0 !important;
}

.ask-pill:focus-within .ask-pill__input {
  width: min(440px, calc(100vw - 100px));
}

.ask-pill__input::placeholder {
  color: #85858E;
  opacity: 1;
}

.ask-pill__send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: #F4F4F5;
  color: #52525C;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background .2s ease,
    color .2s ease,
    transform .14s cubic-bezier(0.22, 1, 0.36, 1);
}

.ask-pill:has(.ask-pill__input:not(:placeholder-shown)) .ask-pill__send {
  background: #0A0E60;
  color: #fff;
}

@media (hover: hover) and (pointer: fine) {
  .ask-pill__send:hover {
    background: #ECECEF;
  }

  .ask-pill:has(.ask-pill__input:not(:placeholder-shown)) .ask-pill__send:hover {
    background: #1B2080;
  }
}

.ask-pill__send:active {
  transform: scale(0.94);
}

@keyframes ask-pill-glow {
  0%, 100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes ask-pill-border-glow {
  0%, 100% {
    background-position: 0% 50%, 0% 50%;
  }

  50% {
    background-position: 0% 50%, 100% 50%;
  }
}

@media (max-width: 480px) {
  .ask-pill-wrap {
    bottom: 24px;
  }

  .ask-pill {
    padding: 6px 6px 6px 16px;
    gap: 10px;
  }

  .ask-pill__input {
    width: 180px;
    font-size: 14px;
  }

  .ask-pill__send {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 360px) {
  .ask-pill {
    padding: 5px 5px 5px 14px;
    gap: 8px;
  }

  .ask-pill__input {
    width: 160px;
    font-size: 12px;
  }

  .ask-pill__send {
    width: 26px;
    height: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ask-pill,
  .ask-pill-wrap::before {
    animation: none;
  }
}
