/* AVATAR */

.avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--ekor-primary), var(--ekor-accent));
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
}

/* jemné pulzování */
.calling .avatar {
  animation: pulse 0.8s ease;
}

/* UI */
.ekor-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px;
   border-bottom: 1px solid rgba(0,0,0,0.05);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  position: sticky;
  top: 120px;
  z-index: 50;
  margin: 20px 0;
  scroll-margin-top: 140px;
  background: var(--nav-bg, rgba(248,250,249,0.85));
  transition: background 0.3s ease, box-shadow 0.3s ease;
  
}
.ekor-nav.scrolled {
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.ekor-nav {
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f8faf9 100%
  );
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* 🔥 ACTIVE SLIDER */
.ekor-nav-indicator {
  position: absolute;
  bottom: 4px;
  height: 3px;
  border-radius: 2px;
  transition: all 0.3s ease;
  left: 0;
  width: 0;
}

/* Linky */
.ekor-nav a {
  padding: 6px 14px;
  border-radius: 20px;
  background: #eef7f2;
  color: #1D7460;
  font-weight: 500;
  text-decoration: none;
  transition: 0.25s;
  position: relative;
}

.ekor-nav a:hover {
  background: #1D7460;
  color: #fff;
} 

.ekor-nav a.active {
  background: #1D7460;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ===== NAV underline ===== */

.ekor-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #1D7460;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}


/* hover efekt */
.ekor-nav a:hover::after {
  width: 60%;
}

/* aktivní sekce */
.ekor-nav a.active::after {
  width: 80%;
}

.ekor-subtitle {
  font-size: 14px;
  opacity: 0.7;
}


/* SEKCE */
.ekor-section {
  margin-bottom: 70px;
 scroll-margin-top: 140px;
}

.ekor-section-box {
  background: linear-gradient(180deg, #ffffff, #f3f7f4);
  border-radius: 24px;
  padding: 35px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.06);
  transform: translateZ(0);
}

.ekor-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0,0,0,0.08);
  background: linear-gradient(
    135deg,
    var(--ekor-accent-start),
    var(--ekor-accent-end)
  );
  color: #fff;
  position: relative;
  top: -1px; /* jemné doladění */
}

.ekor-badge:hover {
  transform: translateY(-1px);
  transition: 0.2s ease;
}

.section-management .ekor-section-box {
  border-left: 4px solid var(--ekor-primary);
}

/* NADPIS */
.ekor-section-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ekor-dark);
  margin-bottom: 25px;
  padding-left: 15px;
  position: relative;
  letter-spacing: 0.2px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-shadow: var(--text-shadow);

}

.ekor-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 5px;
  height: 22px;
  border-radius: 3px;
  background: linear-gradient(
    180deg,
    var(--ekor-accent-start),
    var(--ekor-accent-end)
  );
    filter: brightness(1.05);
}

/* ===== KARTA ===== */
.ekor-card {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 22px;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;  
  width: 100%;
  opacity: 0;
  /*transform: translateY(30px);*/
  transition: all 0.4s cubic-bezier(.25,.8,.25,1);
  will-change: transform, opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}
    
/* AKTIVNÍ stav */
.ekor-card.show {
  opacity: 1;
  transform: translateY(0);
}

/* gradient top */
.ekor-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--ekor-primary), var(--ekor-accent));
}

/* hover */
.ekor-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 
    0 25px 50px rgba(0,0,0,0.12),
    0 0 0 1px rgba(102,187,106,0.25);
    border-color: var(--ekor-accent-start);
}


/* HEADER */
.ekor-card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  /* pro zobrazeni karet i tabulky.ekor-card-header {*/
  min-height: 60px;
}


.ekor-card-header h5 {
  margin: 0;
  color: var(--ekor-primary);
  font-weight: 600;
}

.ekor-card-header span {
  font-size: 0.85rem;
  color: #777;
}

