 /* Импорт на Roboto Flex */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght@8..144,400..700&display=swap');

/*
html {
  transform: scale(var(--global-scale, 1));
  transform-origin: top center;
}

:root {
  --global-scale: 1;
}/**/

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: white;
}

.bg-login {
  background: url('images_new/bckgrnd.jpg') no-repeat center center fixed;
  background-size: cover;
}

.login-container {
  position: absolute;
  top: 50%;
  left: 40px;
  transform: translateY(-50%);
  width: 320px;
  padding: 30px;
  background-color: rgba(0, 0, 0, 0.45);
  border-radius: 10px;
  color: white;
}

/* Логото с повече въздух */
.login-container img.logo {
  width: 180px;
  display: block;
  margin: 0 auto 40px auto;   /* увеличено: 40px под логото */
  border-radius: 5px;
}

.login-container h2 {
  text-align: left;
  margin-top: 40px;     /* Например, повече място над "Log in" */
  margin-bottom: 20px;  /* Мястото под него */
}

/* Лейбъл с повече място надолу */
.login-container label {
  display: block;
  margin-bottom: 18px;        /* увеличено */
  font-weight: 500;
  font-size: 15px;
}

/* Input-ите с повече въздух надолу */
.login-container input[type="text"],
.login-container input[type="email"],
.login-container input[type="password"] {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  margin-bottom: 28px;        /* увеличено: двойно повече */
  box-sizing: border-box;
  display: block;
}

/* Бутонът с повече въздух */
.login-container button {
  background-color: #0094fa;
  color: white;
  cursor: pointer;
  margin-bottom: 28px;        /* увеличено */
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
  display: block;
}

.login-container button:hover {
  background-color: #0077cc;
}

/* Линковете - по един празен ред между тях */
.login-container a {
  display: block;
  margin-top: 18px;           /* по-голямо разстояние */
  font-size: 13px;
  color: #cce0ff;
  text-decoration: none;
}

.login-container a:hover {
  text-decoration: underline;
}

.consent-row {
    display: flex;
    align-items: center;
    gap: 8px; /* разстояние между чекбокса и текста */
}

.consent-row a {
    display: inline; /* да не чупи реда */
    margin-top: 0;   /* премахва горния маргин, който имаш за другите линкове */
}

.powered-by {
  margin-top: 32px;           /* разстоянието между "Read our..." и Powered by */
  text-align: center;
  font-size: 13px;
  color: #fff;
  opacity: 0.85;
  padding-top: 14px;
  padding-bottom: 6px;
}

@media (max-width: 600px) {
  body.bg-login {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;     /* пълна височина на екрана */
    padding: 0;
    margin: 0;
  }

  .login-container {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 80%;
    height: 80vh;           /* 80% от височината */
    padding: 32px 20px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.65);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .login-container img.logo {
    width: 140px;
    margin: 0 auto 30px auto;
  }

  .login-container h2 {
    text-align: center;
    margin: 10px 0 24px 0;
    font-size: 22px;
  }

  .login-container label {
    font-size: 15px;
  }

  .login-container input,
  .login-container button {
    font-size: 16px;
    padding: 14px;
  }

  .login-container a {
    font-size: 14px;
    text-align: center;
  }

  .powered-by {
    margin-top: auto;
    text-align: center;
    font-size: 13px;
    padding-top: 20px;
  }
}

