html,
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #f7f7f7;
    color: #333;
    min-height: 100vh;
    height: -webkit-fill-available;
}

header {
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #ddd;
    padding: 10px 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

h1 {
    text-align: center;
    margin-bottom: 1rem;
}

.container {
    padding-left: 100px;
    padding-right: 100px;
    margin: auto;
    padding-bottom: 200px;
    display: flex;
    flex-direction: column;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

tr:hover {
    background-color: #e0f2ff;
}

th {
    background-color: #f0f0f0;
    cursor: pointer;
}

th.sort-asc::after {
    content: " ▲";
}

th.sort-desc::after {
    content: " ▼";
}

img {
    height: 80px;
}

#selected {
    background-color: #2e85db;
}

.auth {
    display: none;
}

button {
    padding: 10px 14px;
    font-size: 15px;
    border-radius: 6px;
    background-color: #1976d2;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #1565c0;
}

input[type="text"],
input[type="password"],
input[id="loginInput"],
textarea {
    padding: 10px;
    font-size: 16px;
    width: 240px;
    height: 42px;
    box-sizing: border-box;
    max-width: 100%;
}

#loginForm,
#logoutBar {
    text-align: center;
    margin-top: 1rem;
}

#progressBar {
    height: 8px;
    background: #eee;
    margin: 1rem 0;
    border-radius: 4px;
    overflow: hidden;
    display: none;
}

#progressFill {
    height: 100%;
    width: 0%;
    background: #4caf50;
}

.footer-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #ddd;
    padding: 10px 16px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.footer-fixed .footer-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-fixed .button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

dialog {
    border: none;
    border-radius: 8px;
    padding: 1rem;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.scroll-top {
    display: none;
    position: fixed;
    bottom: 75px;
    right: 20px;
    background-color: #1976d2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s;
}

.scroll-top.show {
    display: block;
}

.scroll-top:hover {
    background-color: #1565c0;
}