@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

:root {
  color-scheme: dark;
  --md-sys-color-primary: rgb(155 212 160);
  --md-sys-color-surface-tint: rgb(155 212 160);
  --md-sys-color-on-primary: rgb(0 57 21);
  --md-sys-color-primary-container: rgb(27 81 41);
  --md-sys-color-on-primary-container: rgb(182 241 187);
  --md-sys-color-secondary: rgb(157 212 158);
  --md-sys-color-on-secondary: rgb(2 57 19);
  --md-sys-color-secondary-container: rgb(30 81 39);
  --md-sys-color-on-secondary-container: rgb(184 241 185);
  --md-sys-color-tertiary: rgb(154 212 162);
  --md-sys-color-on-tertiary: rgb(0 57 23);
  --md-sys-color-tertiary-container: rgb(25 81 42);
  --md-sys-color-on-tertiary-container: rgb(181 241 189);
  --md-sys-color-error: rgb(255 179 178);
  --md-sys-color-on-error: rgb(86 29 32);
  --md-sys-color-error-container: rgb(115 51 53);
  --md-sys-color-on-error-container: rgb(255 218 217);
  --md-sys-color-background: rgb(16 21 16);
  --md-sys-color-on-background: rgb(224 228 220);
  --md-sys-color-surface: rgb(16 21 16);
  --md-sys-color-on-surface: rgb(224 228 220);
  --md-sys-color-surface-variant: rgb(65 73 65);
  --md-sys-color-on-surface-variant: rgb(193 201 190);
  --md-sys-color-outline: rgb(139 147 137);
  --md-sys-color-outline-variant: rgb(65 73 65);
  --md-sys-color-shadow: rgb(0 0 0);
  --md-sys-color-scrim: rgb(0 0 0);
  --md-sys-color-inverse-surface: rgb(224 228 220);
  --md-sys-color-inverse-on-surface: rgb(45 50 44);
  --md-sys-color-inverse-primary: rgb(53 105 63);
  --md-sys-color-primary-fixed: rgb(182 241 187);
  --md-sys-color-on-primary-fixed: rgb(0 33 9);
  --md-sys-color-primary-fixed-dim: rgb(155 212 160);
  --md-sys-color-on-primary-fixed-variant: rgb(27 81 41);
  --md-sys-color-secondary-fixed: rgb(184 241 185);
  --md-sys-color-on-secondary-fixed: rgb(0 33 8);
  --md-sys-color-secondary-fixed-dim: rgb(157 212 158);
  --md-sys-color-on-secondary-fixed-variant: rgb(30 81 39);
  --md-sys-color-tertiary-fixed: rgb(181 241 189);
  --md-sys-color-on-tertiary-fixed: rgb(0 33 11);
  --md-sys-color-tertiary-fixed-dim: rgb(154 212 162);
  --md-sys-color-on-tertiary-fixed-variant: rgb(25 81 42);
  --md-sys-color-surface-dim: rgb(16 21 16);
  --md-sys-color-surface-bright: rgb(54 58 53);
  --md-sys-color-surface-container-lowest: rgb(11 15 11);
  --md-sys-color-surface-container-low: rgb(24 29 24);
  --md-sys-color-surface-container: rgb(28 33 28);
  --md-sys-color-surface-container-high: rgb(38 43 38);
  --md-sys-color-surface-container-highest: rgb(49 54 49);
  --sidebar-bg: #101510;
  --main-bg: #0b0f0b;
  --surface-bg: #101510;
  --card-bg: #232823;
  --red: #ff0000;
  --green-btn: #2d3a2d;
  --green-btn-arrow: #b6c6b6;
  --blue-btn: #06494B;
  --blue-btn-arrow: #8CD5DC;
  --text-main: #e3e3e3;
  --text-secondary: #a0a0a0;
  --border-radius: 32px;
  --card-radius: 32px;
  --news-radius: 20px;
  --sidebar-width: 76px;
  --transition: 0.2s cubic-bezier(.4, 0, .2, 1);
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: var(--surface-bg);
  color: var(--text-main);
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
  width: 100vw;
  overflow-x: hidden;
  overflow-y: hidden;
}

.app-bg {
  position: relative;
  min-height: 100vh;
  min-width: 100vw;
  width: calc(100vw - var(--sidebar-width) - 44px);
  height: 100vh;
  background: var(--surface-bg);
  display: flex;
  flex-direction: row;
}

