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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

.content-wrapper {
  display: flex;
  flex-grow: 1;
}

.content {
  flex-grow: 1;
  padding: 20px;
  background-color: #F6F6F6;
  overflow: auto;
}

/* 
Инпуты
*/
input,
textarea {
  padding: 10px;
  border: 1px solid #E0E0E0;
  border-radius: 5px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  resize: none;
}

input:hover,
textarea:hover {
  border-color: #1E71D2;
}

input:focus,
textarea:focus {
  border-color: #1E71D2;
  box-shadow: 0 0 8px rgba(30, 113, 210, 0.5);
}

.hint-text {
  position: absolute;
  top: 45px;
  left: 0px;
  color: #828282;
  font-size: 12px;
}

/*
Селект
*/
select {
  background-color: #fff;
  border: 1px solid #E0E0E0;
  border-radius: 6px;
  padding: 12px;
  font-size: 14px;
  color: #333;
  width: 100%;
  cursor: pointer;
  appearance: none;
  background-image: url('/static/icons/select-arrow.svg'); /* Добавляем свою стрелочку */
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 6px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

select:hover {
  border-color: #1E71D2;
}

select:focus {
  border-color: #1E71D2;
  box-shadow: 0 0 8px rgba(30, 113, 210, 0.5);
  outline: none;
}

select option {
  padding: 10px;
  color: #333;
  background-color: #fff;
}

/* 
Чекбокс 
*/
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  appearance: none;
  border: 1px solid #ccc;
  border-radius: 2px;
  outline: none;
  position: relative;
  background-color: white;
  transition: border 0.3s, background-color 0.3s;
}

input[type="checkbox"]:hover {
  border: 1px solid #1DBC66;
}

input[type="checkbox"]:checked {
  background-color: #1DBC66;
  border: 1px solid #1DBC66;
}