.popup-backdrop {
  position: fixed;
  border-radius: 12px;
  z-index: 1000;
  left: 50%;
  top: 50%;
  width: 18vw;
  height: 25vh;
  transform: translate(-50%, -50%);
  background: rgba(18, 24, 34, 0.80);
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-modal {
  position: fixed;
  top: 51%;
  left: 51%;
  transform: translate(-50%, -50%);
  background: #23292e;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 36px #000a;
  padding: 32px 28px 24px 28px;
  width: 12.5vw;
  height: 12.5vh;
  min-width: 220px;
  min-height: 120px;
  max-width: 94vw;
  max-height: 90vh;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center; /* Центрира съдържанието в модала */
}

@media (max-width: 700px) {
  .popup-backdrop {
    left: 1vw;
    top: 6vh;
    width: 98vw;
    height: 88vh;
  }
  .popup-modal {
    width: 88vw;
    min-width: unset;
    height: auto;
    min-height: unset;
    padding: 8vw 2vw;
  }
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f1f1f1;
  padding: 12px 24px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.topbar .left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar .logo {
  height: 48px;
  border-radius: 6px;
  margin-right: 64px; /* или 32px, ако искаш още повече */
}

.nav-links a {
  margin: 0 12px;
  color: #000;
  font-weight: bold;
  text-decoration: none;
  font-size: 15px;
}

.nav-links a:hover {
  text-decoration: underline;
}

.user-icons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-icons img {
  height: 32px;
  width: 32px;
  object-fit: contain;
  cursor: pointer;
}

.icon-notification img {
  width: 31px;
  height: 31px;
  object-fit: contain;
  display: block;
  border-radius: 50%; /* ако искаш всички да са кръгли, иначе го махни */
  background: #0094fa; /* ако искаш всички да са със син фон */
  /* padding: 6px; /* махаш, ако картинките са с фонове */
}

.icon-notification {
  position: relative;
  display: inline-block;
}

.icon-notification .badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: red;
  color: white;
  border-radius: 50%;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 5px;
  line-height: 1;
}

.user-icons img:active {
  filter: brightness(0) saturate(100%) invert(27%) sepia(93%) saturate(747%) hue-rotate(181deg) brightness(99%) contrast(96%);
}

.user-icons img:hover {
  filter: brightness(0.85);
  cursor: pointer;
}

.right.user-icons {
  display: flex;
  align-items: center;
  gap: 20px; /* или 20px ако предпочиташ по-компактно */
}

.right.user-icons img {
  width: 31px;
  height: 31px;
  object-fit: contain;
  display: block;
  border-radius: 50%; /* ако искаш всички да са кръгли, иначе го махни */
  background: #0094fa; /* ако искаш всички да са със син фон */
  /* padding: 6px; /* махаш, ако картинките са с фонове */
}

/* Базово (флуидни размери) */
.new-dataset-btn{
  display:inline-flex;                 /* по-лесно центриране */
  align-items:center;
  justify-content:center;

  padding: clamp(10px, 1.2vw, 14px) clamp(18px, 2.2vw, 28px);
  font-size: clamp(14px, 1.3vw, 18px);
  border-radius: clamp(6px, 0.8vw, 6px);

  background:#0094fa;
  color:#fff;
  border:1px solid #bbb;
  font-weight:bold;
  text-decoration:none;
  line-height:1;
  box-sizing:border-box;

  /* ширината расте, но има разумни граници */
  width: clamp(160px, 28vw, 220px);
  transition: background .2s;
}

.new-dataset-btn:hover{ background:#0077cc; text-decoration:none; }
.new-dataset-btn:active{ transform: translateY(1px); }


/* стои „натиснат“ през целия upload */
.new-dataset-btn:disabled,
.new-dataset-btn.uploading {
  background:#0077cc;
  transform: translateY(1px);
  cursor: progress;
  pointer-events: none; /* без двойни кликове */
}

/* Контейнерът да помага при малки екрани */
.new-dataset-button-container{
  display:flex;
  justify-content:flex-end;
  gap:12px;
  padding: 20px 40px 0 40px;
}

/* Телефони: бутонът става 100% ширина и центриран */
@media (max-width: 600px){
  .new-dataset-button-container{ padding:16px; justify-content:center; }
  .new-dataset-btn{
    width:100%;
    max-width:420px;    /* по желание „горен“ лимит */
  }
}


/* Hamburger бутон по подразбиране скрит */
/* Перфектно центрирани burger-линии */
.hamburger{
  width: 48px;
  height: 48px;
  padding: 0;
  position: relative;
  display: inline-block;
  background:#0094fa;
  border:1px solid #bbb;
  border-radius: 6px;
  color: transparent;      /* скрива ☰, за да не пречи */
}

/* средната линия + горна и долна чрез box-shadow */
.hamburger::before{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:22px;              /* дължина на чертите */
  height:3px;              /* дебелина */
  background:#fff;
  border-radius:2px;
  transform:translate(-50%,-50%);
  box-shadow: 0 -7px 0 #fff, 0 7px 0 #fff;  /* горна и долна линия */
}

.hamburger:hover{ background:#0077cc; }
.hamburger:focus-visible{ outline:2px solid #80c6ff; outline-offset:2px; }

.new-dataset-btn-1{
  display:inline-flex;                 /* лесно центриране на текста/икони */
  align-items:left;
  justify-content:center;

  padding: clamp(12px, 1.2vw, 14px) clamp(18px, 2.6vw, 34px) !important;
  font-size: clamp(14px, 1.3vw, 18px);
  border-radius: clamp(6px, 0.8vw, 6px);

  background:#0094fa;
  color:#fff;
  border:1px solid #bbb;
  font-weight:bold;
  text-decoration:none;
  line-height:1;
  box-sizing:border-box;
  margin-bottom: 5px;
  margin-top: 1px;

  /* ширината се адаптира, но има разумни граници */
  width: clamp(160px, 36vw, 80%);

  transition: background .2s, transform .06s;
}
.new-dataset-btn-1:hover{ background:#0077cc; text-decoration:none; }
.new-dataset-btn-1:active{ transform: translateY(1px); }

/* състояние при качване/disabled – по желание */
.new-dataset-btn-1.uploading,
.new-dataset-btn-1:disabled{
  background:#7fbff1;
  cursor: not-allowed;
}

.new-dataset-btn-2{
  display:inline-flex;                 /* лесно центриране на текста/икони */
  align-items:left;
  justify-content:center;

  padding: clamp(12px, 1.2vw, 14px) clamp(18px, 2.6vw, 34px) !important;
  font-size: clamp(14px, 1.3vw, 18px);
  border-radius: clamp(6px, 0.8vw, 6px);

  /*background:#fff;/**/
  color:#0077cc;
  border:1px solid #bbb;
  font-weight:bold;
  text-decoration:none;
  line-height:1;
  box-sizing:border-box;
  margin-bottom: 5px;
  margin-top: 1px;

  /* ширината се адаптира, но има разумни граници */
  width: clamp(160px, 36vw, 80%);

  transition: background .2s, transform .06s;
}
.new-dataset-btn-2:hover{ background:#0077cc; text-decoration:none; color: #fff;}
.new-dataset-btn-2:active{ transform: translateY(1px); }

/* състояние при качване/disabled – по желание */
.new-dataset-btn-2.uploading,
.new-dataset-btn-2:disabled{
  background:#7fbff1;
  cursor: not-allowed;
}

.new-dataset-btn-1,
.new-dataset-btn-2 {
  display: inline-block !important; /* пълен контрол */
  height: 48px !important;          /* или каквото искаш */
  margin-top: 4.5px;
  margin-bottom: 6px;
}

.new-dataset-btn-12{
  display:inline-flex;                 /* лесно центриране на текста/икони */
  align-items:left;
  justify-content:center;

  padding: clamp(6px, 1.2vw, 14px) clamp(16px, 2.6vw, 10px);
  font-size: clamp(14px, 1.2vw, 15px);
  border-radius: clamp(6px, 0.8vw, 6px);

  background:#0094fa;
  color:#fff;
  border:1px solid #bbb;
  font-weight:bold;
  text-decoration:none;
  line-height:1;
  box-sizing:border-box;
  margin-bottom: 5px;
  margin-top: 1px;

  /* ширината се адаптира, но има разумни граници */
  width: clamp(80px, 36vw, 80%);

  transition: background .2s, transform .06s;
}
.new-dataset-btn-12:hover{ background:#0077cc; text-decoration:none; }
.new-dataset-btn-12:active{ transform: translateY(1px); }

/* състояние при качване/disabled – по желание */
.new-dataset-btn-12.uploading,
.new-dataset-btn-12:disabled{
  background:#7fbff1;
  cursor: not-allowed;
}

.space_1{margin-top: 6px;}
.space_2{margin-top: 1px;}

.btn-wrap { 
  display:block; 
  width: clamp(160px, 36vw, 80%); 
}
.btn-wrap .new-dataset-btn-1 { width:100%; display:inline-flex; }

.btn-wrap .new-dataset-btn-2 { width:100%; display:inline-flex; }

/* телефони: 100% ширина и център */
@media (max-width: 600px){
  .new-dataset-btn-1{
    width:85%;
    max-width: 565px;   /* горен лимит – по желание */
  }
}

/* телефони: 100% ширина и център */
@media (max-width: 600px){
  .new-dataset-btn-2{
    width:85%;
    max-width: 565px;   /* горен лимит – по желание */
  }
}

.datasets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  padding: 40px;
}

.dataset-card {
  background: #f1f1f1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  padding-bottom: 24px;
}

.dataset-card img { width: 100%; height: 160px; object-fit: cover; } /* wyrnato , bez бутон */

.dataset-card img:hover {
  filter: brightness(0.85);
}

.dataset-info {
  padding: 16px;
  font-size: 14px;
  color: #111;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  background: #f1f1f1;
  font-size: 16px;
  vertical-align: middle;
  margin-top: 18px;
}

.footer a {
  color: #0094fa;
  text-decoration: none;
}

.footer a:hover {
  color: #0077cc;
  text-decoration: none;
}

.footer img {
  height: 15px;
  margin-left: 3px;
  vertical-align: middle;
}

.social-icons img {
  height: 28px;
  margin-left: 12px;
  vertical-align: middle;
}

.social-icons a:nth-child(2) img {
  height: 23px; /* за втората иконка (Facebook) */
  vertical-align: middle;
}

.social-icons a {
  text-decoration: none;
  display: inline-block;
}

.social-icons1 a {
  text-decoration: none;
  display: inline-block;
}

@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .new-dataset-button-container {
    justify-content: center;
    padding: 20px;
  }

  .datasets-grid {
    padding: 20px;
  }
}

.icon-notification .badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: red;
  color: white;
  border-radius: 25%;
  font-size: 11px;
  font-weight: bold;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  padding: 0 1px;
}

.nav-links {
  display: flex;
  flex-direction: row;   /* това е критично! */
  gap: 58px;
  align-items: center;
}

.nav-links .nav-item,
.nav-links a.nav-item,
.nav-links div.nav-item {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;
  color: #000;
  cursor: pointer;
  padding: 0;
  margin: 0;
  border: none;
  outline: none;
  min-width: 80px; /* или колкото е нужно, за да си фиксираш ширината */
}

.nav-links a.nav-item,
.nav-links a.nav-item:visited {
  color: #000;
  text-decoration: none;
  border: none;
  outline: none;
}

.nav-links .nav-item.active span {
  color: #0077cc;
  cursor: default;
}

.nav-links a.nav-item:hover span {
  color: #0077cc;
}

.nav-links .nav-item img {
  height: 32px;
  width: 32px;
  object-fit: contain;
}

.nav-links img[src*="customers_customers.png"] {
  height: 16px;
  width: 33px;
  object-fit: contain;
  margin-bottom: 7px;
  margin-top: 10px;
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  height: 32px;
  width: 32px;
  object-fit: contain;
  border-radius: 50%;
  cursor: pointer;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 42px;
  right: 0;
  background-color: white;
  color: #000;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  min-width: 180px;
  z-index: 999;
  padding: 8px 0;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  padding: 10px 16px;
  font-size: 14px;
  text-decoration: none;
  display: block;
  color: #333;
}

.dropdown-item:hover {
  background-color: #f0f0f0;
}

.email-display {
  font-weight: bold;
  color: #0077cc;
  border-bottom: 1px solid #ddd;
  margin-bottom: 4px;
  padding-bottom: 6px;
}

.upload-wizard {
    width: 95vw;        /* Занима 95% от екрана */
    max-width: 1600px;  /* Ограничение за мега-широки екрани */
    margin: 28px auto 0 auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 12px #0002;
    padding: 34px 38px 26px 38px;
    min-height: 340px;
    margin-bottom: 60px;
}


@media (max-width: 768px) {
    .upload-wizard {
        width: 99vw;
        padding: 18px 4vw;
        border-radius: 8px;
        min-height: 180px;
    }
}

.wizard-header {
    text-align: center;
    margin-bottom: 18px;
}

.wizard-steps {
    display: flex;
    justify-content: center;
    gap: 58px;
    margin-bottom: 14px;
}
.wizard-steps .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 15px;
}
.wizard-steps .circle {
    width: 34px;
    height: 34px;
    background: #fff;
    border: 2px solid #333;
    border-radius: 50%;
    line-height: 32px;
    font-weight: bold;
    font-size: 18px;
    color: #111;
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.wizard-steps .active .circle {
    background: #111;
    color: #fff;
    border: 2px solid #111;
}

.wizard-steps .step {
    position: relative;
}

.wizard-steps .step:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 17px;
    left: calc(-50% - 38px);  /* половин gap + половин circle */
    width: 100%;              /* 100% ширина на step */
    height: 1.7px;
    background: #111;
    z-index: 0;
}

.wizard-steps .step:nth-child(2)::before {
    left: calc(-50% - 38px); /* за втория елемент (между 1 и 2) */
    width: 100%;
}
.wizard-steps .step:nth-child(3)::before {
    left: calc(-50% - 17px); /* по-малко отместване, за да отиде по-надясно */
    width: 84%;
}

.wizard-guideline {
    font-size: 15px;
    color: #333;
    margin-bottom: 20px;
}

.form-row {
    margin-top: 40px;
    margin-bottom: 25px;
    text-align: left;
    font-size: 1.0em;
    font-weight: bold;
}
#upload-drop-area {
    border: 2px dashed #bbb;
    background: #f9f9f9;
    border-radius: 16px;
    min-height: 130px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: border 0.2s;
    position: relative;
}
#upload-drop-area.dragover {
    border-color: #0094fa;
    background: #eef6fc;
}
/* Instead of display:none */
#upload-drop-area input[type="file"] {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;          /* invisible but clickable */
    cursor: pointer;
    z-index: 2;
}
#drop-area-text {
    font-size: 18px;
    color: #777;
}
#upload-progress-row {
    margin-top:50px;
    margin-bottom: 0;
    min-height: 22px;
}