.sidebar {
  background: #101510;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 0;
  border-radius: 32px 0 0 32px;
  min-width: var(--sidebar-width);
  width: var(--sidebar-width);
  height: calc(100vh - 44px);
  margin-top: 22px;
  margin-bottom: 22px;
  z-index: 2;
  position: relative;
}

.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 0;
}

.main-content {
  background: var(--main-bg);
  border-radius: 32px;
  margin: 22px 22px 0px 0;
  padding: 0 22px 0px 32px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.12);
  max-width: calc(100% - 22px);
  min-height: calc(100dvh - 104px); /* mobilbarát */
  height: calc(100dvh - 104px);
  overflow: hidden;
}

.header {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  margin-bottom: 0;
  position: relative;
  min-height: 35px;
}

.header-icons {
  position: absolute;
  top: 8px;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--green-btn);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  transition: var(--transition);
}

.header-icon-link:hover {
  background-color: var(--card-bg);
}

.header-icon {
  width: 24px;
  height: 24px;
}

.footer { 
  margin-top: 8px; 
  position: relative; 
}

#site-footer .footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 12px;
  background: #0E1512;
}
#site-footer .footer-left img,
#site-footer .footer-right img {
  height: 65px;
  object-fit: contain;
}

#site-footer .footer-right {
  padding-right: 48px;
}

#site-footer .footer-center {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
#site-footer .footer-privacy {
  color: #C4C8C3;
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
}
@media (max-width: 900px) {
  #site-footer .footer-container {
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
  }
}

.nav-menu {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 24px;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.75rem;
  width: 64px;
  padding: 0;
  border-radius: 16px;
  transition: var(--transition);
  position: relative;
}

.nav-item-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.75rem;
  width: 64px;
  height: 64px;
  padding: 0;
  border-radius: 16px;
  transition: var(--transition);
  position: relative;
  border: none;
  background: none;
  outline: none;
}

.nav-item:not(.active):hover .nav-icon-container {
  background-color: #232823;
}

.nav-item-list:hover {
  background-color: #ffffff2b;
}

.nav-item-list span {
  pointer-events: none;
}

.nav-item.active .nav-icon-container {
  background-color: var(--green-btn);
}

.nav-item span {
  color: #C1C9BE;
}

.nav-item.active span {
  color: #D4E8D1;
}

.nav-icon {
  filter: brightness(0) saturate(100%) invert(85%) sepia(6%) saturate(466%) hue-rotate(60deg) brightness(95%) contrast(86%); /* #C1C9BE */
}

.nav-item.active .nav-icon {
  filter: brightness(0) saturate(100%) invert(94%) sepia(11%) saturate(309%) hue-rotate(61deg) brightness(94%) contrast(90%); /* #D4E8D1 */
}
.nav-icon-container {
  width: 56px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  transition: var(--transition);
}

.nav-icon {
  width: 24px;
  height: 24px;
}

/* ---------- open navbar  ---------- */

.nav-menu-open {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 24px;
}
.nav-item-open {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.75rem;
  width: calc(100% - 28px);
  padding: 0;
  border-radius: 16px;
  transition: var(--transition);
  position: relative;
}

.nav-item-open-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.75rem;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  padding: 0;
  border-radius: 16px;
  transition: var(--transition);
  position: relative;
  border: none;
  background: none;
  outline: none;
}

.nav-item-open:not(.active):hover {
  background-color: #232823;
  height: 50px;
  border-radius: 32px;
}

.nav-item-list:hover {
  background-color: #ffffff2b;
}

.nav-item.active {
  /* background-color: var(--green-btn); */
  height: 50px;
  border-radius: 32px;
}

.nav-item-open span {
  color: #C1C9BE;
}

.nav-item-open.active span {
  color: #D4E8D1;
}

.nav-icon-open {
  filter: brightness(0) saturate(100%) invert(85%) sepia(6%) saturate(466%) hue-rotate(60deg) brightness(95%) contrast(86%); /* #C1C9BE */
}

.nav-item-open.active .nav-icon-open {
  filter: brightness(0) saturate(100%) invert(94%) sepia(11%) saturate(309%) hue-rotate(61deg) brightness(94%) contrast(90%); /* #D4E8D1 */
}
.nav-icon-open-container {
  width: 56px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  transition: var(--transition);
}

/* Alapból elrejtjük a szöveget */
.nav-item-list span {
  display: none;
}