/* BODY */
.ekor-card-body {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ekor-card-body a {
  display: flex;
  text-decoration: none;
  color: var(--ekor-text);
  font-size: 0.95rem;
  transition: all 0.2s;
  align-items: center;
  gap: 6px;
}

.ekor-card-body i {
  color: var(--ekor-accent-start);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
}    
    

.ekor-card-body a:hover {
  color: var(--ekor-primary);
  transform: translateX(4px);
}

.ekor-card-body .bi-envelope {
  position: relative;
  top: 1.1px;
}
  
/* RESPONSIVE */

@media (max-width: 768px) {    
  .ekor-nav {
    display: none;
  }
}

@media (max-width: 768px) {
.ekor-section {
    display: block !important;
  }
.ekor-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    border-radius: 14px;
  }
}

/* Správa */
.section-management .ekor-card::before {
  background: linear-gradient(90deg, var(--ekor-accent-start), var(--ekor-accent-end));
}

/* Skládka */
.section-skladka .ekor-card::before {
  background: linear-gradient(90deg, var(--ekor-accent-start), var(--ekor-accent-end));
}

/* Linka */
.section-linka .ekor-card::before {
  background: linear-gradient(90deg, var(--ekor-accent-start), var(--ekor-accent-end));
}

/* Prodej */
.section-prodej .ekor-card::before {
  background: linear-gradient(90deg, var(--ekor-accent-start), var(--ekor-accent-end));
}

.section-management .ekor-section-box {
  border-left: 4px solid var(--ekor-primary);
}

.section-skladka .ekor-section-box {
  border-left: 4px solid #1565c0;
}

.section-linka .ekor-section-box {
  border-left: 4px solid #ef6c00;
}

.section-prodej .ekor-section-box {
  border-left: 4px solid #d4a017;
}


/* ===== GREEN (MANAGEMENT) ===== */
.ekor-section--green .ekor-section-box {
  background: #f1f8f4;
}

.ekor-section--green .ekor-section-box::before {
  background: #2e7d32;
}

/* ===== BLUE (SKLÁDKA) ===== */
.ekor-section--blue .ekor-section-box {
  background: #eef4fb;
}

.ekor-section--blue .ekor-section-box::before {
  background: #1976d2;
}

/* ===== ORANGE (LINKA) ===== */
.ekor-section--orange .ekor-section-box {
  background: #fff4ec;
}

.ekor-section--orange .ekor-section-box::before {
  background: #ef6c00;
}

/* ===== GOLD (PRODEJ) ===== */
.ekor-section--gold .ekor-section-box {
  background: #fff6dc;
}

.ekor-section--gold .ekor-section-box::before {
  background: #d4a017;
}

.ekor-section--green {
  --ekor-accent: #2e7d32;
}

.ekor-section--blue {
  --ekor-accent: #1976d2;
}

.ekor-section--orange {
  --ekor-accent: #ef6c00;
}

.ekor-section--gold {
  --ekor-accent: #d4a017;
}

.ekor-section--green .ekor-card {
  --ekor-accent: #2e7d32;
}

.ekor-section--blue .ekor-card {
  --ekor-accent: #1976d2;
}

.ekor-section--orange .ekor-card {
  --ekor-accent: #ef6c00;
}

.ekor-section--gold .ekor-card {
  --ekor-accent: #d4a017;
}


/* NAV COLOR PER SECTION */
.section-management {
  --nav-bg: rgba(47,125,50,0.08);
}

.section-skladka {
  --nav-bg: rgba(21,101,192,0.08);
}

.section-linka {
  --nav-bg: rgba(239,108,0,0.08);
}

.section-prodej {
  --nav-bg: rgba(212,160,23,0.08);
}

.ekor-section--green .avatar {
  background: #2e7d32;
}

.ekor-section--blue .avatar {
  background: #1976d2;
}

.ekor-section--orange .avatar {
  background: #ef6c00;
}

.ekor-section--gold .avatar {
  background: #d4a017;
}


