body {
    height: 100vh;
    display: flex;
    width: 100vw;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0px;
    margin: 0;
    flex-direction: column;
}
.login-div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-content: center;
    width: 100%;
}

.login-button {
    border-radius: 5px;
    border: 0px;
    padding: 5px 10px;
    color: white;
    background: #178768;
}

.header {
    background: #178768;
    padding: 20px;
    height: 50px;
    width: 100%;
    display: flex;
    justify-content: space-around;
}

.header button {
    border-radius: 5px;
    border: none;
    background: #0000003d;
    color: white;
    padding: 5px 15px 5px 15px;
    box-shadow: inset 0px -4px 0px #38151554;
    min-width: 105px;
}

.header button:hover {
    background:#00000094;
    box-shadow: inset 4px 4px 0px #38151554;
}

main {
    padding: 20px;
}

.hr-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.hr-table th, .hr-table td {
    padding: 12px 15px;
    text-align: left;
}

.hr-table th {
    background-color: #178768; /* Same as your header */
    color: white;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 1;
}

.hr-table th:hover {
    background-color: #126b55;
}

.hr-table td {
    border-bottom: 1px solid #e0e0e0;
}

.hr-table tr:nth-child(even) td {
    background-color: #f9f9f9;
}

.hr-table tr:hover td {
    background-color: #e0f7fa;
}

.edit-btn {
    background-color: #178768;
    border: none;
    padding: 6px 10px;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.edit-btn:hover {
    background-color: #126b55;
}

div#hr-table-container {
    overflow-x: auto;
    margin-top: 20px;
}

div#lessons-table-container {
    overflow-x: auto;
}

/* Оверлей, який покриває весь екран */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* напівпрозорий чорний фон */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9998; /* вище за все інше */
}

/* Сам попап */
.popup-main {
    background: white;
    border-radius: 10px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80%;
    overflow-y: auto;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    animation: fadeIn 0.3s ease-in-out;
    display:flex;
    flex-direction: column;
    gap:20px;
}

input, select, textarea {
    padding: 10px 15px;
    border-radius: 10px;
}

.close-button {
    font-size: 12px;
    border:none;
    border-radius: 50%;
    padding:5px 10px;
    background:#f07d75;
    color:#ffffffde;
}

.close-button:hover {
    transform: scale(1.1);
    opacity: 2;
    background: #c7655e;
}

.close-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.button-edit {
    padding: 5px 10px;
    color: #ffffffde;
    border: none;
    background: #009688;
    border-radius: 5px;
}

.button-edit:hover {
    transform: scale(1.1);
}

.form-group, #exercise-editor-fields {
    display: flex;
    flex-direction: column;
    gap:10px;
}

/* Анімація появи */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.notification-small {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: -100px;
    background: #178768;
    padding: 15px;
    height: 35px;
    color: white;
    font-size: 25px;
    justify-content: flex-start;
    transition: bottom 1s ease, opacity 1s ease;
    opacity: 0;
    z-index: 9999;
}

.notification-small.show {
    bottom: 0; 
    opacity: 1;
}

.notification-small.unshow {
    bottom: -100px; 
    opacity: 0;
}

.email-editor {
    max-width: 800px;
    margin: 20px auto;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.email-editor label {
    font-weight: bold;
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    color: #178768;
}

.dropdown,
.text-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 16px;
}

#email-text-editor {
    background: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0px;
    margin-bottom: 20px;
    min-height: 150px;
}

/* Quill editor inner styling */
.ql-toolbar {
    border-radius: 10px 10px 0 0;
    background: #f0f0f0;
}
.ql-container {
    border-radius: 0 0 10px 10px;
}

/* Buttons */
.button-blue {
    background: #178768;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.button-blue:hover {
    background: #126953;
}

.button-small {
    margin-top: 20px;
    width: 100%;
}

/* Responsive for mobile */
@media (max-width: 600px) {
    .email-editor {
        padding: 15px;
    }
}

.vocab-set-card {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    background: #2196f3;
    display: flex;
    flex-direction: column;
    gap:10px
}

.vocab-set-card h3,
.vocab-set-card p  {
    color: #ffffffde;
}

.vocab-set-card button {
    width:100%;
}

.level-wrapper {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
}