/* Csak ha a gombnak van a "-open" osztálya, mutatjuk */
.nav-item-list.nav-item-open-list span {
  display: flex; /* vagy flex, ha flex konténer */
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 4px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-track {
  background: transparent;
}

.account-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
}

.account-icon {
  width: 120px;
  height: 120px;
  margin-bottom: 24px;
}

.account-title {
  font-size: 2.5rem;
  font-weight: 500;
  margin: 0 0 24px 0;
}

.account-description {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 0 40px 0;
}

.account-description strong {
  font-weight: 700;
}

.login-button {
  width: 245px;
  height: 120px;
  background-color: #2A3827;
  color: #C4C8C3;
  border: none;
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 80px;
  margin-bottom: 20px;
}

.login-button:hover {
  border-radius: 22px;
}

.login-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 8px;
}

.login-text {
  font-size: 1rem;
  font-weight: 540;
}

.account-view {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
  width: 100%;
}

.left-column {
  width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0px 24px 8px 24px;
  overflow-y: auto;
  position: relative;
  height: 100%;
  max-height: calc(100vh - 148px);
  box-sizing: border-box;
  justify-content: flex-start;
  gap: 8px;
}



.avatar {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  margin-bottom: 4px;
}

.user-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #E0E4DB;
  margin: 0;
}

.account-type {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.school-logo {
  width: 24px;
  height: 24px;
}

.user-details {
  margin-top: 24px;
  width: 100%;
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #E0E4DB;
}

.detail-icon {
  width: 24px;
  height: 24px;
}

.logout-button {
  margin-top: auto;
  align-self: flex-start;
  width: 100%;
  padding: 16px;
  background-color: #2A3827;
  color: #C4C8C3;
  border: none;
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.logout-button:hover {
  border-radius: 22px;
}

.logout-icon {
  width: 23px;
  height: 23px;
  padding-bottom: 10px;
}

.delete-data-button {
  margin-top: 8px;
  margin-bottom: 16px;
  align-self: flex-start;
  width: 100%;
  padding: 16px;
  background-color: #4A2827;
  color: #F5C2C1;
  border: none;
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.delete-data-button:hover {
  border-radius: 22px;
  background-color: #5A3332;
}

.delete-icon {
  width: 23px;
  height: 23px;
  padding-bottom: 10px;
  filter: brightness(0) saturate(100%) invert(85%) sepia(15%) saturate(1000%) hue-rotate(315deg) brightness(105%) contrast(95%);
}

.divider {
  width: 1px;
  background-color: #3B4C39;
  height: 100%;
}

.right-column {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 44px);
  overflow-y: auto;
  position: relative;
}

.right-column::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  pointer-events: none;
}

.button-group {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.button-group-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none !important;
  height: 100px;
  box-sizing: border-box;
  flex: 1;
  justify-content: center;
  border-radius: 160px;
  position: relative;
  color: #C4C8C3;
}

.button-group-item.active {
  background: #3B4C39;
}

.button-group-item:not(.active) {
  background: #2A3827;
}

.button-group-item.btn-first:not(.active) {
  border-radius: 32px 8px 8px 32px !important;
}

.button-group-item.btn-middle:not(.active) {
  border-radius: 8px !important;
}

.button-group-item.btn-last:not(.active) {
  border-radius: 8px 32px 32px 8px !important;
}

.button-group-item.btn-first:not(.active):hover {
  border-radius: 32px 22px 22px 32px !important;
}

.button-group-item.btn-middle:not(.active):hover {
  border-radius: 22px !important;
}

.button-group-item.btn-last:not(.active):hover {
  border-radius: 22px 32px 32px 22px !important;
}

.button-group-icon {
  width: 24px;
  height: 24px;
}

.account-page {
  display: none;
}

.account-page.active {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  position: relative;
  height: calc(100vh - 180px);
  max-height: calc(100vh - 330px);
  padding-right: 8px;
  border-radius: 32px;
}

.account-page.active::-webkit-scrollbar {
  width: 8px;
}

.account-page.active::-webkit-scrollbar-thumb {
  background: #3B4C39;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.account-page.active::-webkit-scrollbar-thumb:hover {
  background: #4A5C47;
}

.account-page.active::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 4px;
}

.card {
  background-color: #101510;
  padding: 24px;
  margin-bottom: 4px;
}