input[type="checkbox"]:checked::after {
  content: '✔';
  color: white;
  font-size: 12px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

input[type="checkbox"]:checked:hover {
  background-color: #1aaa5c;
  border: 1px solid #1aaa5c;
}

/* 
Переключатель (свитч)
*/
.switch {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 18px;
}

.switch input {
  opacity: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border: 1px solid transparent;
  border-radius: 4px;
  box-sizing: border-box;
}

.slider.square {
  border-radius: 3px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 1px;
  bottom: 1px;
  background-color: white;
  transition: 0.4s;
  box-sizing: border-box;
}

input:checked + .slider {
  background-color: #1DBC66;
}

input:checked + .slider:before {
  transform: translateX(14px);
}

.switch:hover .slider {
  border: 1px solid #1DBC66;
}


/* 
Кнопки
*/
.submit-big-button {
  padding: 10px;
  background-color: #1E71D2;
  color: white;
  width: 97px;
  height: 52px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  font-weight: 700;
}

.submit-big-button:hover {
  background-color: #1b66bd;
}

.submit-button {
  padding: 10px 20px;
  background-color: #1E71D2;
  color: white;
  width: auto;
  height: 38px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  font-weight: 700;
}

.submit-button:hover {
  background-color: #1b66bd;
}

.transparent-button {
  padding: 10px;
  background-color: #fff;
  color: #828282;
  border: 1px solid #828282;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  font-weight: 700;
}

.transparent-button:hover {
  color: #333333;
  border: 1px solid #333333;
}

.no-border-button {
  background-color: #fff;
  color: #828282;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.no-border-button:hover {
  color: #333333;
}

.no-border-blue-button {
  background-color: #fff;
  color: #1E71D2;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.no-border-blue-button:hover {
  color: #333333;
}

.no-border-blue-thin-button {
  background-color: #fff;
  color: #1E71D2;
  border: none;
  cursor: pointer;
  transition: color 0.3s ease;
  font-weight: 400;
  font-size: 14px;
  text-decoration: none;
}

.no-border-blue-thin-button:hover {
  color: #333333;
}

/* 
Селект таб
*/
.tab-select {
  display: flex;
  border: 1px solid #E0E0E0;
  border-radius: 6px;
  overflow: hidden;
  background-color: white;
  padding: 5px;
  width: fit-content;
}

.tab-button {
  padding: 6px 15px;
  border: none;
  border-radius: 2px;
  background-color: white;
  cursor: pointer;
  font-size: 12px;
  color: #828282;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.tab-button-img {
  margin: -2px -6px;
}

.tab-button:hover {
  background-color: #f0f0f0;
}

.tab-button.active {
  background-color: #F6F6F6;
  font-weight: bold;
  color: #333333;
}

.tab-button:focus {
  outline: none;
}

.input-label {
  display: block;
  margin-bottom: 8px;
  color: #828282;
  font-size: 14px;
}

/* 
Дроп-файл 
*/
.file-drop-zone {
  margin-top: 20px;
}

.drop-area {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: start;
  border: 1px dashed #828282;
  border-radius: 2px;
  padding: 50px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.drop-area:hover {
  border-color: #1E71D2;
}

.file-icon {
  width: 40px;
  margin-right: 15px;
}

.text-content {
  text-align: left;
  flex-direction: column;
  text-align: left;
}

.drop-area p {
  font-size: 16px;
  color: #333;
  margin-bottom: 5px;
}

.browse-link {
  color: #1E71D2;
  text-decoration: underline;
  cursor: pointer;
}

.drop-area small {
  font-size: 12px;
  color: #828282;
}

input[type="file"] {
  display: none;
}

/* 
Верхняя навигация
 */
 .top-nav {
  background-color: #000;
  height: 60px;
  min-height: 60px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  height: 14px;
}

.create-btn {
  background-color: #000;
  color: #fff;
  padding: 10px 20px;
  border: 1px solid #fff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.create-btn:hover {
  background-color: #fff;
  color: #000;
}

.delete-btn {
  background-color: #E24040;
  color: #ffffff;
}

.edit-btn {
  background-color: #1DBC66;
  color: #ffffff;
  padding: 5px 10px;
  margin: 5px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
}

.icon-button {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  margin-left: 20px;
}

.dropdown-menu {
  position: relative;
  display: inline-block;
}

.dropdown-menu .dropdown-content {
  top: 18;
  right: 0;
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  border-radius: 5px;
}

.dropdown-menu .dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  width: 100%;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 5px;
}

.dropdown-menu .dropdown-content a:hover {
  background-color: #ddd;
}

.dropdown-menu:hover .dropdown-content {
  display: block;
}

.icon-button img {
  margin-right: 8px;
  height: 18px;
}

.balance {
  margin-left: 30px;
  font-weight: 700;
  color: #fff;
  gap: 8px;
}

.user-profile {
  display: flex;
  align-items: center;
}

.user-profile >* {
  margin-left: 15px;
}

.user-profile img {
  opacity: 50%;
  transition: opacity 0.3s ease;
}

.user-profile img:hover {
  opacity: 100%;
}

/* 
Боковая панель 
*/
.sidebar {
  width: 60px;
  transition: width .3s  ease;
  height: calc(100vh - 60px);
  background-color: #f6f6f6;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid #E0E0E0;
}

.sidebar--expanded {
  width: 150px;
  transition: width .3s  ease;
  align-items: flex-start;
}

.sidebar--expanded .menu-item,  .sidebar--expanded .bars{
  margin-left: 20px;
}

/* . {
  width: 18px;
  margin-bottom: 10px;
  fill: #828282;
  transition: fill 0.3s ease;
} */

.bars {
  margin: 50px 0;
  cursor: pointer;
}

.menu-item {
  text-decoration: none;
  color: #828282; 
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 25px;
  font-size: 12px;
  transition: color 0.3s ease;
}

.menu-item img {
  width: 24px;
  height: 24px;
}

.menu-item img.active-link {
  filter: invert(55%) sepia(57%) saturate(7386%) hue-rotate(303deg) brightness(83%) contrast(90%);
}

.menu-item-text {
  font-size: 14px;
  margin: 0 0 0 10px;
  display: block;
}

.tooltip-icon {
  width: 12px;
  height: 12px;
  margin-left: 2px;
  cursor: pointer;
  vertical-align: middle;
}

select.filter-select {
  background-image: url('../icons/select-triangle.svg');
}

/*Базовые навтройки fontawesome*/
.fas, .far, .fal {
  font-size: 18px;
  color: #828282;
}

/* Вывод ошибки */
.error-message {
  color: #e14141;
  font-size: 14px;
  margin-top: 5px;
}

/* Вывод успешного выполнения */
.success-message {
  color: #1ebe68; 
  font-size: 14px;
  margin-top: 5px;
}


/*Progress Bar*/
progress.progress-bar {
  width: 100px;
  height: 13px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #888;
  overflow: hidden;
  background-color: #f0f0f0;
}

progress.progress-bar::-webkit-progress-bar {
  background-color: #f0f0f0;
}

progress.progress-bar::-webkit-progress-value {
  background-color: #1DBC66;
}

progress.progress-bar::-moz-progress-bar {
  background-color: #1DBC66;
}

progress.progress-bar.progress-bar-grey::-webkit-progress-value {
  background-color: #e0e0e0;
}

progress.progress-bar.progress-bar-grey::-moz-progress-bar {
  background-color: #e0e0e0;
}

img.tma-logo {
  border-radius: 50%;
	overflow: hidden;
}

/* PDF */
.pdf {
  width: 100%;
  height: 100%;
}
