/* Styl ogólny dla całego dokumentu */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
   
}

/* Kontener główny */
.container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;

   
}

/* Nagłówki */
h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

p {
    font-size: 16px;
    margin: 10px 0;
}

/* Formularze */
form {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 5px;
    font-weight: bold;
}

input,select {
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: -webkit-fill-available;
}

/* Przyciski */
button {
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    background-color: #008396;
    color: white;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #036270;
}

button#resign, button#cancelAnswer, .cancel {
    background-color: #91006c;
}

button#resign:hover {
    background-color: #79055c;
}

/* Wiadomości zwrotne */
#responseMessage {
    margin-top: 15px;
    font-size: 14px;
    color: #91006c;
}

/* Styl banera nagłówkowego */
header {
    background-color: #2b2b2b;
    color: #adadad;
    padding: 10px 20px;
    height: 100px;
    /* text-align: center; */
    border-bottom: 5px solid #008396;
    display: flex;
    align-items: center;
    justify-content: space-between;
    align-content: center;
    flex-wrap: nowrap;
    flex-direction: row;
}

header h1 {
    margin: 0;
}

 #timer {
    font-size: 26px;
    margin-top: 5px;
}

/* Główna sekcja */
main {
  
  
    display: flex;
    justify-content: center;
}

/* Kontener pytań */
.questions-container {
    flex: 3;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 50px;
}

.questions-container button {
  
    padding: 10px;
    /* text-align: left; */
    background-color:#008396;
    /* border: 1px solid #dddddd; */
    margin: 5px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.questions-container button:hover {
    background-color: #5f5e5e;
}

.questions-container button.completed {
    background-color: #28a745;
    color: white;
}
.questions-container .question-status {
    color: #910013;
    font-weight: 600;
}


/* Panel boczny */
.sidebar {
   width: 200px;
    padding: 10px;
    background-color: #f9f9f9;
    border-left: 1px solid #ddd;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-content: center;
    flex-wrap: nowrap;
    align-items: center;
 
}

.sidebar h3 {
    margin-top: 0;
    font-size: 18px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin: 5px 0;
    font-size: 14px;
    color: #333;
}

.sidebar li.completed {
    color: green;
}

/* Dodatkowe style dla sekcji z pytaniem */
.exam-container {
    text-align: left;
}

.exam-container h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.exam-container p {
    font-size: 16px;
    margin: 10px 0;
}

.actions {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}
 ul{
    display: flex;
    justify-content: space-around;
 }
 nav{
    background-color: #2b2b2b;
    padding: 15px;
 }
 a{
    text-decoration: none;
    color: #00BCD4;
    display: flex;
    align-items: center;

 }
 table {
    width: 100%; /* Tabela zajmuje całą szerokość kontenera */
    border-collapse: collapse; /* Usuwa podwójne linie między komórkami */
    table-layout: fixed; /* Stałe rozmiary kolumn */
}

th, td {
    border: 1px solid #ddd; /* Dodaje obramowanie */
    text-align: left; /* Wyrównanie do lewej */
    padding: 8px; /* Margines wewnętrzny */
    overflow: hidden; /* Ukrywa nadmiar tekstu */
    text-overflow: ellipsis; /* Dodaje "..." dla zbyt długiego tekstu */
    white-space: nowrap; /* Zapobiega zawijaniu tekstu */
}

th {
    background-color: #f2f2f2; /* Kolor tła nagłówków */
    font-weight: bold; /* Pogrubienie nagłówków */
}

tbody tr:nth-child(even) {
    background-color: #f9f9f9; /* Kolor tła co drugiego wiersza */
}

tbody tr:hover {
    background-color: #f1f1f1; /* Podświetlenie wiersza przy najechaniu */
}
.container.expanded {
    max-height: 1000px; /* Maksymalna wysokość rozwiniętego kontenera */
}


#listStud {


    overflow: hidden;
    transition: max-height 0.5s ease;
    border: 1px solid #ccc;
    position: relative;
}




#toggle-bar {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: #f0f0f0;
    text-align: center;
    border-top: 1px solid #ccc;
}

#toggle-button {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}
#accordion-container {
    margin: 20px;
    border: 1px solid #ccc;
}

.accordion-item {
    border-bottom: 1px solid #ccc;
}

.accordion-header {
    cursor: pointer;
    background-color: #f9f9f9;
    padding: 10px;
    font-weight: bold;
}

.accordion-content {
    display: none;
    padding: 10px;
    background-color: #fff;
}

.accordion-content ul {
    list-style-type: none;
    padding: 0;
}

.accordion-content li {
    margin-bottom: 5px;
}

#edytor {
    margin: 20px;
    padding: 20px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
}
