@layer kalkulacka {
/* Layout třídy */
.calc-container {
  max-width: 72em;
  margin: 0 auto;
  min-height: 100vh;
  background: transparent;
  overflow-x: hidden;
}

.calc-space-y-6 > * + * {
  margin-top: 1.5em;
}

.calc-space-y-4 > * + * {
  margin-top: 1em;
}

.calc-space-y-2 > * + * {
  margin-top: 0.5em;
}

.calc-grid {
  display: grid;
}

.calc-grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.calc-grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.calc-grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.calc-grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.calc-gap-4 {
  gap: 1em;
}

.calc-gap-8 {
  gap: 2em;
}

/* Flexbox */
.calc-flex {
  display: flex;
}

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

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

.calc-items-end {
  align-items: flex-end;
}

.calc-justify-center {
  justify-content: center;
}

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

.calc-flex-1 {
  flex: 1 1 0%;
}

.calc-flex-shrink-0 {
  flex-shrink: 0;
}

/* Pozicování */
.calc-relative {
  position: relative;
}

.calc-absolute {
  position: absolute;
}

.calc-bottom-0 {
  bottom: 0;
}

.calc-left-0 {
  left: 0;
}

.calc-sticky {
  position: sticky;
}

.calc-z-10 {
  z-index: 10;
}

.calc-z-20 {
  z-index: 20;
}

/* Card komponenty */
.calc-card {
  border-radius: 0.5em;
  background-color: #ffffff;
}

.calc-card-bg {
  background-color: #f5f2ef;
}

.calc-card-header {
  display: flex;
  flex-direction: column;
  padding: 1.5em;
}

.calc-card-title {
  font-size: 1.5em;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.025em;
  color: #1e293b;
}

.calc-card-content {
  padding: 1.5em;
  padding-top: 0;
  padding-left: 1.5em;
  background-color: #f5f2ef;
  border-bottom-left-radius: 0.5em;
  border-bottom-right-radius: 0.5em;
}

/* Input komponenty */
.calc-input {
  display: flex;
  height: 2.5em;
  width: 100%;
  border-radius: 0.375em;
  border: 1px solid #d1d5db;
  background-color: #ffffff;
  padding: 0.5em 0.75em;
  font-size: 0.875em;
  outline: none;
  transition: all 0.2s;
}

.calc-input:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.calc-input:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.calc-input::placeholder {
  color: #6b7280;
}

/* Label */
.calc-label {
  font-size: 0.875em;
  font-weight: 500;
  line-height: 1;
  color: #1e293b;
}

/* Button */
.calc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 0.375em;
  font-size: 0.875em;
  font-weight: 500;
  transition: colors 0.2s;
  outline: none;
  border: none;
  cursor: pointer;
}

.calc-button:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.calc-button:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.calc-button-default {
  height: 2.5em;
  padding: 0.5em 1em;
  background-color: #111827;
  color: #ffffff;
}

.calc-button-default:hover {
  background-color: #1f2937;
}

.calc-button-ghost {
  height: 2.5em;
  padding: 0.5em 1em;
  background-color: transparent;
  color: #374151;
}

.calc-button-ghost:hover {
  background-color: #f3f4f6;
  color: #111827;
}

.calc-button-sm {
  height: 2.25em;
  border-radius: 0.375em;
  padding: 0 0.75em;
}

.calc-button-full {
  width: 100%;
}

/* Slider */
.calc-slider-container {
  position: relative;
}

.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: #e3d6cb;
  outline: none;
  cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  border: 2px solid #ceaa62;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.calc-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
}

.calc-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  border: 2px solid #ceaa62;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.calc-slider::-moz-range-thumb:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
}

.calc-slider::-moz-range-track {
  width: 100%;
  height: 4px;
  cursor: pointer;
  background: #e5e7eb;
  border-radius: 2px;
  border: none;
}

/* Table */
.calc-table-container {
  position: relative;
  width: 100%;
  overflow: auto;
}

.calc-table {
  width: 100%;
  caption-side: bottom;
  font-size: 0.875em;
  border-collapse: separate;
  border-spacing: 0;
}

.calc-table-small {
  font-size: 0.775em;
}

.calc-table-header {
  background: transparent;
}

.calc-table-header tr {
  border-bottom: 1px solid #e5e7eb;
}

.calc-table-body tr:last-child {
  border-bottom: none;
}

.calc-table-row {
  border-bottom: 1px solid #e5e7eb;
  transition: colors 0.2s;
}

.calc-table-row:hover {
  background-color: #f9fafb;
}

