/* File: modules/core/web/static/style.css */
/* Minimal plain CSS for the internal dashboard -- no JS framework. */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    margin: 0;
    background: #f5f5f5;
    color: #222;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1f2937;
    color: #fff;
    padding: 0.75rem 1.5rem;
}

.topbar nav a {
    color: #fff;
    text-decoration: none;
    margin-right: 1.25rem;
    font-weight: 500;
}

.topbar nav a:hover {
    text-decoration: underline;
}

.logout-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logout-form button {
    background: #374151;
    color: #fff;
    border: none;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
}

main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.5rem;
}

.login-box {
    max-width: 320px;
    margin: 4rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.login-box form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.login-box input, .login-box button {
    padding: 0.5rem;
    font-size: 1rem;
}

.login-box button {
    background: #1f2937;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 0.5rem;
}

.error {
    color: #b91c1c;
}

.success {
    color: #15803d;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    margin-top: 1rem;
}

th, td {
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

th {
    background: #f3f4f6;
}

.stats-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    min-width: 150px;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0.25rem 0;
}

.stat-label {
    color: #6b7280;
    margin: 0;
}

.filter-form {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

.meta-list {
    display: grid;
    grid-template-columns: 150px 1fr;
    row-gap: 0.4rem;
}

.meta-list dt {
    font-weight: 600;
    color: #4b5563;
}

.sermon-content pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    background: #fff;
    padding: 1rem;
    border-radius: 6px;
    line-height: 1.6;
}

.status-failed {
    background: #fef2f2;
}

.status-running {
    background: #fefce8;
}