.ds_item_title {
    font-size: 18px;
    color: #0077cc;
    margin-bottom: 9px;
    font-weight: bold;
}

.ds_item {
    font-size: 16px;
    margin-bottom: 9px;
    color: #0077cc;
    font-weight: bold;
    display: block;
}

.ds_delete_text {
    font-size: 16px;
    color: #484747; 
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
    cursor: pointer;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    text-decoration: none  !important;
    display: inline;        /* <<< това е разликата! */
    margin: 0;
    padding: 0;
    vertical-align: baseline; /* за перфектно подравняване */
}

.ds_delete_text:hover {
    color: darkred;
    text-decoration: none;
    filter: brightness(0.75);
}

.ds_delete_text_1 {
    font-size: 32px;
    color: red;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
    cursor: pointer;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    text-decoration: none  !important;
    display: inline;        /* <<< това е разликата! */
    margin: 0;
    padding: 0;
    margin-top: 2px;
    vertical-align: baseline; /* за перфектно подравняване */
    /*margin-left: 35px; /* за да е на същото ниво като другите елементи */
}

.ds_delete_text_1:hover {
    color: darkred;
    text-decoration: none;
    filter: brightness(0.75);
}

.ds_delete_text_1:disabled{
  cursor: not-allowed;
}

.ds_item_link {
    color: #0094fa;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
    cursor: pointer;
    display: block;
}

.ds_item_link:hover {
    color: #0077cc;
    text-decoration: none;
    filter: brightness(0.75);
}

.ds_label {
    color: rgb(62, 60, 60);         
    font-weight: bold;
}

.messages {
    width: 100%;
    /*background: #f5fafd;/**/
    border-radius: 8px;/**/
    padding: 0;/**/
    margin-top: 24px;
    box-shadow: 0 2px 12px rgba(0,148,250,0.06); /**/
    border: 1px solid #e3e9ef;
    overflow: visible;
}

.msg-table {
  width: 100%;
  border-collapse: separate;
  /*border-spacing: 0 7px; /* Разстояние между редовете */
  background: none;
  font-size: 16px;
  font-weight: bold;
}

.msg-table th {
  color: darkslategray;
  background: #f6fafd;
  text-align: left;
  padding: 8px 16px;
  font-weight: bold;
  font-size: 17px;
  border-bottom: 2px solid #0094fa;
}

.msg-table tr {
  background: #fff;
  transition: box-shadow 0.2s;
}

.msg-table tr:nth-child(odd) td {
    background: #fff;
}

.msg-table tr:nth-child(even) td {
    background: #f5fafd; /* твоя светлосин цвят */
}

.msg-table tr:hover {
  box-shadow: 0 0px 18px rgba(0,148,250,0.10); /* леко сянка при hover */
}

.msg-table td {
  padding: 10px 16px;
  border: none;
  text-align: justify;
  color: #5d5c5c;
  /*border-top: 1px solid #e3e9ef;  /* леко сив кант между редовете */
}

.msg-table .msg-unread td {
  font-weight: bold;
  color: #0072c6;
  /*background: #f5fafd; /* леко син фон за непрочетени съобщения */
}

.msg-table th:nth-child(1),
.msg-table td:nth-child(1) {
    min-width: 155px;  /* Date */
    width: 1%;         /* Прави колоната компактна */
}

