body { font-family: system-ui, sans-serif; display: flex; flex-direction: column; justify-content: space-between; align-items: center; min-height: 100vh; margin: 0; background-color: #f4f7f9; padding: 20px; box-sizing: border-box; }
.container { background-color: white; padding: 2rem; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); width: 100%; max-width: 600px; text-align: center; margin: auto; }
h1, h2, h3 { color: #333; margin-top: 0; }
p, ol { line-height: 1.6; text-align: left; }
ol { padding-left: 20px; }
code { background-color: #eee; padding: 2px 5px; border-radius: 4px; font-family: monospace; }
.hidden { display: none !important; }
.button { width: 100%; padding: 12px 20px; font-size: 16px; color: white; background-color: #4285F4; border: none; border-radius: 4px; cursor: pointer; transition: background-color 0.2s; margin-top: 1rem; }
.button:hover:not(:disabled) { background-color: #357ae8; }
.button.secondary { background-color: #6c757d; }
.button.secondary:hover:not(:disabled) { background-color: #5a6268; }
.button.logout { background-color: #dc3545; width: auto; padding: 8px 15px; margin-top: 0; }
.button:disabled { background-color: #aaa; cursor: not-allowed; }
.status-message { font-weight: bold; padding: 10px; border-radius: 4px; margin-top: 1rem; text-align: left; display: none; }
.status-ok { background-color: #e6f4ea; color: #3c763d; }
.status-error { background-color: #f2dede; color: #a94442; }
label { display: block; margin-bottom: 5px; font-weight: bold; text-align: left; color: #555; }
input[type="text"], input[type="password"], textarea, select { width: 100%; padding: 10px; margin-bottom: 1rem; border-radius: 4px; border: 1px solid #ddd; font-size: 16px; box-sizing: border-box; }
.form-group { text-align: left; margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; }
.form-group small { color: #666; }
#audio-playback { margin-top: 1.5rem; text-align: left;}
.char-counter-wrapper { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
#char-counter { font-size: 0.9em; color: #666; }
.tab-nav { display: flex; border-bottom: 2px solid #dee2e6; margin-bottom: 1.5rem; }
.tab-link { padding: 10px 20px; cursor: pointer; border: none; background: none; font-size: 16px; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tab-link:hover { background-color: #f8f9fa; }
.tab-link.active { border-color: #4285F4; color: #4285F4; font-weight: bold; }
.tab-content { text-align: left; }
#log-search-input { width: 100%; padding: 8px 12px; font-size: 14px; border: 1px solid #ccc; border-radius: 20px; margin-bottom: 1rem; }
#log-table-container { max-height: 60vh; overflow-y: auto; }
#log-table-container table { width: 100%; border-collapse: collapse; font-size: 0.9em; }
#log-table-container th, #log-table-container td { border: 1px solid #ddd; padding: 10px; text-align: left; }
#log-table-container th { background-color: #f8f9fa; position: sticky; top: 0; }
#log-table-container a { color: #007bff; text-decoration: none; font-weight: 500; }
#log-table-container a:hover { text-decoration: underline; }
.modal-backdrop { display: none; position: fixed; z-index: 100; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); }
.modal { display: none; position: fixed; z-index: 101; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 80%; max-width: 500px; background-color: #fff; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.25); display: flex; flex-direction: column; }
.modal-header { padding: 15px 20px; border-bottom: 1px solid #e9ecef; display: flex; justify-content: space-between; align-items: center; }
.modal-close { color: #aaa; font-size: 28px; font-weight: bold; cursor: pointer; }
.modal-body { padding: 20px; overflow-y: auto; }

/* Header and Footer Styles */
header {
    background-color: #333; /* Matches footer background */
    color: white;
    padding: 1rem 20px;
    width: 100%;
    text-align: center; /* Centers content within the header */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
header h1 {
    color: white;
    margin: 0;
    font-size: 2em;
    display: inline;
}
header small {
    font-size: 0.5em;
    vertical-align: super;
    margin-left: 5px;
}
footer {
    background-color: #333;
    color: white;
    padding: 1rem 20px;
    width: 100%;
    /* text-align: center; Removed from footer, apply to p inside */
    margin-top: 20px;
}
footer p {
    margin: 0;
    font-size: 0.9em;
    width: 100%; /* Ensure the paragraph takes full width */
    text-align: center; /* Center text within the paragraph */
}