/* NOVÁ TABULKA VE STYLU GRID */
.ekor-table {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ekor-row {
  display: grid;
  grid-template-columns: 2fr 2fr 1.5fr 1.5fr 2fr;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.ekor-head {
  font-weight: 600;
  font-size: 14px;
  color: #6b7280;
  background: transparent;
  box-shadow: none;
}

.ekor-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ekor-cell a {
  display: inline;
  width: 100%;  
  font-weight: 400;
  color: var(--ekor-primary);
  text-decoration: none;
  position: relative;
  transition: all 0.2s ease;
}

.ekor-cell a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background: var(--ekor-primary);
  transition: width 0.25s ease;
}

.ekor-cell a:hover::after {
  width: 100%;
}

.ekor-cell i {
  margin-right: 6px;
  color: var(--ekor-accent);
}

.ekor-section.table-view .ekor-table {
  display: flex;
}

.ekor-section.table-view .ekor-cards-wrapper {
  display: none;
}

.ekor-section:not(.table-view) .ekor-table {
  display: none;
}

.ekor-table,
.ekor-cards-wrapper {
  transition: opacity 0.25s ease;
}

.ekor-section:not(.table-view) .ekor-table {
  opacity: 0;
  pointer-events: none;
}

.ekor-section.table-view .ekor-cards-wrapper {
  opacity: 0;
  pointer-events: none;
}

.ekor-row:not(.ekor-head):hover {
  background: #f9fafb;
  transform: translateY(-1px);
  transition: 0.2s ease;
}

@media (max-width: 768px) {
  .ekor-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .ekor-cell {
    white-space: normal;
  }

  .ekor-head {
    display: none;
  }
}

@media (max-width: 768px) {
  .ekor-cell::before {
    content: attr(data-label);
    display: block;
    font-size: 12px;
    color: #888;
  }
}

.ekor-toggle {
  display: inline-flex;
  background: #e8f5e9;
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}

.toggle-btn {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #2f7d32;
  cursor: pointer;
  transition: all 0.25s ease;
}

.toggle-btn.active {
  background: #2f7d32;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.toggle-btn:hover {
  opacity: 0.85;
}

.ekor-global-toggle {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.ekor-global-toggle .toggle-btn {
  padding: 6px 12px;
  border-radius: 20px;
}

.calling {
  position: relative;
  overflow: hidden;
}

.calling::after {
  content: "📞 Volám…";
  position: absolute;
  bottom: 10px;
  right: 15px;
  background: var(--ekor-primary);
  color: white;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  opacity: 0;
  transform: translateY(10px);
  animation: callFade 0.6s forwards;
}

@keyframes callFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}


/*** DARK MODE KONTAKTY ***/

.theme-dark .ekor-container > div {
    background: #16211d !important;
}

.theme-dark .ekor-container {
    background: #16211d !important;
}

/* FORM */

.theme-dark .ekor-card {
    background: #24352f;
    color: #eaeaea;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.theme-dark .ekor-card.active {
    background: #22332d;
    border-color: var(--theme-base);
}

.theme-dark .ekor-nav {
    background: #16211d;
}

.theme-dark .ekor-nav a {
    background: #22332d;
    color: #cfe5dc;
}

.theme-dark .ekor-nav a.active {
    background: var(--theme-base);
    color: #fff;
}

.theme-dark .ekor-section-title {
    color: #ffffff;
}

.theme-dark .ekor-section {
    background: #16211d;
}

.theme-dark .ekor-card i {
    color: var(--theme-base);
}

.theme-dark .ekor-card:hover {
    transform: translateY(-5px);
    transition: 0.3s;
}


/* ===== DARK MODE – TABULKA FIX ===== */

.theme-dark .ekor-table {
    background: transparent;
}

.theme-dark .ekor-row {
    background: #1c2a25 !important;
    border: 1px solid #2a3d36;
}

.theme-dark .ekor-row.ekor-head {
    background: transparent !important;
    color: #cfe5dc;
}

.theme-dark .ekor-cell {
    color: #eaeaea;
}

.theme-dark .ekor-row a {
    color: #7bdcb5;
}

.theme-dark .ekor-row:hover {
    background: #22332d !important;
}

.theme-dark .ekor-section-box {
    background: linear-gradient(145deg, #16211d, #1c2a25);
    box-shadow: none !important;
    border: 1px solid #2a3d36;
    border-radius: 16px;
}

.theme-dark .ekor-card h5 {
    color: #ffffff;
}

.theme-dark .ekor-card span  {
    color: #a8c1b8;
}

.theme-dark .ekor-card a {
    color: #7bdcb5;
}

.theme-dark .ekor-card .text-muted i {
    color: #8fa9a0;
}

.theme-dark .ekor-card a:hover {
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

/* ===== DARK MODE – MUTED TEXT FIX ===== */

.theme-dark .text-muted {
    color: #8fa9a0 !important;
}

