@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;          /* było zakomentowane – włączamy */
    flex-direction: column; /* elementy jeden pod drugim */
    min-height: 100vh;      /* minimum: wysokość okna przeglądarki */
}
body.locked {
  visibility: hidden;  /* albo display:none; jeśli wolisz */
}


/*!logo */
.logo{
    margin: 40px 50px;
    width: 146px;
}

/*! Toppanel  */
#topPanel{
    margin: 100px auto 0;
    width: 90%;
    max-width: 1260px;
    display: flex;
    justify-content: left;
    align-items: center;
    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;
}

/*? Wybór 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-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;
}


/* nagłówki */
.students-table thead th {
  text-align: left;
  font-weight: 600;
  padding: 50px 50px 30px 50px ;   
  color: #808191;
}

td p{
  padding: 5px;
}



/* strzałki sortowania przy nagłówkach */
.students-table th.sortable {
  cursor: pointer;
  white-space: nowrap;
}

.sort-arrow {
  font-size: 10px;
  margin-left: 4px;
  opacity: 0.6;
}
/* strzałki poruszania działów */
.arrowimg{
  /* width: 10px; */
  height: 20px;
}

/* komórki */
.students-table tbody td {
  padding: 30px 50px;  
  color: #111827;
  /* position: relative; */

}
.students-table thead th:first-child {
  padding-right: 10px;
}

/* ostatnia kolumna w wierszach - żeby DELETE był pod Actions */
.students-table tbody td:first-child {
  padding-right: 10px;
}

/* ostatni nagłówek - Actions */
.students-table thead th:last-child {
  text-align: right;
}

/* ostatnia kolumna w wierszach - żeby DELETE był pod Actions */
.students-table tbody td:last-child {
  text-align: right;
}
.students-table tbody td img{
    width: 30px;
    /* right: 0; */
    /* position: absolute; */
}


/* kolumna z akcjami */
.actions-cell {
  text-align: left; 
}
/*! wybranie konkretnego działu */
/* wiersz, który jest wybrany */
.students-table tbody tr.selected-row {
    background-color: #EEF2F5; /* wstępny niebieski – możesz zmienić */
}

/* żeby czuć, że to klikalne */
.students-table tbody tr {
    cursor: pointer;
    transition: background-color 0.2s ease;
}


/*! tr podczas edytowania */
/* === WYGLĄD WIERSZA W TRYBIE DODAWANIA (edit-row) === */

.students-table tbody tr.edit-row td {
  background-color: #EEF2F5;
  border: none;               
  padding-top: 30px;
  padding-bottom: 30px;
  position: relative;
  z-index: 10;
}
/* przycisk DELETE */
.delete-btn {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.delete-btn:hover {
  text-decoration: underline;
}

/*? przycisk dodajacy urzytkowników  */
.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;
}

/* panel SAVE – pozycja pionowa i wysokość ustawiana z JS */
/* panel SAVE – pełna kapsuła, wysokość = jak wiersz (JS ustawia height) */
.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;   /* top, bottom, left */
  box-sizing: border-box;
}

/* gdy mamy aktywny wiersz – panel się wysuwa */
.save-panel.visible {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}


/* przycisk SAVE – już BEZ borderu i własnej wysokości */
.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;
}


/* mały niebieski „znacznik” po lewej */
.save-icon {
  width: 8px;
  height: 20px;
  border-radius: 4px;
  background-color: #2563EB;
}
.inline-input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  background-color: transparent;
  border: 2px solid #2563EB;   /* niebieski border */
  font-size: 13px;
  /* background-color: #F9FAFB; */
  outline: none;
}

.inline-input:focus {
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}