@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #ffffff;
  color: #000000;
  min-height: 100vh;
  display: flex;
}

/* ================= Sidebar ================= */

.sidebar {
  width: 250px;
  background-color: white;
  color: black;
  padding: 2rem 1rem;
  position: fixed;
  height: 100vh;
  box-shadow: 2px 0 12px rgba(0,0,0,0.08);
  z-index: 999;
  top: 0;
  left: 0;
  transition: left 0.3s ease;
  overflow-y: auto;
}

.sidebar h2 {
  font-size: 22px;
  margin-bottom: 2rem;
  color: black;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {

  margin-bottom: 1.3rem;
  transition: 0.2s ease;
}

.sidebar li i {
  margin-right: 10px;
  font-size: 18px;
  color: black;
}

.sidebar li a {
  color: black;
  text-decoration: none;
  font-weight: 500;
}

.sidebar li:hover {
  transform: translateX(4px);
  opacity: 0.7;
  cursor: pointer;
}

/* ================= Main ================= */

.main-content {
  margin-left: 280px;
  width: calc(100% - 250px);
  padding: 2rem;
  box-sizing: border-box;
  background: #ffffff;
}

header h1 {
  font-size: 2rem;
  margin-bottom: 0.3rem;
  color: #000;
}

header p {
  color: #555;
  margin-bottom: 2rem;
}

/* ================= Cards ================= */

.cards,
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  padding: 2rem;
  text-align: center;
  color: #000;
  transition: 0.25s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.card i {
  font-size: 36px;
  margin-bottom: 1rem;
  color: #000;
}

.card h3 {
  margin-bottom: 0.5rem;
  font-size: 18px;
  color: #000;
}

.card p {
  font-size: 14px;
  color: #555;
}

/* ================= Buttons ================= */

button,
.add-btn,
.login-btn,
.save-btn {
  background: #000;
  color: #fff;
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s ease;
}

button:hover,
.add-btn:hover,
.login-btn:hover,
.save-btn:hover {
  background: #333;
}

button:active {
  transform: scale(0.97);
}

/* ================= Forms ================= */

input {
  padding: 0.7rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #fff;
  color: #000;
  font-size: 14px;
  outline: none;
}

input:focus {
  border-color: #000;
}

/* ================= Login ================= */

.login-body {
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.login-container {
  background: #ffffff;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  max-width: 400px;
  width: 100%;
  border: 1px solid #e5e5e5;
}

.login-container h2 {
  color: #000;
  margin-bottom: 2rem;
}

.login-footer {
  margin-top: 2rem;
  font-size: 13px;
  color: #777;
}

/* ================= Stats ================= */

.summary-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.04);
}

.summary-card h4 {
  color: #000;
  margin-bottom: 0.4rem;
}

.summary-card p {
  font-size: 1.4rem;
  font-weight: 600;
  color: #000;
}

/* ================= Overlay ================= */
.admin-guide-text {
  margin-top: 3rem;
  line-height: 1.8;
  font-size: 15px;
  color: #000;
}

.admin-guide-text strong {
  color: #000;
  font-weight: 600;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 998;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ================= Hamburger ================= */

.hamburger {
  display: none !important;
  font-size: 2rem;
  color: #000;
  cursor: pointer;
}

/* ================= Mobile ================= */

@media (max-width: 768px) {

  .sidebar {
    left: -300px;
  }

  .sidebar.active {
    left: 0;
  }

  .main-content {
    margin-left: 0;
    width: 100%;
    padding: 1rem;
  }

  .hamburger {
    display: block !important;
  }
}
/* ================= Sidebar accordion ================= */

.sb-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sb-flat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  color: #000;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease;
  margin-bottom: 2px;
}

.sb-flat:hover {
  background: #f5f5f5;
}

.sb-flat i {
  font-size: 18px;
  flex-shrink: 0;
  color: #000;
}

.sb-logout {
  color: #cc0000 !important;
}

.sb-logout i {
  color: #cc0000 !important;
}

.sb-logout:hover {
  background: #fff0f0 !important;
}

.sb-group {
  margin-bottom: 2px;
}

.sb-group-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #000;
  user-select: none;
  transition: background 0.15s ease;
}

.sb-group-header:hover {
  background: #f5f5f5;
}

.sb-group-header > i:first-child {
  font-size: 18px;
  flex-shrink: 0;
}

.sb-group-header span {
  flex: 1;
}

.sb-group-header .chev {
  font-size: 16px;
  color: #888;
  transition: transform 0.22s ease;
  flex-shrink: 0;
}

.sb-group.open > .sb-group-header .chev {
  transform: rotate(180deg);
}

.sb-children {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.28s ease, opacity 0.2s ease;
}

.sb-group.open > .sb-children {
  max-height: 400px;
  opacity: 1;
}

.sb-child {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.38rem 0.6rem 0.38rem 2.2rem;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 400;
  color: #555;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  margin-bottom: 1px;
}

.sb-child:hover {
  background: #f5f5f5;
  color: #000;
}

.sb-child i {
  font-size: 15px;
  flex-shrink: 0;
}

.sb-divider {
  border: none;
  border-top: 1px solid #f0f0f0;
  margin: 0.5rem 0.3rem;
}
.sb-children {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.28s ease, opacity 0.2s ease;
  
  /* ezek a fontosak: */
  position: static !important;
  display: block !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  width: auto !important;
  left: auto !important;
  top: auto !important;
}

.sb-group.open > .sb-children {
  max-height: 400px;
  opacity: 1;
}
/* ================= Modal & SweetAlert rétegrend ================= */

.swal2-container {
  z-index: 100000 !important;
}