.card-supervision {
  background-color: #101510;
  padding: 24px;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-top {
  border-radius: 32px 32px 8px 8px;
  color: #D4E8D1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-top-supervision {
  border-radius: 32px 32px 8px 8px;
  color: #D4E8D1;
}

.card-top-full {
  border-radius: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #D4E8D1;
}

.card-middle {
  border-radius: 8px;
  color: #D4E8D1;
}

.card-bottom {
  border-radius: 8px 8px 32px 32px;
  color: #D4E8D1;
}

.card-single {
  border-radius: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #D4E8D1;
}

.card-inside {
  background-color: #1E2A1E;
  padding: 24px;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #D4E8D1;
}

.card-inside-with-description {
  background-color: #1E2A1E;
  padding: 24px;
  margin-bottom: 4px;
  display: flex;
  flex-direction: column;
  color: #D4E8D1;
}

.card-inside-with-description > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.card-inside-with-description > div:not(:first-child) {
  align-self: flex-start;
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

.card-inside-first {
  border-radius: 32px 32px 8px 8px;
  color: #D4E8D1;
}

.card-inside-middle {
  border-radius: 8px;
  color: #D4E8D1;
}

.card-inside-last {
  border-radius: 8px 8px 32px 32px;
  color: #D4E8D1;
}

.card-inside-bottom {
  border-radius: 8px 8px 32px 32px;
  color: #D4E8D1;
}

.card-inside-2 {
  background-color: #1E2A1E;
  padding: 24px;
  margin-bottom: 4px;
}

.card-inside-2-bottom {
  border-radius: 8px 8px 32px 32px;
  color: #D4E8D1;
}

.card-inside-inside {
  background-color: #3A4B3A;
  padding: 24px;
  margin-bottom: 4px;
  align-items: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-inside-inside-first {
  border-radius: 32px 32px 8px 8px;
  color: #D4E8D1;
}

.card-inside-inside-middle {
  border-radius: 8px;
  color: #D4E8D1;
}

.card-inside-inside-last {
  border-radius: 8px 8px 32px 32px;
  color: #D4E8D1;
}

.notice {
  background-color: #2C332C;
  border-radius: 32px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #C1C9BE;
  margin: 16px 0;
}

.notice-top {
  background-color: #2C332C;
  border-radius: 32px 32px 8px 8px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #C1C9BE;
  margin: 16px 0 4px 0;
}

.notice-middle {
  background-color: #2C332C;
  border-radius: 8px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #C1C9BE;
  margin: 0 0 4px 0;
}

.notice-bottom {
  background-color: #2C332C;
  border-radius: 8px 8px 32px 32px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #C1C9BE;
  margin: 0 0 16px 0;
}

.radio-group {
  margin-top: 16px;
}

.radio-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  color: #C1C9BE;
}

.radio-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  color: #C1C9BE;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.textbox-container textarea {
  width: 100%;
  box-sizing: border-box;
  background-color: #2C332C;
  border-radius: 32px 32px 8px 8px;
  border: none;
  padding: 16px;
  color: #F7FFF7;
  resize: none;
  min-height: 80px;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  outline: none;
}

.textbox-container {
  margin-top: 10px;
}

/* Delete Confirmation Popup */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-container {
  background-color: var(--surface-bg);
  border-radius: 24px;
  padding: 40px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.popup-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.popup-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
  filter: brightness(0) saturate(100%) invert(85%) sepia(15%) saturate(1000%) hue-rotate(315deg) brightness(105%) contrast(95%);
}

.popup-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 16px 0;
  line-height: 1.3;
}

.popup-description {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0 0 32px 0;
  line-height: 1.5;
}

.popup-buttons {
  display: flex;
  gap: 16px;
  width: 100%;
}

.popup-button-primary,
.popup-button-secondary {
  flex: 1;
  padding: 16px 24px;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-button-primary {
  background-color: #4A2827;
  color: #F5C2C1;
}

.popup-button-primary:hover {
  background-color: #5A3332;
}

.popup-button-secondary {
  background-color: var(--card-bg);
  color: var(--text-main);
  border: 2px solid #3B4C39;
}

.popup-button-secondary:hover {
  background-color: #2A3827;
}

/* Responsive design */
@media (max-width: 768px) {
  .account-view {
    flex-direction: column;
  }
  
  .left-column {
    width: 100%;
    min-height: auto;
  }
  
  .right-column {
    width: 100%;
  }
  
  .popup-container {
    padding: 24px;
    max-width: 320px;
  }
  
  .popup-buttons {
    flex-direction: column;
  }
}