body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin: 0; background-color: #f8f9fa; color: #212529; }
.container { width: 95%; max-width: 1600px; margin: 2em auto; padding: 2em; background-color: #fff; box-shadow: 0 0 15px rgba(0,0,0,0.05); border-radius: 8px; }
.header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #dee2e6; padding-bottom: 1em; margin-bottom: 1em; gap: 1em; flex-wrap: wrap;}
h1 { margin: 0; color: #343a40; flex-shrink: 0; }
.controls { display: flex; align-items: center; gap: 1em; flex-wrap: wrap; }
.main-controls { display: flex; align-items: center; gap: 0.75em; }
.main-controls button { padding: 5px 12px; font-size: 0.9em; border-radius: 4px; cursor: pointer; border: 1px solid; }
#search-form { display: flex; gap: 0.5em; }
#search-box { padding: 5px 8px; font-size: 0.9em; border: 1px solid #ccc; border-radius: 4px; width: 200px; }
#search-button { padding: 5px 12px; font-size: 0.9em; border: 1px solid #007bff; background-color: #007bff; color: white; border-radius: 4px; cursor: pointer; }
.footer-auth { text-align: center; margin-top: 2em; padding-top: 1em; border-top: 1px solid #dee2e6; font-size: 0.9em; color: #6c757d; }
.login-prompt { text-align: center; padding: 4em 0; }
.login-button { display: inline-block; padding: 10px 20px; background-color: #007bff; color: white; text-decoration: none; border-radius: 5px; font-weight: bold; }
#refresh-toggle { padding: 5px 10px; font-size: 0.8em; cursor: pointer; border: 1px solid #ccc; background-color: #f0f0f0; border-radius: 4px; white-space: nowrap; }
#refresh-toggle.on { background-color: #d4edda; color: #155724; border-color: #c3e6cb; }
#refresh-toggle.off { background-color: #f8d7da; color: #721c24; border-color: #f5c6cb; }
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9em; }
th, td { padding: 8px 10px; border: 1px solid #dee2e6; text-align: left; vertical-align: top; white-space: nowrap; }
th { background-color: #f8f9fa; }
th:nth-child(2), td:nth-child(2), th:nth-child(3), td:nth-child(3), th:nth-child(5), td:nth-child(5), th:nth-child(6), td:nth-child(6), th:nth-child(7), td:nth-child(7), th:nth-child(8), td:nth-child(8), th:nth-child(9), td:nth-child(9) { text-align: center; }
.status-success { color: #28a745; font-weight: bold; }
.status-failure { color: #dc3545; font-weight: bold; }
.copy-ua { cursor: pointer; color: #007bff; text-decoration: underline; text-decoration-style: dotted; }
.details-toggle { cursor: pointer; color: #007bff; }
.details-row td { background-color: #f8f9fa; padding: 0; }
.details-row pre { margin: 0; border: 2px solid #007bff; border-top: none; border-radius: 0 0 4px 4px; }
pre { background-color: #e9ecef; padding: 1em; border-radius: 4px; white-space: pre-wrap; word-break: break-all; font-size: 1em; margin: 0; }
.flashes { list-style: none; padding: 0; margin: 0 0 1em; }
.flashes li { padding: 15px; margin-bottom: 10px; border: 1px solid transparent; border-radius: 4px; }
.flashes .success { color: #155724; background-color: #d4edda; border-color: #c3e6cb; }
.flashes .warning { color: #856404; background-color: #fff3cd; border-color: #ffeeba; }
.flashes .error { color: #721c24; background-color: #f8d7da; border-color: #f5c6cb; }
.flashes .info { color: #0c5460; background-color: #d1ecf1; border-color: #bee5eb; }
.pagination { display: flex; justify-content: center; align-items: center; margin-top: 2em; gap: 5px; }
.pagination a, .pagination span { display: inline-block; padding: 8px 12px; border: 1px solid #dee2e6; background-color: #fff; color: #007bff; text-decoration: none; border-radius: 4px; }
.pagination a:hover { background-color: #e9ecef; }
.pagination .current { background-color: #007bff; color: white; border-color: #007bff; }
.pagination .disabled { color: #6c757d; background-color: #e9ecef; cursor: not-allowed; }
.pagination .ellipsis { border: none; background: none; padding: 8px 4px; }
.pagination-summary { text-align: center; margin-top: 1em; font-size: 0.9em; color: #6c757d; }
.db-size-control { display: flex; align-items: center; gap: 10px; }
#update-db-size-btn { padding: 6px 10px; font-size: 0.9em; cursor: pointer; }
#db-size-display {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.9em; background-color: #f0f0f0; padding: 6px 10px;
    border-radius: 4px; border: 1px solid #ddd;
}
#db-size-result strong { color: #0056b3; }
.update-time { font-size: 0.85em; color: #555; }
th:last-child,
td:last-child {
    width: 100%;
}