html {
  scroll-behavior: smooth;
}

body, html, h1, h2, h3, h4, h5, h6, ul, figure, p {
  margin: 0px;
  padding: 0px;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  cursor: pointer;
}

button {
  outline: none;
  border: none;
  cursor: pointer;
  border-radius: 0;
  background: none;
  margin: 0;
  padding: 0;
}

select, input[type=text], input[type=submit], input[type=number], input[type=phone], input[type=email], input[type=password],
input[type=mail], input[type=tel], textarea {
  outline: none;
  margin: 0;
  border-radius: 0;
}

input[type=submit] {
  cursor: pointer;
  -webkit-appearance: none;
}

div, section, main, aside, header, footer, p, h1, h2, h3, h4, h5, h6, form, input, ul, li, td, aside, a, nav {
  box-sizing: border-box;
}

table {
  border-collapse: collapse;
}

iframe {
  border: none;
}

@font-face {
  font-family: "inter";
  src: url("../fonts/inter.ttf");
  font-display: swap;
}
@font-face {
  font-family: "roboto";
  src: url("../fonts/roboto.ttf");
  font-display: swap;
}
p, a, ul, li, button, label {
  font-family: "inter", sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "roboto", sans-serif;
}

.u-c-main {
  color: #6c10b8;
}

.u-bg-main {
  background: #6c10b8;
}

.u-c-second {
  color: #C41C1C;
}

.u-bg-second {
  background: #C41C1C;
}

.u-c-third {
  color: #A39D8F;
}

.u-bg-third {
  background: #A39D8F;
}

.l-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1032;
  background: linear-gradient(135deg, #160f47 0%, #5b1d5c 100%);
  padding: 3px 0;
  display: flex;
  align-items: center;
}
body:not(.dark) .l-header {
  background: linear-gradient(45deg, #BBBDBF 0%, #E5E6E7 100%);
}

.l-main {
  width: 100%;
  margin: 110px 0 0 0;
  height: calc(100vh - 110px);
  padding: 0;
  background: #160f47;
  grid-area: unset;
  display: flex;
}
body:not(.dark) .l-main {
  background: #F0F0F0;
}

.l-breadcrumb {
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  height: 50px;
  background: #282542;
  display: flex;
  align-items: center;
  z-index: 1031;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
body:not(.dark) .l-breadcrumb {
  background: #F0F0F0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.l-sidebar {
  width: 255px;
  height: 100%;
  border-right: 1px solid #1e2f47;
  position: relative;
  flex-shrink: 0;
  transition: width 0.3s ease;
  padding: 20px;
}
body:not(.dark) .l-sidebar {
  background: #0056ff;
  border-right: none;
}
.l-sidebar--collapsed {
  width: 0px;
  padding: 3px;
}
.l-sidebar--collapsed .menu-text {
  opacity: 0;
  visibility: hidden;
}

.l-content {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
}

.m-breadcrumb {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 90%;
  margin: 0 auto;
}
.m-breadcrumb__toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e0e6ed;
  transition: color 0.2s ease;
}
body:not(.dark) .m-breadcrumb__toggle {
  color: #0e1726;
}
.m-breadcrumb__toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}
.m-breadcrumb__toggle:hover {
  color: #fff;
}
body:not(.dark) .m-breadcrumb__toggle:hover {
  color: #0056ff;
}
.m-breadcrumb__nav {
  flex: 1;
}
.m-breadcrumb__list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
  font-family: "inter", sans-serif;
}
.m-breadcrumb__item {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #888ea8;
}
body:not(.dark) .m-breadcrumb__item {
  color: #6c757d;
}
.m-breadcrumb__item a {
  color: #888ea8;
  text-decoration: none;
  transition: color 0.2s ease;
}
body:not(.dark) .m-breadcrumb__item a {
  color: #6c757d;
}
.m-breadcrumb__item a:hover {
  color: #e0e6ed;
}
body:not(.dark) .m-breadcrumb__item a:hover {
  color: #0056ff;
}
.m-breadcrumb__item--active {
  color: #e0e6ed;
  font-weight: 500;
}
body:not(.dark) .m-breadcrumb__item--active {
  color: #0e1726;
}
.m-breadcrumb__item:not(:last-child)::after {
  content: "/";
  margin: 0 8px;
  color: #555;
  font-weight: 300;
}
body:not(.dark) .m-breadcrumb__item:not(:last-child)::after {
  color: #adb5bd;
}

.m-header {
  width: 90%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}
.m-header__brand {
  display: block;
  padding: 10px 0;
}
.m-header__brand img {
  height: 34px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}