.msg-table th:nth-child(2),
.msg-table td:nth-child(2) {
    min-width: 100px;  /* From */
    width: 1%;
    white-space: nowrap; /* За да не чупи имената */
}

.msg-empty {
    width: 100%;
    background: #f5fafd;
    border-radius: 8px;
    padding: 30px 0;
    margin-top: 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,148,250,0.06);
    border: 1px solid #e3e9ef;
    font-size: 17px;
}

.msg-empty-text {
    color: #0094fa;
    font-weight: bold;
    letter-spacing: 0.03em;
    font-family: inherit;
}

.msg-delete-cell {
    text-align: center;
    width: 20px;
}
.msg-delete-text {
    font-size: 13px;
    color: red;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
}
.msg-delete-text:hover {
    color: darkred;
    filter: brightness(0.75);
    text-decoration: none;
}

#msg-popup {
  display: none;
  position: fixed;
  left: 50%;
  top: 22%;
  transform: translate(-50%, 0);
  background: #fff;
  border: 2px solid #0094fa;
  border-radius: 20px;
  padding: 36px 48px 32px 48px;
  z-index: 2000;
  box-shadow: 0 8px 32px rgba(0,148,250,0.16);
  min-width: 340px;
  max-width: 90vw;
  text-align: justify;
}

#msg-popup button {
  display: block;
  margin: 32px auto 0 auto;
  border-radius: 6px;
  /* по желание можеш да добавиш още стилизация */
}

#msg-popup-content {
  font-size: 22px;
  color: #222;
  font-weight: 500;
  margin-bottom: 32px;
}

#msg-popup-close {
  background: #0094fa;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  text-align: justify;
  padding: 10px 34px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(0,148,250,0.09);
  margin-top: 10px;
}

#msg-popup-close:hover {
  background: #0072c6;
}

/* ===== Plans Table (DT360 Prices) ===== */
.plans-table td {
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
  color: #5a5a5a !important; /* тъмносив текст */
}

.plans-table ul {
  margin: 0;
  padding-left: 20px;
}

.dataset-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 35px;
}
.dataset-name-input-new {
    font-size: 1.0em;
    font-weight: bold;
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 5px 35px;
    width: 340px;
    margin-right: 35px;
    margin-left: 5px;
    margin-top: 24px
}

.account-input-new {
    font-size: 1.0em;
    font-weight: bold;
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 5px 35px;
    width: 210px;
    margin-right: 35px;
    margin-left: 5px;
    margin-top: 24px
}

.account-email-new {
    font-size: 1.0em;
    font-weight: bold;
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 5px 35px;
    width: 210px;
    margin-right: 35px;
    margin-left: 5px;
    margin-top: 24px
}
.dataset-name-input {
    font-size: 1.3em;
    font-weight: bold;
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 5px 35px;
    width: 340px;
    margin-right: 35px;
    margin-left: 35px;
    margin-top: 24px
}
.dataset-name-info {
    font-size: 1.3em;
    color: #2866a3;
    font-weight: bold;
    padding: 5px 35px;
    margin-right: 35px;
    margin-left: 35px;
    margin-top: 24px;
}

.preview-info {
  font-size: 1.1em;
  color: #4f4f4f;
  font-weight: 600;
  margin-top: 8px;
  text-align: center;
  max-width: 90%;
  line-height: 1.3em;
  word-wrap: break-word;
}

.dataset-actions button {
    margin-left: 16px;
    padding: 10px 32px;
    font-size: 20px;
    border-radius: 10px;
    border: 2px solid #222;
    background: #fff;
    font-weight: bold;
    cursor: pointer;
}
.dataset-actions-vertical {
    display: flex;
    flex-direction: column;
    align-items: flex-end;   /* държи бутоните вдясно */
    gap: 15px;               /* разстояние между бутоните */
    margin-top: 55px;
    margin: 0;
    margin-right: 18%;
    margin-left: 5%;
    margin-top: 15px;
}

.dataset-actions-vertical-ops {
    display: flex;
    flex-direction: column;
    align-items: center; /* или flex-end, ако искаш вдясно */
    gap: 40px;
    margin: 0 auto;      /* центрира панела хоризонтално */
    margin-top: 9px;
    width: 100%;         /* или 90%, ако искаш да има леко вдишване */
}

.dataset-actions-vertical-ops .btn-row {
  display: flex;
  align-items: center; /* или flex-end, ако искаш вдясно */
  gap: 40px;
  margin: 0 auto;      /* центрира панела хоризонтално */
  margin-top: 9px;
  width: 81%;         /* или 90%, ако искаш да има леко вдишване */
}
.dataset-actions-vertical-ops .btn-row .new-dataset-btn-12 {
  width: auto;          /* override, да не са 100% */
}

.dataset-meta > div {
    margin: 4px 0;
    margin-left: 35px;
    font-size: 18px;
}

.dataset-meta-block {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-top: 56px;
}

.dataset-divider {
    border-top: 6px solid #0094fa;
    margin: 14px 0 0 0;
    padding-top: 5px;
    text-align: right;
    position: relative;
    margin-left: 35px;
    margin-right: 35px;
}
.expand-details-link {
    color: #0094fa;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    background: #fff;
    border-radius: 6px;
    padding: 2px 8px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -17px;
}
.dataset-details {
    margin-top: 12px;
}
.dataset-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
    font-size: 15px;
}
.dataset-table th, .dataset-table td {
    padding: 8px 8px;
    border: 1px solid #e3e9ef;
    text-align: center;
    background: #eaf1fb;
}
.dataset-table th {
    background: #bfd7ef;
    font-weight: bold;
}
.dataset-table td {
    background: #fff;
}
/* Make previewable cells look interactive */
.dataset-table td.pic-cell {
    cursor: zoom-in;
    background: #fff;   /* override forced background */
}
.dataset-table td.pic-cell .pic-label {
    display: inline-block;
    pointer-events: none; /* важно → така винаги се улавя hover на td, не на span */
}
.delete-icon {
    font-size: 22px;
    cursor: pointer;
    text-decoration: none;
}

.delete-icon:hover {
  filter: brightness(0.75);
  color: #fff;
  text-decoration: none;
}

.spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 3px solid #ccc;
  border-top: 3px solid #777;
  border-radius: 50%;
  animation: spin 2s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

