html, body {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* основной контент растягивается */
.content {
    flex: 1;
}


/* ===== HEADER (modern) ===== */
.main-header{
  background: linear-gradient(135deg, #e9f8ef 0%, #dff3e6 50%, #f4fff8 100%);
  border-bottom: 1px solid rgba(10,54,34,0.10);
  padding: 16px 0;
  margin-bottom: 24px;
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  /* “панель” */
  background: rgba(255,255,255,0.70);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(10,54,34,0.08);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.header-left{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
}

.header-logo{
  height: 44px;
  width: auto;
}

.brand{
  line-height: 1.1;
}

.header-title{
  font-size: 18px;
  font-weight: 700;
  color: #000000;
  margin: 0;
}

.header-subtitle{
  font-size: 12.5px;
  color: #000000;
  margin-top: 3px;
}

.header-nav{
  flex: 1;
  display: flex;
  justify-content: center;
}

.header-menu{
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;

  /* лёгкая “капсула” под меню */
  background: rgba(10,54,34,0.04);
  border: 1px solid rgba(10,54,34,0.06);
  border-radius: 999px;
  padding: 6px;
}

.header-link{
  display: inline-flex;
  align-items: center;
  gap: 6px;

  text-decoration: none;
  color: #0a3622;
  font-weight: 600;
  font-size: 13.5px;

  padding: 8px 12px;
  border-radius: 999px;
  transition: 0.18s ease-in-out;
}

.header-link:hover{
  background: rgba(10,54,34,0.07);
  color: #0a3622;
}

.header-link.is-active{
  background: rgba(25,135,84,0.14); /* bootstrap success but мягко */
  border: 1px solid rgba(25,135,84,0.25);
}

.header-right{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 260px;
}

.userbox{
  text-align: right;
  line-height: 1.1;
}

.userbox-name{
  font-size: 13px;
  font-weight: 700;
  color: #0a3622;
}

.userbox-meta{
  font-size: 11.5px;
  color: #4b7c63;
  margin-top: 3px;
}

.logout-form{
  margin: 0;
}

.header-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;

  border: 1px solid transparent;
  transition: 0.18s ease-in-out;
  background: #fff;
}

.header-btn-primary{
  border-color: rgba(25,135,84,0.35);
  color: #0a3622;
}

.header-btn-primary:hover{
  background: rgba(25,135,84,0.10);
}

.header-btn-danger{
  border-color: rgba(220,53,69,0.35);
  color: #8a1f2a;
}

.header-btn-danger:hover{
  background: rgba(220,53,69,0.08);
}

/* Адаптив */
@media (max-width: 992px){
  .header-inner{
    flex-direction: column;
    align-items: stretch;
  }
  .header-nav{
    justify-content: flex-start;
  }
  .header-right{
    justify-content: space-between;
    min-width: unset;
  }
  .userbox{
    text-align: left;
  }
}

/* Dropdown под стиль хедера */

.header-menu .dropdown-menu.custom-dropdown {
    border-radius: 12px;
    min-width: 220px;
    padding: 8px 0;
}

.header-menu .dropdown-item {
    font-size: 0.9rem;
    padding: 8px 16px;
    transition: background-color 0.2s ease;
}

.header-menu .dropdown-item:hover {
    background-color: #edf9f2;
    color: #196d3c;
}

/* ===== FOOTER ===== */

.main-footer{
  margin-top: 40px;
  padding: 18px 0;
  border-top: 1px solid rgba(10,54,34,0.08);
  background: #fafdfb;
}

.footer-inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.footer-left{
  font-size: 13px;
  color: #000000;
}

.footer-system{
  font-weight: 600;
  color: #050b09;
}

.footer-divider{
  margin: 0 8px;
  opacity: 0.5;
}

.footer-module{
  opacity: 0.9;
}

.footer-right{
  text-align: right;
}

.footer-copy{
  font-size: 13px;
  font-weight: 600;
  color: #000000;
}

.footer-meta{
  font-size: 11.5px;
  color: #000000;
}

