* {
  box-sizing: border-box;
  margin: 0;
  font-family: Arial, sans-serif;
}
body {
  background: #f5f6fa;
}

header {
  background: #b98fb0;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
}

header img {
  height: 50px;
  margin-right: 15px;
}
header h1 {
  font-size: 22px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  position: relative;
}

.user-info img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
}

.user-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.user-submenu {
  display: none;
  position: absolute;
  right: 0;
  top: 52px;
  background: #7a3851;
  min-width: 220px;
  z-index: 2000;
  border-radius: 6px;
  overflow: hidden;
}

.user-submenu a {
  display: block;
  color: white;
  padding: 10px;
  text-decoration: none;
}

.user-submenu a:hover {
  background: #40739e;
}

.user-info.active .user-submenu {
  display: block;
}

nav {
  background: #771a3e;
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
}

.menu {
  display: flex;
  gap: 20px;
}
.menu-item {
  position: relative;
}

.menu-item > a {
  color: white;
  text-decoration: none;
  padding: 10px;
  display: block;
}

.submenu {
  display: none;
  position: absolute;
  background: #7a3851;
  min-width: 220px;
  top: 40px;
  left: 0;
  z-index: 1000;
}

.submenu a {
  display: block;
  color: white;
  padding: 10px;
  text-decoration: none;
}

.submenu a:hover {
  background: #40739e;
}

.menu-item:hover .submenu {
  display: block;
}

.hamburger {
  display: none;
  font-size: 26px;
  color: white;
  cursor: pointer;
}

iframe {
  width: 100%;
  height: calc(100vh - 160px);
  border: none;
  background: white;
}

footer {
  background: #2f3640;
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 14px;
}

/* MODAL */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-card h3 {
  margin-bottom: 10px;
}

.modal-card label {
  display: block;
  margin-top: 8px;
  font-size: 14px;
}

.modal-card input,
.modal-card select {
  width: 100%;
  padding: 6px;
  margin-top: 3px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.modal-card button {
  margin-top: 12px;
  padding: 8px 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.modal-card button[type="submit"] {
  background: #771a3e;
  color: #fff;
}

.modal-card button[type="button"] {
  background: #7f8c8d;
  color: #fff;
  margin-left: 5px;
}

/* TOASTS */
#toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #333;
  color: white;
  padding: 12px 18px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s;
  z-index: 10000;
  font-size: 14px;
}

#toast.show {
  opacity: 1;
}
#toast.success {
  background: #2ecc71;
}
#toast.error {
  background: #e74c3c;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .menu {
    display: none;
    flex-direction: column;
    background: #2f3640;
    position: absolute;
    width: 100%;
    left: 0;
    top: 120px;
  }

  .menu.active {
    display: flex;
  }
  .menu-item:hover .submenu {
    display: none;
  }
  .submenu {
    position: static;
    display: none;
  }
  .menu-item.active .submenu {
    display: block;
  }
  .submenu a {
    padding-left: 30px;
  }
  .hamburger {
    display: block;
  }
}
