
:root{
  --orange:#f08a24;
}
.btn-orange{
  background-color: #ffe7cc;
  color: #000;
  border: none;
}
.btn-orange:hover{
  background-color: #ffa033;
}
.bg-orange{
  background-color: var(--orange) !important;
}
.card.tile{
  border: 1px solid #e5e5e5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.card.tile:hover{
  border: 1px solid #d4d4d4;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.navbar-dark.bg-secondary .navbar-brand{
  background:#e9ecef;
}
pre{
  white-space: pre-wrap;
}

.shadow-navbar {
  border: 1px solid #d8d8d8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.navbar .nav-link {
  color: #333 !important;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease-in-out;
}

.navbar .nav-link:hover {
  color: #000 !important;
  background-color: rgba(0, 0, 0, 0.03);
}

@media (max-width: 991.98px) {
  .custom-collapse {
    background-color: #efefef;
    padding: 0.5rem;
    margin-top: 0.5rem;
    border: none;
    text-align: right;
    box-shadow: inset 0 5px 5px -5px rgba(0, 0, 0, 0.4);
    border-radius: 0 0 0.25rem 0.25rem;
  }
  .custom-collapse .nav-link {
    display: block;
    padding: 0.5rem 0;
    border: none !important;
  }
}
@media (min-width: 992px) {
  .custom-collapse {
    background-color: transparent !important;
    padding: 0;
    margin-top: 0;
    box-shadow: none;
    text-align: left;
  }
}

.custom-toggler:focus,
.custom-toggler:active {
  box-shadow: none;
  background-color: transparent;
}
.custom-toggler:hover {
  border-color: #333;
}