.calc-table-head {
  height: 3em;
  padding: 0.5em 0.75em;
  text-align: left;
  vertical-align: middle;
  font-weight: 500;
  color: #6b7280;
  border-bottom: 1px solid #e3d6cb;
  border-right: 1px solid #e3d6cb;
}

.calc-table-cell {
  padding: 0.5em 0.75em;
  vertical-align: middle;
  border-bottom: 1px solid #e3d6cb;
  border-right: 1px solid #e3d6cb;
}

.calc-table-cell-sticky {
  position: sticky;
  left: 0;
  background-color: #f5f2ef;
  z-index: 10;
}

/* Text styly */
.calc-text-xs {
  font-size: 0.75em;
}

.calc-text-sm {
  font-size: 0.875em;
}

.calc-text-2xl {
  font-size: 1.5em;
}

.calc-text-6xl {
  font-size: 3.75em;
}

.calc-font-medium {
  font-weight: 500;
}

.calc-font-semibold {
  font-weight: 600;
}

.calc-font-bold {
  font-weight: 700;
}

.calc-text-center {
  text-align: center;
}

.calc-text-left {
  text-align: left;
}

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

.calc-uppercase {
  text-transform: uppercase;
}

.calc-tracking-wide {
  letter-spacing: 0.025em;
}

/* Barvy */
.calc-text-slate-600 {
  color: #475569;
}

.calc-text-slate-700 {
  color: #334155;
}

.calc-text-slate-800 {
  color: #1e293b;
}

.calc-text-gray-500 {
  color: #6b7280;
}

.calc-text-blue-600 {
  color: #2563eb;
}

.calc-text-blue-500 {
  color: #3b82f6;
}

.calc-text-green-600 {
  color: #16a34a;
}

.calc-text-green-300 {
  color: #86efac;
}

.calc-text-red-600 {
  color: #dc2626;
}

.calc-text-red-300 {
  color: #fca5a5;
}

.calc-text-red-500 {
  color: #ef4444;
}

.calc-text-red-700 {
  color: #b91c1c;
}

.calc-text-golden {
  color: #ceaa62;
}

/* Pozadí */
.calc-bg-transparent {
  background-color: transparent;
}

.calc-bg-white {
  background-color: #ffffff;
}

.calc-bg-gray-100 {
  background-color: #f3f4f6;
}

.calc-bg-gray-900 {
  background-color: #111827;
}

.calc-bg-slate-700 {
  background-color: #334155;
}

.calc-bg-golden {
  background-color: #ceaa62;
}

.calc-bg-blue-50 {
  background-color: #eff6ff;
}

.calc-bg-white-50 {
  background-color: rgba(255, 255, 255, 0.5);
}

/* Bordery */
.calc-border {
  border: 1px solid #e5e7eb;
}

.calc-border-stone-200 {
  border-color: #e7e5e4;
}

.calc-border-stone-300 {
  border-color: #d6d3d1;
}

.calc-border-gray-300 {
  border-color: #d1d5db;
}

.calc-border-gray-700 {
  border-color: #374151;
}

.calc-border-blue-300 {
  border-color: #93c5fd;
}

.calc-border-golden {
  border-color: #ceaa62;
}

.calc-border-custom {
  border-color: #e3d6cb;
}

.calc-border-t {
  border-top: 1px solid;
}

.calc-border-b {
  border-bottom: 1px solid;
}

.calc-border-r {
  border-right: 1px solid;
}

.calc-border-l {
  border-left: 1px solid;
}

.calc-rounded-lg {
  border-radius: 0.5em;
}

.calc-rounded-md {
  border-radius: 0.375em;
}

/* Rozměry */
.calc-w-full {
  width: 100%;
}

.calc-w-4 {
  width: 1em;
}

.calc-w-6 {
  width: 1.5em;
}

.calc-w-16 {
  width: 4em;
}

.calc-w-50 {
  width: 50px;
}

.calc-h-full {
  height: 100%;
}

.calc-h-4 {
  height: 1em;
}

.calc-h-6 {
  height: 1.5em;
}

.calc-h-10 {
  height: 2.5em;
}

.calc-h-12 {
  height: 3em;
}

.calc-h-280 {
  height: 280px;
}

.calc-h-200 {
  height: 200px;
}

.calc-h-400 {
  height: 400px;
}

.calc-min-w-250 {
  min-width: 250px;
}

.calc-min-w-8 {
  min-width: 8px;
}

.calc-max-w-200 {
  max-width: 200px;
}

.calc-max-h-60 {
  max-height: 15em;
}

/* Padding a margin */
.calc-p-2 {
  padding: 0.5em;
}