body:not(.dark) .m-header__brand img {
  filter: brightness(0) saturate(100%) invert(27%) sepia(97%) saturate(3041%) hue-rotate(213deg) brightness(101%) contrast(107%);
}
.m-header__actions {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 15px;
}
.m-header__actions .theme-toggle-item {
  display: flex;
}
.m-header__actions .theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
}
.m-header__actions .theme-toggle svg {
  width: 24px;
  height: 24px;
  color: #e0e6ed;
  stroke: #e0e6ed;
}
.m-header__actions .theme-toggle .dark-mode {
  display: none;
}
.m-header__actions .theme-toggle .light-mode {
  color: #ff6201;
  stroke: #ff6201;
}
body.dark .m-header__actions .theme-toggle .light-mode {
  display: none;
}
body.dark .m-header__actions .theme-toggle .dark-mode {
  display: block;
}
.m-header__actions .user-profile-item {
  display: flex;
  position: relative;
}
.m-header__actions .user-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
}
.m-header__actions .user-profile .avatar-container {
  width: 36px;
  height: 36px;
}
.m-header__actions .user-profile .avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
  display: block;
}
.m-header__dropdown {
  position: absolute;
  top: calc(100% + 13px);
  right: 0;
  background: #26214a;
  border-radius: 0 0 7px 7px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  font-family: "inter", sans-serif;
}
body:not(.dark) .m-header__dropdown {
  background: linear-gradient(135deg, #F0F1F1 0%, #DBDDDE 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.m-header__dropdown--active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.m-header__dropdown .dropdown-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
body:not(.dark) .m-header__dropdown .dropdown-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}
.m-header__dropdown .dropdown-header .user-name {
  font-size: 16px;
  font-weight: 600;
  color: #e0e6ed;
}
body:not(.dark) .m-header__dropdown .dropdown-header .user-name {
  color: #0e1726;
}
.m-header__dropdown .dropdown-item {
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
body:not(.dark) .m-header__dropdown .dropdown-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.m-header__dropdown .dropdown-item:last-child {
  border-bottom: none;
}
.m-header__dropdown .dropdown-item a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  color: #e0e6ed;
  text-decoration: none;
  transition: background 0.2s ease;
}
body:not(.dark) .m-header__dropdown .dropdown-item a {
  color: #0e1726;
}
.m-header__dropdown .dropdown-item a:hover {
  background: rgba(255, 255, 255, 0.05);
}
body:not(.dark) .m-header__dropdown .dropdown-item a:hover {
  background: rgba(0, 0, 0, 0.03);
}
.m-header__dropdown .dropdown-item a svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}
.m-header__dropdown .dropdown-item a span {
  font-size: 14px;
}

.page-builder-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .page-builder-row {
    flex-direction: column;
    gap: 15px;
  }
}

.page-builder-col-1 {
  flex: 0 0 calc(16.6666666667% - 16.6666666667px);
}
@media (max-width: 768px) {
  .page-builder-col-1 {
    flex: 0 0 100%;
  }
}

.page-builder-col-2 {
  flex: 0 0 calc(33.3333333333% - 13.3333333333px);
}
@media (max-width: 768px) {
  .page-builder-col-2 {
    flex: 0 0 100%;
  }
}

.page-builder-col-3 {
  flex: 0 0 calc(50% - 10px);
}
@media (max-width: 768px) {
  .page-builder-col-3 {
    flex: 0 0 100%;
  }
}

.page-builder-col-4 {
  flex: 0 0 calc(66.6666666667% - 6.6666666667px);
}
@media (max-width: 768px) {
  .page-builder-col-4 {
    flex: 0 0 100%;
  }
}

.page-builder-col-5 {
  flex: 0 0 calc(83.3333333333% - 3.3333333333px);
}
@media (max-width: 768px) {
  .page-builder-col-5 {
    flex: 0 0 100%;
  }
}

.page-builder-col-6 {
  flex: 0 0 100%;
}

.page-builder-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  height: 100%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}
.page-builder-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}
body.dark .page-builder-card {
  background: rgba(0, 0, 0, 0.2);
}

.page-builder-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  border-radius: 7px;
  color: purple;
  font-weight: 500;
}
body.dark .page-builder-placeholder {
  color: red;
}
.page-builder-placeholder p {
  margin: 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.m-sidebar {
  width: 100%;
  height: 100%;
}
.m-sidebar .menu-text {
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.m-sidebar__toggle {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}
.m-sidebar__toggle:hover {
  transform: scale(1.1);
}
.m-sidebar__toggle svg {
  width: 20px;
  height: 20px;
}
@media (max-width: 768px) {
  .m-sidebar__toggle {
    display: none;
  }
}
.m-sidebar__menu {
  padding: 10px 0;
}

.menu-item {
  position: relative;
  margin: 0 0 5px 0;
}
.menu-item__link {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  cursor: pointer;
}
.menu-item__link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 7px;
}
.menu-item__link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.menu-item__content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.menu-item__text {
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 0 12px;
}
.menu-item__arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}
.menu-item--active > .menu-item__link {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-left: 3px solid #5b1d5c;
}
body:not(.dark) .menu-item--active > .menu-item__link {
  border-left: 3px solid #ff6201;
}
.menu-item--open .menu-item__arrow {
  transform: rotate(90deg);
}

.submenu {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.submenu--open {
  max-height: 500px;
}
.submenu__item {
  padding-left: 50px;
}
.submenu__item a {
  display: block;
  padding: 10px 20px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  position: relative;
}
.submenu__item a:hover {
  color: white;
  padding-left: 25px;
}
.submenu__item a.active {
  color: white;
  font-weight: 600;
  padding-left: 25px;
}
.submenu__item a.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: #5b1d5c;
  border-radius: 2px;
}
body:not(.dark) .submenu__item a.active::before {
  background: #ff6201;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  top: 120px;
  left: 0;
  width: 100%;
  height: calc(100vh - 120px);
  background: rgba(0, 0, 0, 0.5);
  z-index: 997;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.sidebar-backdrop--active {
  display: block;
  opacity: 1;
}
@media (max-width: 768px) {
  .sidebar-backdrop {
    display: block;
  }
}