.custom-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%280, 0, 0, 0.7%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.btn-back {
  display: inline-block;
  background: none;
  border: 1px solid transparent;
  color: #333;
  font-weight: 500;
  padding: 0.5rem 1rem;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.btn-back:hover {
  border-color: #e5e5e5;
  color: #000;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-back:focus {
  outline: none;
  box-shadow: none;
}

.lesson-title {
  font-size: 1.1rem;
}

.page-title {
  margin-bottom: 1rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid #ff8800;
}

.task-header {
  background-color: rgba(0,0,0, 0.02);
  border: none;
}

.btn-dop {
  border: 1px solid #ffb866;
  background: #ffffff;
  color: #333;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease-in-out;
}

.btn-dop:hover {
  border-color: #ffa033;
  color: #000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-dop:focus {
  outline: none;
  box-shadow: none;
}

.btn-dop2 {
  display: inline-block;
  background: none;
  border: 1px solid transparent;
  border-color: #ffb866;
  color: #333;
  font-weight: 500;
  padding: 0.5rem 1rem;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.btn-dop2:hover {
  border-color: #ffa033;
  color: #000;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-dop2:focus {
  outline: none;
  box-shadow: none;
}

.btn-green {
  display: inline-block;
  background: none;
  border: 1px solid transparent;
  color: #333;
  font-weight: 500;
  padding: 0.5rem 1rem;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.btn-green:hover {
  border-color: #00cc6a;
  color: #000;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-green:focus {
  outline: none;
  box-shadow: none;
}

.btn-red {
  display: inline-block;
  background: none;
  border: 1px solid transparent;
  border-color: #FF2400;
  color: #333;
  font-weight: 500;
  padding: 0.5rem 1rem;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.btn-red:hover {
  border-color: #CD2607;
  color: #000;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn-red:focus {
  outline: none;
  box-shadow: none;
}

.btn-red-thin {
  border-color: #FF2400;
  background: #ffffff;
  color: #333;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease-in-out;
}

.btn-red-thin:hover {
  border-color: #CD2607;
  color: #000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-red-thin:focus {
  outline: none;
  box-shadow: none;
}
.tasklist {
  border: 1px solid #ffcf99;
  background: #ffffff;
  color: #333;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease-in-out;
}
.tasklist:hover {
  background: #ffefdd;
  color: #333;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease-in-out;
}
.tasklist2,
.tasklist2:hover {
  background: #ffdfbb;
  color: #333;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease-in-out;
}
.tasklist:focus,
.tasklist2:focus
 {
  outline: none;
  box-shadow: none;
}

.btn-login {
  border: 1px solid #ffefdd;
  background: #ffefdd;
  font-weight: 500;
  color: #333;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease-in-out;
  border-radius: 0.5rem;
}

.btn-login:hover {
  border: 1px solid #ffdfbb;
  background: #ffdfbb;
  color: #000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-login:focus {
  outline: none;
  box-shadow: none;
}

.table-fixed {
  table-layout: fixed;
  width: 100%;
}
[data-reorder-item] {
  transition: background-color 0.15s ease;
}

[data-drag-handle] {
  cursor: grab;
  user-select: none;
}

.reorder-dragging {
  opacity: 0.5;
  background-color: #fff3e6;
}

.filter-toggle-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-toggle {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid #ffb866;
  background: #ffffff;
  color: #333;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.4rem;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.filter-toggle:hover {
  border-color: #ffa033;
  color: #000;
  text-decoration: none;
}

.filter-toggle.active {
  background: #ff8800;
  border-color: #ff8800;
  color: #fff;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.filter-chip {
  display: inline-block;
  border: 1px solid #e5b98a;
  background: #ffffff;
  color: #333;
  font-size: 0.85rem;
  line-height: 1.2;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease-in-out;
}

.filter-chip:hover {
  border-color: #ff8800;
  color: #000;
  text-decoration: none;
}

.filter-chip.active {
  background: #ffdfbb;
  border-color: #ff8800;
  color: #000;
}

.filter-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #333;
  padding: 0.4rem 0;
}

.filter-check:hover {
  color: #000;
  text-decoration: none;
}

.filter-check-box {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  border: 1px solid #ffb866;
  border-radius: 0.25rem;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.filter-check.active .filter-check-box {
  background: #ff8800;
  border-color: #ff8800;
  color: #fff;
  font-size: 0.8rem;
  line-height: 1;
}

.task-difficulty {
  color: #ff8800;
  letter-spacing: 1px;
}

.star-rating {
  display: inline-flex;
  gap: 0.15rem;
  font-size: 2rem;
  line-height: 1;
}

.star-rating .star {
  color: #ccc;
  cursor: pointer;
  user-select: none;
  transition: color 0.1s ease-in-out;
}

.star-rating .star.lit {
  color: #ff8800;
}

.test-pre {
  background: rgba(0,0,0,0.03);
  border-radius: 0.3rem;
  padding: 0.35rem 0.5rem;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.85rem;
  min-height: 1.6rem;
}

.tag-picker {
  position: relative;
}

.tag-picker-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}

.tag-picker-chips:empty {
  margin-bottom: 0;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #ffffff;
  border: 2px solid #ff8800;
  color: #333;
  font-size: 0.85rem;
  padding: 0.15rem 0.4rem 0.15rem 0.6rem;
  border-radius: 999px;
}

.tag-chip-remove {
  border: none;
  outline: none;
  background: transparent;
  color: #ff8800;
  line-height: 1;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  padding: 0 0.1rem;
}

.tag-chip-remove:hover {
  color: #a33;
}

.tag-picker-suggestions {
  position: absolute;
  z-index: 20;
  top: 100%;
  left: 0;
  right: 0;
  background: #f2f2f2;
  border: 1px solid #d9d9d9;
  border-radius: 0.3rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  max-height: 220px;
  overflow-y: auto;
}

.tag-picker-option {
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: #333;
}

.tag-picker-option:hover {
  background: #ff8800;
  color: #fff;
}

/* --- Каталог задач: статус отправки (для своих задач) --- */
.badge-outline {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  background: transparent;
  border: 1px solid;
  white-space: nowrap;
}

.badge-outline-success {
  color: #198754;
  border-color: #198754;
}

.badge-outline-secondary {
  color: #6c757d;
  border-color: #6c757d;
}

.badge-outline-danger {
  color: #dc3545;
  border-color: #dc3545;
}