.calc-p-3 {
  padding: 0.75em;
}

.calc-p-4 {
  padding: 1em;
}

.calc-p-6 {
  padding: 1.5em;
}

.calc-px-3 {
  padding-left: 0.75em;
  padding-right: 0.75em;
}

.calc-px-4 {
  padding-left: 1em;
  padding-right: 1em;
}

.calc-py-2 {
  padding-top: 0.5em;
  padding-bottom: 0.5em;
}

.calc-pt-0 {
  padding-top: 0;
}

.calc-pt-4 {
  padding-top: 1em;
}

.calc-pt-16 {
  padding-top: 4em;
}

.calc-pl-0 {
  padding-left: 0;
}

.calc-pl-6 {
  padding-left: 1.5em;
}

.calc-pr-2 {
  padding-right: 0.5em;
}

.calc-mb-2 {
  margin-bottom: 0.5em;
}

.calc-mb-4 {
  margin-bottom: 1em;
}

.calc-mt-0 {
  margin-top: 0;
}

.calc-mt-2 {
  margin-top: 0.5em;
}

.calc-mt-4 {
  margin-top: 1em;
}

.calc-mt-6 {
  margin-top: 1.5em;
}

.calc-mt-8 {
  margin-top: 2em;
}

.calc-mr-2 {
  margin-right: 0.5em;
}

.calc-ml-2 {
  margin-left: 0.5em;
}

/* Stíny */
.calc-shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.calc-shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Overflow */
.calc-overflow-hidden {
  overflow: hidden;
}

.calc-overflow-x-hidden {
  overflow-x: hidden;
}

.calc-overflow-x-auto {
  overflow-x: auto;
}

.calc-overflow-y-auto {
  overflow-y: auto;
}

/* Whitespace */
.calc-whitespace-nowrap {
  white-space: nowrap;
}

.calc-text-ellipsis {
  text-overflow: ellipsis;
}

/* Transitions */
.calc-transition-colors {
  transition-property: color, background-color, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.calc-transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

/* Opacity */
.calc-opacity-0 {
  opacity: 0;
}

.calc-opacity-100 {
  opacity: 1;
}

/* Transform */
.calc-transform {
  transform: var(--tw-transform);
}

.calc-translate-x-1\/2 {
  transform: translateX(-50%);
}

/* Pointer events */
.calc-pointer-events-none {
  pointer-events: none;
}

/* Cursor */
.calc-cursor-pointer {
  cursor: pointer;
}

/* Group hover efekty */
.calc-group:hover .calc-group-hover-opacity-100 {
  opacity: 1;
}

/* Chart specifické styly */
.calc-chart-container {
  gap: 2px;
  align-items: flex-end; /* Přidáno pro zarovnání sloupců dolů */
}

.calc-chart-bar {
  border: 1px solid;
}

.calc-chart-bar-slate {
  background-color: #334155;
  border-color: #334155;
}

.calc-chart-bar-golden {
  background-color: #ceaa62;
  border-color: #ceaa62;
}

.calc-chart-bars-container {
  display: flex;
  align-items: flex-end;
  flex: 1;
  height: 100%;
  gap: 2px;
}

/* Tooltip */
.calc-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 0.5em;
  padding: 0.5em 0.75em;
  background-color: #111827;
  color: #ffffff;
  font-size: 0.75em;
  border-radius: 0.5em;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  z-index: 20;
  white-space: nowrap;
  border: 1px solid #374151;
  max-width: 200px;
  text-align: center;
}

/* Tooltip pozicování pro pravou stranu */
.calc-group:nth-last-child(-n + 3) .calc-tooltip {
  left: auto;
  right: 0;
  transform: none;
}

/* Tooltip pozicování pro levou stranu */
.calc-group:nth-child(-n + 3) .calc-tooltip {
  left: 0;
  transform: none;
}

.calc-group:hover .calc-tooltip {
  opacity: 1;
}

.calc-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid #111827;
}

/* Šipka pro tooltip na pravé straně */
.calc-group:nth-last-child(-n + 3) .calc-tooltip::after {
  left: auto;
  right: 1em;
  transform: none;
}

/* Šipka pro tooltip na levé straně */
.calc-group:nth-child(-n + 3) .calc-tooltip::after {
  left: 1em;
  transform: none;
}

/* Responsive */
@media (min-width: 768px) {
  .calc-md-grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calc-md-grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .calc-lg-grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calc-lg-grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .calc-lg-grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .calc-xl-grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}



#investment-calculator .border {
    border-style: solid;
}

}