
.dbTemplate_page {
    display: flex;
    justify-content: center;
    align-items: flex-start; 
    min-height: 100vh;
    padding: 20px;
}
.container {
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 900px; 
}
h1 {
    margin-bottom: 25px;
    text-align: center;
    font-size: 2.25rem; 
    font-weight: 700; 
}
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}
th, td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}
th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    top: 0;
    z-index: 10;
    cursor: pointer; 
    background: #6c6f71;
}
th.sorted-asc::after {
    content: ' ▲';
    font-size: 0.8em;
    vertical-align: super;
}
th.sorted-desc::after {
    content: ' ▼';
    font-size: 0.8em;
    vertical-align: super;
}
tr:last-child td {
    border-bottom: none;
}
a {
    color: #3182ce;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
    font-weight: 500;
}
a:hover {
    color: #2b6cb0;
}
.icon {
    margin-right: 8px;
    vertical-align: middle;
}
.message-box {
    padding: 15px;
    border-radius: 8px;
    border: 1px solid;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
}
.message-box.error {
    background-color: #fde8e8;
    color: #c53030;
    border-color: #f7c5c5;
}
.message-box.warning {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeeba;
}
.message-box.success {
    color: #38a169;
    border: none;
}
.message-box.hidden {
    display: none;
}
.button-link {
    display: inline-block;
    background-color: #4299e1; 
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease-in-out;
    margin-bottom: 20px;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.button-link:hover {
    background-color: #3182ce; 
    color: white;
}
.navigation-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}
.settings-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #718096; 
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s ease-in-out;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}
.settings-button:hover {
    background-color: #4a5568; 
}
.settings-button.active {
    background-color: #3182ce;
}
.controls {
    display: none;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.controls.show {
    display: flex;
}
.controls input[type="text"],
.controls select {
    padding: 10px 15px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 1rem;
    color: #4a5568;
    outline: none;
    transition: border-color 0.2s ease-in-out;
}
.controls input[type="text"]:focus,
.controls select:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 2px rgba(49, 130, 206, 0.2);
}
.control-group label {
    margin-right: 8px;
    font-weight: 500;
    color: #4a5568;
}
.group-header {
    background-color: #e2e8f0;
    color: #2d3748;
    padding: 10px 20px;
    margin-top: 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.125rem;
    text-align: left;
    border-bottom: 2px solid #a0aec0;
}
button.directory-link,
button.download-link {
    background: transparent;
    border: none;
    padding: 0;
    font: inherit;
    color: #3182ce;

    cursor: pointer;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}
button.download-link {
    color: #38a169;
}
button.download-link:hover {
    color: #2f855a;
}
.loading-indicator {
    text-align: center;
    padding: 50px;
    font-size: 1.2rem;
    color: #4a5568;
}

body.dark-mode .controls {
    background-color: #1e232b;
    border-color: #363c45;
}