@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/** style ogólne */
*{
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body{
  background-color: #EEF2F5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/*!logo */
.logo{
  margin: 37px 40px;
  width: 146px;
}

/*! Toppanel  */
#topPanel{
  margin: 100px auto 0;
  width: 90%;
  max-width: 1260px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#left{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

#hello{
  font-size: 38px;
}

#logOut{
  display: flex;
  align-items: center;
  padding: 15px;
  background-color: #fff;
  border: none;
  border-radius:53px;
  gap: 8px;
  font-weight: 600;
  font-size: 12px;
}
#logOut:hover {
  background-color: #f2f2f2;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
#logOut:active{
  background-color: #dfdfdf;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}
.logOutImg{
  width: 23px;
}

/** menu wyboru */
.dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 25px;
  border-radius: 999px;
  border: none;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  font-size: 12px;
  font-weight: 550;
}

.dropdown-toggle .label { white-space: nowrap; }
.dropdown-toggle .arrow { margin-left: auto; }

.icon {
  width: 20px;
  height: 20px;
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 320px;
  background: #3e3e3e;
  color: #ffffff;
  border-radius: 12px;
  padding: 6px 0;
  margin-top: 10px;
  list-style: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  display: none;
  z-index: 10;
  opacity: 0.9;
}
.dropdown.open .dropdown-menu { display: block; }

.dropdown-menu li {
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  position: relative;
  padding-left: 40px;
}
.dropdown-menu li.active::before {
  content: "✓";
  display: inline-block;
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}
.dropdown-menu li:hover { background: rgba(255, 255, 255, 0.08); }

/*? Lista uczniów nauczycieli i klas  */
#menu{
  width: 90%;
  max-width: 1260px;
  margin: 50px auto 0;
  display: flex;
  gap: 25px;
}
.option{
  background-color: transparent;
  border: none;
  font-size: 16px;
  border-radius: 53px;
  padding: 10px 15px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.option:hover{
  background-color: #f2f2f2;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.option.active{
  background-color: #ffffff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

/** content */
#main-student, #main-teacher{
  width: 90%;
  max-width: 1260px;
  margin: 30px auto 0;
  flex: 1;
  background-color: #fff;
  border-radius: 40px 40px 0 0;
  position: relative;
}
#main-group{
  width: 90%;
  max-width: 1260px;
  margin: 30px auto 0;
  flex: 1;
  display: flex;
  gap: 20px;
}
#leftGroup{
  flex: 3;
  background-color: #fff;
  border-radius: 40px 40px 0 0;
  position: relative;
}
#rightGroup{
  flex: 1;
  background-color: #fff;
  border-radius: 40px 40px 0 0;
  padding: 30px 60px 40px;
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
}
#rightGroup p{ margin: 20px 0; }
#rightGroup img{ width: 110%; }

/*! tabela  */
.table-wrapper {
  display: block;
  position: static;
}
.students-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.students-table thead th {
  text-align: left;
  font-weight: 600;
  padding: 50px 70px 30px 70px;
  color: #808191;
}
.students-table th.sortable {
  cursor: pointer;
  white-space: nowrap;
}
.sort-arrow {
  font-size: 10px;
  margin-left: 4px;
  opacity: 0.6;
}
.students-table tbody td {
  padding: 30px 70px 30px 70px;
  color: #111827;
}
.students-table thead th:last-child { text-align: right; }
.students-table tbody td:last-child { text-align: right; }

.actions-cell { text-align: left; }

.students-table tbody tr.edit-row td {
  background-color: #EEF2F5;
  border: none;
  padding-top: 30px;
  padding-bottom: 30px;
  position: relative;
  z-index: 10;
}

.delete-btn {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.delete-btn:hover { text-decoration: underline; }

.inline-input, .cell-edit.is-editing {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  background-color: transparent;
  border: 2px solid #2563EB;
  font-size: 13px;
  outline: none;
}
.inline-input:focus {
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

.addNew{
  position: absolute;
  top:-83px;
  right: 0;
  background-color: #ffffff;
  padding: 20px 25px;
  border-radius: 53px;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap:10px;
}

.addNew:hover{
  background-color: #f2f2f2;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.addNew:active{
  background-color: #dfdfdf;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}
.addNew img{ width:15px; }

.save-panel {
  position: absolute;
  left: -87px;
  top: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-20px);
  display: flex;
  align-items: center;
  z-index: 1;
  padding: 0 20px;
  background-color: #EEF2F5;
  border-radius: 30px 0 0 30px;
  outline: 4px solid #ffffff;
  box-sizing: border-box;
}

.save-panel.visible {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.save-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.save-icon {
  width: 8px;
  height: 20px;
  border-radius: 4px;
  background-color: #2563EB;
}

.group-ranking {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ranking-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  /* background: rgba(0,0,0,0.04); */
}

.ranking-right {
  /* font-weight: 700; */
  margin-left: 15px;
}