.spinner1 {
  display: inline-block;
  width: 0.75em;
  height: 0.74em;
  border: 2px solid #ccc;
  border-top: 2px solid #777;
  border-radius: 50%;
  animation: spin 2s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

.spinner-dashboard {
  display: inline-block;
  width: 0.80em;
  height: 0.80em;
  border: 3px solid #ccc;
  border-top: 3px solid #777;
  border-radius: 50%;
  animation: spin 2s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
  /*margin-top: 1px;/**/
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Общ контейнер за панели */
.dataset-panels {
  display: grid;
  gap: 14px;
  padding: 24px 35px 0 35px;
}

/* Горен ред: 3 панела; Долен ред: 2 панела */
.dataset-panels.top-row    { 
  grid-template-columns: repeat(3, minmax(260px, 1fr));

}
.dataset-panels.bottom-row { 
  grid-template-columns: repeat(2, minmax(260px, 1fr)); 
  margin-bottom: 35px;
}

/* Общ контейнер за панели */
.dataset-panels-preview {
  display: grid;
  gap: 14px;
  padding: 24px 35px 0 35px;
}

/* Горен ред: 3 панела; Долен ред: 2 панела */
.dataset-panels-preview.top-row    { 
  /*grid-template-columns: repeat(3, minmax(260px, 1fr));*/
  grid-template-columns: 1.5fr 0.7fr 0.8fr; 
}
.dataset-panels-preview.bottom-row { 
  grid-template-columns: repeat(2, minmax(260px, 1fr)); 
  margin-bottom: 35px;
}

/* Единичен панел – визуал */
.dataset-subcard {
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  padding: 16px;
}

.dataset-subcard-bottom {
  background: #fbeeee;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  padding: 16px;
}

.dataset-subcard-bottom-1 {
  background: #e7f8db;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  padding: 16px;
}

/* === DS Preview Panel Tables === */
/* === DS Preview Panel Tables === */
/* === DS Preview Panel Tables === */
/* Общи стилове за таблиците вътре в панелите */
.dataset-subcard table {
  border-collapse: collapse;
  width: 100%;
  font-family: "Roboto Flex", sans-serif;
}
.dataset-subcard td {
  border: none;
  padding: 4px 8px;
  vertical-align: middle;
  font-family: "Roboto Flex", sans-serif;
}

/* Първа колона (етикети) */
.dataset-subcard td:first-child,
.dataset-subcard-bottom td:first-child,
.meta-estimates td:first-child {
  white-space: nowrap;
  font-weight: 600;       /* Semi-bold за по-добър баланс */
  font-size: 0.95em;      /* еднакъв размер */
  color: #3c3c3c;         /* леко по-сив за контраст със стойностите */
}

/* Специфични ширини */
.dataset-subcard td:first-child       { width: 250px; }
.dataset-subcard-bottom td:first-child { width: 225px; }
.meta-estimates td:first-child         { width: 250px; }

/* Стойности във втората колона */
.dataset-subcard table td:last-child {
  font-size: 1.1em;
  font-weight: 700;       /* bold */
  color: darkblue;
}

/* Ако клетката съдържа .soon → по-малък и сив текст */
.dataset-subcard table td:last-child:has(.soon) {
  font-size: 0.85em;
  color: #606060;
  font-weight: 600;
}

/* Увеличаване на числата само в долните 2 панела (червени стойности) */
.dataset-panels:nth-of-type(2) .dataset-subcard-bottom table td:nth-child(2) {
  font-size: 2em;
  font-weight: 700;
  color: darkred;
  text-align: center;
  width: 25px;
  line-height: 1;
  position: relative;
  bottom: 4px; /* фина корекция */
}

/* Увеличаване на числата само в долните 2 панела (зелени стойности) */
.dataset-panels:nth-of-type(2) .dataset-subcard-bottom-1 table td:nth-child(2) {
  font-size: 2em;
  font-weight: 700;
  color: #13894e;
  text-align: center;
  width: 25px;
  line-height: 1;
  position: relative;
  bottom: 4px; /* фина корекция */
}

/* Текст само в долните 2 панела (третата колона) */
.dataset-panels:nth-of-type(2) .dataset-subcard-bottom table td:nth-child(3) {
  font-size: 1em;
  color: #333232;
  padding-left: 5px; /* вместо margin-left, защото е table-cell */
}

/* Responsive layout */
@media (max-width: 1100px) {
  .dataset-panels.top-row    { grid-template-columns: repeat(2, minmax(240px, 1fr)); }
  .dataset-panels.bottom-row { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .dataset-panels.top-row    { grid-template-columns: 1fr; }
  .dataset-panels.bottom-row { grid-template-columns: 1fr; }
}

/* === HAMBURGER (CLEAN) === */
/* === HAMBURGER (CLEAN) === */
/* === HAMBURGER (CLEAN) === */
.topbar { position: relative; }

/* десктоп по подразбиране */
#navLinks { display: flex; position: static; }
.hamburger { display: none; }

/* десктоп форсиране */
@media (min-width: 1095px) {
  .hamburger { display: none !important; }
  #navLinks { display: flex !important; position: static !important; }
  .right.user-icons { display: flex !important; }
}

/* мобилно меню */
@media (max-width: 1095px) {
  /* скрий десните иконки; покажи бутона */
  .right.user-icons { display: none !important; }
  .hamburger { display: inline-flex !important; align-items: center; justify-content: center; }

  /* менюто пада под topbar */
  #navLinks {
    display: none !important;          /* скрито по подразбиране */
    position: absolute;
    top: 100%;                         /* точно под topbar */
    left: 0; right: 0;
    flex-direction: column;
    gap: 14px;
    background: #f1f1f1;
    padding: 12px 15px 12px 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    z-index: 1001;
    /*align-items: flex-end;/**/
    box-sizing: border-box;
  }
  #navLinks.show { display: flex !important; }
}

@media (max-width: 1095px) {
  /* Скрий ги само в десния слот на топбара */
  .topbar > .right .user-icons { display: none !important; }

  /* Когато са преместени вътре в менюто – покажи ги */
  #navLinks .user-icons { 
    display: flex !important;
    gap: 14px;
    justify-content: center;
    padding: 8px 0 4px;
  }
  #navLinks .user-icons img { width: 32px; height: 32px; }
}

@media (max-width: 1095px){
  .topbar{
    flex-direction: row !important;
    align-items: center !important;
  }
  .topbar .left{
    flex: 1 1 auto;      /* взима наличното място */
    min-width: 0;
  }
  .topbar .right{
    margin-left: auto;   /* бута вдясно */
    display: flex;
    align-items: center;
  }
  .hamburger{
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-left: auto;   /* държи бутона в крайно дясно */
  }
}

/* ================ MODAL ===================== 
Backdrop */
#verifyBackdrop{ display:none; position:fixed; inset:0; background:rgba(0,0,0,.5); align-items:center; justify-content:center; z-index:9999; }
/* Card */
.v-card{ background:#fff; max-width:460px; width:92%; padding:18px; border-radius:14px; box-shadow:0 12px 36px rgba(0,0,0,.28); }
.v-title{ font-size:18px; font-weight:700; margin:0 0 6px; color:#0f172a; }
.v-sub{ font-size:13px; color:#64748b; margin:0 0 10px; }
.v-row{ display:flex; gap:8px; align-items:center; margin:10px 0; }
/* Code input */
#codeInput{
  width:100%;
  max-width: calc(20ch + 9 * .25em); /* 10 символа + 9 интервала от letter-spacing */
  padding:10px 12px;
  border:1px solid #cbd5e1;
  border-radius:6px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.25em;
  /* по желание за равномерна ширина на знаците: */
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
#codeInput::placeholder{ letter-spacing:normal; font-weight:600; }
#codeInput:focus{ outline:none; border-color:#111827; box-shadow:0 0 0 3px rgba(17,24,39,.15); }
/* Buttons */
.btn{ appearance:none; border:1px solid #cbd5e1; background:#fff; padding:8px 12px; border-radius:8px; cursor:pointer; }
.btn:disabled{ opacity:.6; cursor:not-allowed; }
.btn-primary{ background:#111827; color:#fff; border-color:#111827; }
.v-actions{ display:flex; gap:10px; justify-content:flex-end; margin-top:12px; }
/* Subtle status line for sendMsg */
#sendMsg{ font-size:13px; color:#64748b; }
#sendMsg.error{ color:#7f1d1d; }

.progress-banner{
    display:inline-flex; 
    align-items:center !important; 
    gap:.5rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 5px 35px;
    background:#f1f1f1; 
    border:1px solid #ccc; 
    font-size: 1.3em;
    font-weight: bold;
}

/* По-компактно на малки екрани */
@media (max-width: 600px){
  .progress-banner{ padding:.4rem .75rem; gap:.4rem; }
}
@media (max-width: 380px){
  .progress-banner{ font-size:clamp(.9rem, 3.2vw, 1rem); padding:.35rem .6rem; }
}

/* .progress-banner::before{ content:"⏳"; } */

.dataset-container {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.dataset-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.dataset-col.top {
  margin-top: 2px;
}

.preview-btn {
  width: 100%;
  height: 695px;
  border-radius: 6px;
  background: #f2f2f2;
  font-weight: bold;
  font-size: 1.2em;
  text-align: center;
  color: #2d3134;
  line-height: 1.4;
  padding: 10px;
  position: relative;/**/
  /*overflow: hidden;/**/
}

.snake-border {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: none; /* off */
  z-index: 1;
}

.snake-path {
  fill: none;
  stroke: #0094fa;
  stroke-width: 4;
  animation: snakeMove 6s linear infinite; /* speed */
  shape-rendering: crispEdges;
}

.preview-btn.generating .snake-border {
  display: block; /* show after click */
}

.preview-btn:hover {
  filter: brightness(0.95);
}

/* === New fill animation ===*/ 
@keyframes fillInwards {
  from { transform: scale(0); opacity: 1; }
  to   { transform: scale(1); opacity: 1; }
}

.fill-overlay {
  position: absolute;
  inset: 0;
  background: #0094fa;
  z-index: 2;
  pointer-events: none;
  display: none;
}

.preview-ctrl-pnl {
  margin-top: 6px;
  font-weight: bold;
  font-size: 1.2em;
  text-align: center;
  color: #2d3134;
}

.btn-spacer {
  height: 0.1px; /* колкото искаш празно място */
}

.controls-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center !important;
  text-align: left;
  margin-top: 8px;
  flex: 1;              /* позволява средната колона да се разтегне */
  min-width: 220px;     /* да не се смачква */
}

.controls-col label {
  text-align: left;     
  font-weight: bold;
  font-size: 1em;
  color: #4f4f4f;
  margin: 0 0 4px 0;
  width: 80%;              /* ← гарантира, че label заема цял ред */
  /*display: block;           /* ← прави text-align:left реално активен */  
}

.viewer-controls {
  display: flex;
  gap: 1px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2px;
}

.viewer-controls button {
  flex: 1 1 auto;
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 12
  3px;
  font-weight: bold;
  cursor: pointer;
}

.viewer-controls-btn-1{
  display:inline-flex;                 /* лесно центриране на текста/икони */
  align-items:left;
  justify-content:center;

  padding: clamp(12px, 1.2vw, 14px) clamp(18px, 2.6vw, 34px) !important;
  font-size: clamp(14px, 1.3vw, 18px);
  border-radius: clamp(6px, 0.8vw, 6px);

  /*background:#0094fa;/**/
  color:#0077cc;
  border:1px solid #bbb;
  font-weight:bold;
  text-decoration:none;
  line-height:1;
  box-sizing:border-box;
  margin-bottom: 10px;
  margin-top: 4px;

  /* ширината се адаптира, но има разумни граници */
  width: clamp(160px, 36vw, 80%);

  transition: background .2s, transform .06s;
}
.viewer-controls-btn-1:hover{ color:#fff; background:#0077cc; text-decoration:none; }
.viewer-controls-btn-1.active { color:#fff; background:#0094fa; text-decoration:none; box-shadow: inset 0 2px 4px rgba(0,0,0,0.3); }

/* състояние при качване/disabled – по желание */
.viewer-controls-btn-1.uploading,
.viewer-controls-btn-1:disabled{
  background:#7fbff1;
  cursor: not-allowed;
}

.viewer-controls-btn-2{
  display:inline-flex;                 /* лесно центриране на текста/икони */
  align-items:left;
  justify-content:center;

  padding: clamp(14px, 1.2vw, 14px) clamp(18px, 2.6vw, 34px) !important;
  font-size: clamp(14px, 1.3vw, 18px);
  border-radius: clamp(6px, 0.8vw, 6px);

  /*background:#0094fa;/**/
  color:#0077cc;
  border:1px solid #bbb;
  font-weight:bold;
  font-size: 1.1em !important;
  text-decoration:none;
  line-height:1;
  box-sizing:border-box;
  margin-bottom: 10px;
  margin-top: 4px;

  /* ширината се адаптира, но има разумни граници */
  width: clamp(160px, 36vw, 80%);

  transition: background .2s, transform .06s;
}
.viewer-controls-btn-2:hover{ color:#fff; background:#0077cc; text-decoration:none; }
.viewer-controls-btn-2.active { color:#fff; background:#0094fa; text-decoration:none; box-shadow: inset 0 2px 4px rgba(0,0,0,0.3); }

.viewer-controls-btn-2 svg path,
.viewer-controls-btn-2 svg circle {
  stroke: #0077cc;
  fill: #0077cc;
  transition: stroke 0.2s ease, fill 0.2s ease;
}

.viewer-controls-btn-2:hover svg path,
.viewer-controls-btn-2:hover svg circle {
  stroke: #ffffff;
  fill: #ffffff;
}

/* състояние при качване/disabled – по желание */
.viewer-controls-btn-2.uploading,
.viewer-controls-btn-2:disabled{
  background:#7fbff1;
  cursor: not-allowed;
}


/* унифицирани SVG икони */
.viewer-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.viewer-icon-1 {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* мобилен изглед */
@media (max-width: 700px) {
  .viewer-controls {
    flex-direction: column;
    align-items: center;
  }
  .viewer-controls-btn-1 {
    width: 85%;
    max-width: 420px;
    justify-content: flex-start;
    padding: 10px 16px;
  }
  .viewer-icon {
    width: 15px;
    height: 15px;
  }
    .viewer-icon-1 {
    width: 12px;
    height: 12px;
  }
}

.lighting-controls {
  display: flex;
  flex-direction: column;   /* всички елементи в колона */
  align-items: center;      /* центрира хоризонтално */
  gap: 8px;                 /* разстояние между блоковете */
  margin-bottom: 4px;
  width: 100%;
}

.lighting-controls label {
  font-weight: bold;
  font-size: 0.95em;
  color: #001070;
  margin: 0;
  text-align: center;
  width: 100%;
}

.lighting-controls input[type="color"] {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #aaa;
  border-radius: 4px;
  padding: 0;
  width: 64px;
  height: 14px;
  cursor: pointer;
}

.lighting-controls input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}
.lighting-controls input[type="color"]::-webkit-color-swatch,
.lighting-controls input[type="color"]::-moz-color-swatch {
  border: none;
  border-radius: 3px;
}

.lighting-controls input[type="range"] {
  width: 64%;   /* почти колкото бутоните */
  height: 2px;
  margin: 0 auto;
  display: block;
}

/* === Equalize slider width with buttons === */
.lighting-controls input[type="range"] {
  width: 80% !important;   /* същата видима ширина като бутоните */
  max-width: 260px;        /* за да не се разпъва на огромни екрани */
  margin: 0 auto;
  display: block;
}

.select-control {
  display: block;
  width: 200px;
  padding: 2px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 12px;
  text-align: left;
  text-align-last: left;
  margin-bottom: 3px;   /* разстояние под select-а */
}

.controls-col label[for="rotation"],
.controls-col label[for="crop"] {
  margin-bottom: 1px;   /* разстоянието между label и select */
}


.rotation-controls {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 5px;
}

.rotation-controls div {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #353434 !important;
  font-weight: bold !important;
}

.select-control.small {
  width: 61px;   /* компактна ширина */
}

.controls-note {
  margin-top: 13px;       /* 2px надпис над бележката */
  font-size: 0.9em;
  font-weight: bold;
  color: #2d3134;
  text-align: center;
  width: 100%;
}

.controls-note-3 {
  /* margin-top: 13px;       /* 2px надпис над бележката */
  font-size: 0.8em;
  font-weight: bold;
  color: #666;
  text-align: center;
  width: 100%;
}


.dataset-col.controls-col {
  position: relative;   /* anchor за вътрешните absolute */
}

.controls-note-v {
  position: absolute;
  top: 50%;
  right: 8px;           /* или вътре: right: 5px; */
  transform: translateY(-50%);
}

.controls-note-v .vertical-note {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.95em;
  color: #333;
  opacity: 0.8;
}

/* responsive design */
@media (max-width: 768px) {
  .controls-col {
    min-width: 100%;
    flex: unset;
  }
  .select-control {
    width: 100%;
  }
}

/* Popup container for image previews */
.img-popup {
  position: absolute;
  display: none;
  border: 1px solid #444;
  background: #fff;
  padding: 4px;
  z-index: 9999;
  max-width: 400px;
}
.img-popup img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Basic modal style */
.mf-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
}
.mf-modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 20px;
  width: 500px;
  border-radius: 10px;
}
.mf-close {
  float: right;
  font-size: 24px;
  cursor: pointer;
}
.mf-dropzone {
  border: 2px dashed #aaa;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  margin-bottom: 15px;
  cursor: pointer;
}
.mf-browse { color: #007BFF; cursor: pointer; text-decoration: underline; }
.mf-file-list { list-style: none; padding: 0; margin: 0; }
.mf-file-list li {
  display: flex; justify-content: space-between;
  align-items: center; padding: 5px 0;
  border-bottom: 1px solid #eee;
}
.mf-file-list li button {
  background: none; border: none; color: #a00; cursor: pointer;
}
.mf-actions { margin-top: 15px; text-align: right; }
.mf-btn {
  padding: 8px 16px;
  background: #007BFF; color: #fff;
  border: none; border-radius: 5px; cursor: pointer;
}
.mf-btn:hover { background: #0056b3; }

.mf-btn:disabled {
  background: #0056b3;   /* сивеещ фон */
  cursor: not-allowed;   /* забранен курсор */
  /* opacity: 0.95;         /* леко прозрачно */
}

.mf-btn.loading {
  position: relative;
  opacity: 0.8;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

.learning-centre {
  font-family: 'Roboto', sans-serif;
  max-width: 920px;
  margin: 0 auto;
  color: #013c64;
  line-height: 1.6;
}

.learning-centre h1 {
  text-align: center;
  color: #0094fa;
  font-size: 2rem;
  margin-bottom: 16px;
}

.learning-centre .intro {
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 32px;
  position: relative;
  text-align: justify;
}

.learning-centre .li_description {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 32px;
  position: relative;
  text-align: justify;
}

.learning-centre a {
  color: #0094fa;
  text-decoration: none;
}

.learning-centre a:hover {
  text-decoration: none;
  color: #57b9fe;
}

.learning-centre li {
  font-size: 1.2rem; /* размер на текста в li */
  color: #013c64;    /* или #333, ако искаш по-мек */
  line-height: 1.6;
  margin-bottom: 6px;
}

.learning-centre .intro img {
  display: block;
  margin: 0 auto 12px auto;
  width: 160px;
  height: auto;
  border-radius: 12px;
}

.intro-coming img {
  display: block;
  width: 100%;
  max-width: 1024px;       /* safety */
  height: auto;
  margin: 0 auto 20px auto;    /* центрира */
  border-radius: 6px;
}

.learning-centre h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.learning-centre ul {
  margin-left: 24px;
  margin-bottom: 24px;
}

.learning-centre .section-img img {
  display: block;
  margin: 0 auto 24px auto;
  width: 220px;
  height: auto;
  border-radius: 12px;
}

.learning-centre .illustration {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.learning-centre .illustration img {
  width: 250px;
  height: auto;
  border-radius: 8px;
}

.learning-centre .illustration p {
  margin: 0;
}

.learning-centre .illustration_1 {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.learning-centre .illustration_1 img {
  width: 600px;
  height: auto;
  border-radius: 8px;
}

.learning-centre .illustration_1 p {
  margin: 0;
}

.learning-centre .illustration_2 {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.learning-centre .illustration_2 img {
  width: 300px;
  height: auto;
  border-radius: 8px;
}

.learning-centre .illustration_2 p {
  margin: 0;
}

.learning-centre img.learning-small {
  width: 75px;
  height: auto;
  border-radius: 6px;
}

.learning-centre .qa-block {
  background: #eaf4ff;
  border-radius: 12px;
  padding: 16px;
}

.learning-centre .qa-block hr {
  border: none;
  border-top: 1px solid #c5e2ff;
  margin: 12px 0;
}

.learning-centre .footer {
  margin-top: 32px;
  text-align: center;
  border-radius: 6px;
}

.footer-coming {
    background: #f1f1f1;      /* 1:1 като .footer */
    padding: 16px 40px;       /* 1:1 като .footer */
    border-radius: 6px;       /* визуално като примера */
    margin-top: 18px;         /* 1:1 spacing */
    text-align: center;       /* твоето изискване */
    font-size: 1.1em;         /* твоето изискване */
    font-weight: bold;        /* текстът на примера е bold */
    color: #013c64;           /* 1:1 със screenshot */
    line-height: 1.4;
}

.learning-centre .footer a {
  color: #0094fa;
  text-decoration: none;
}

.learning-centre details {
  margin-bottom: 12px;
  background: #f8fbff;
  border-radius: 8px;
  padding: 10px 14px;
  transition: background 0.2s ease-in-out;
}

.learning-centre details:hover {
  background: #b0dafb;
}

.learning-centre .qa-block details:hover {
  background: #b0dafb;
;
}

.learning-centre summary {
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: bold;
  color: #013c64;
  list-style: none;
}

.learning-centre summary::-webkit-details-marker {
  display: none;
}

.learning-centre details[open] summary {
  color: #0094fa;
}

/* Expandable entire Q&A section */
.learning-centre .qa-section {
  background: #eaf4ff;
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 24px;
}

.learning-centre .qa-section summary {
  cursor: pointer;
  list-style: none;
  outline: none;
}

.learning-centre .qa-section summary::-webkit-details-marker {
  display: none;
}

.learning-centre .qa-section h2 {
  font-size: 1.4rem;
  /*color: #0094fa;/**/
  margin-bottom: 8px;
  margin-left: 21px;
}

.learning-centre .qa-section[open] h2 {
  color: #007ad4;
}

/* keep inner Q&A items as before */
.learning-centre .qa-block {
  margin-top: 12px;
}

.learning-centre .qa-block details {
  background: #fff;
  border-radius: 6px;
  margin-bottom: 10px;
  padding: 10px 14px;
  transition: background 0.2s ease-in-out;
}

.learning-centre .qa-block summary {
  cursor: pointer;
  font-weight: bold;
  color: #013c64;
  list-style: none;
  outline: none;
  font-size: 1.1rem;
}

.learning-centre .qa-block summary::-webkit-details-marker {
  display: none;
}

.learning-centre .qa-block details[open] summary {
  color: #0094fa;
}

.learning-centre .qa-block p {
  margin-top: 8px;
  margin-bottom: 0;
  color: #013c64;
  font-size: 1rem;
  line-height: 1.5;
}

/* === CANON FIX: Mobile coherence patch === */
@media (max-width: 900px) {
  .dataset-panels-preview.top-row,
  .dataset-panels.top-row,
  .dataset-panels.bottom-row {
    grid-template-columns: 1fr !important;
  }
  .upload-wizard {
    width: 100% !important;
    padding: 16px !important;
    box-sizing: border-box;
  }
  .preview-btn {
    height: auto !important;
    min-height: 320px !important;
  }
  .dataset-actions-vertical-ops .new-dataset-btn-1,
  .dataset-actions-vertical-ops .new-dataset-btn-2,
  .dataset-actions-vertical-ops .new-dataset-btn-12 {
    width:100%!important;
    max-width:none!important;
  }
  .topbar {
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
  }
}

/* === CANON_FIX: center Adjust-text and dataset name on mobile === */
@media (max-width: 900px) {
  /* Center the instruction text */
  .adjust-instructions,
  #adjustInstructions {
    text-align: center !important;
    font-size: 15px !important;
    line-height: 1.4;
    margin: 8px auto !important;
    width: 100%;
  }

  /* Center dataset name / title */
  .dataset-title,
  #datasetName,
  .dataset-name {
    text-align: center !important;
    margin: 0 auto !important;
    display: block;
    font-weight: 600;
    /*color: #84ff31; /**/
    font-size: 17px !important;
  }
}
.qa-search-wrapper {
  display: inline-flex;
  align-items: left !important;
  border: 2px solid #0094fa;
  border-radius: 8px;
  overflow: hidden;
  margin-right: auto;
}
.qa-search {
  width: 100%;
  padding: 10px 12px;
  font-size: 16px;
  border: none;
  outline: none;
}
.qa-search-btn {
  background: #0094fa;
  color: #fff;
  border: none;
  font-size: 18px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.25s ease;
}
.qa-search-btn:hover {
  background: #007ad4;
}
/* === Canon H40-QA-ALIGN === */
.qa-toolbar {
  display: flex;
  justify-content: space-between; /* search left, home right */
  align-items: center;
  gap: 20px;
  padding: 20px 40px;
}
/* за малки екрани → вертикално подреждане */
@media (max-width: 700px) {
  .qa-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .qa-toolbar .qa-search-wrapper {
    width: 100%;
  }
  .qa-toolbar .new-dataset-btn {
    width: 100%;
  }
}
mark.canon-highlight {
  background: #ffe955;
  padding: 0 2px;
  border-radius: 2px;
}






/* ============================================================
   DT360 – Forgot Password Modals (Universal Style, SAFE)
   DOES NOT touch any existing .modal, popup, wizard, viewer, etc.
   These selectors affect ONLY #fp-modal and #fp-success.
   ============================================================ */

#fp-modal,
#fp-success {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  z-index: 99999;           /* над всичко */
  display: none;            /* JS controls */
  align-items: center;
  justify-content: center;
  padding: 20px;            /* за тесен viewport */
  box-sizing: border-box;
}

/* Card */
#fp-modal .modal-content,
#fp-success .modal-content {
  background: #ffffff;
  color: #222;
  padding: 30px 32px;
  border-radius: 14px;
  width: 420px;
  max-width: 100%;
  text-align: center;
  box-shadow: 0 10px 36px rgba(0,0,0,0.28);
  box-sizing: border-box;
}

/* Title */
#fp-modal h3,
#fp-success h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: bold;
  color: #111;
}

/* Text */
#fp-modal p,
#fp-success p {
  margin-top: 0;
  margin-bottom: 18px;
  color: #444;
  font-size: 15px;
  line-height: 1.45;
}

/* Input */
#fp-email {
  width: 100%;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 15px;
  margin-bottom: 12px;
  box-sizing: border-box;
}

/* Error message */
#fp-error {
  min-height: 20px;
  font-size: 14px;
  font-weight: bold;
  color: #ff4040;
  margin-bottom: 10px;
}

/* Buttons */
#fp-send,
#fp-success-btn,
#fp-close {
  width: 100%;
  padding: 13px 0;
  border-radius: 8px;
  border: none;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  box-sizing: border-box;
  margin-top: 10px;
}

/* Primary */
#fp-send,
#fp-success-btn {
  background: #0094fa;
  color: white;
}

#fp-send:hover,
#fp-success-btn:hover {
  background: #0077cc;
}

/* Secondary */
#fp-close {
  background: #e5e5e5;
  color: #333;
}

#fp-close:hover {
  background: #d2d2d2;
}


/* ============================================================
   RESPONSIVE — refined but universal (mobile-friendly)
   ============================================================ */

@media (max-width: 500px) {

  #fp-modal .modal-content,
  #fp-success .modal-content {
    width: 94vw !important;
    padding: 28px 22px !important;
    border-radius: 12px !important;
  }

  #fp-modal h3,
  #fp-success h3 {
    font-size: 20px !important;
  }

  #fp-modal p,
  #fp-success p {
    font-size: 15px !important;
  }

  #fp-email {
    padding: 14px !important;
    font-size: 16px !important;
  }

  #fp-send,
  #fp-success-btn,
  #fp-close {
    padding: 14px !important;
    font-size: 16px !important;
  }
}


.account-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  /* Same height as .account-input-new */
  padding: 6px 35px;        /* vertical: 5px, horizontal: 35px */

  font-size: 1.0em;
  font-weight: bold;
  border-radius: 5px;
  border: 1px solid #bbb;

  /* Auto width — grows depending on text */
  width: auto;

  background: #0094fa;
  color: #fff;
  text-decoration: none;
  line-height: 1;
  box-sizing: border-box;

  margin-top: 24px;
  margin-left: 5px;
  margin-right: 35px;

  transition: background .2s;
}

.account-btn:hover{ background:#0077cc; text-decoration:none; }
.account-btn:active{ transform: translateY(1px); }


/* Контейнерът да помага при малки екрани */
.new-dataset-button-container{
  display:flex;
  justify-content:flex-end;
  gap:12px;
  padding: 20px 40px 0 40px;
}

/* Телефони: бутонът става 100% ширина и центриран */
@media (max-width: 600px){
  .new-dataset-button-container{ padding:16px; justify-content:center; }
  .account-btn{
    width:100%;
    max-width:420px;    /* по желание „горен“ лимит */
  }
}