* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 24px;
}

header h1 a {
    color: #333;
    text-decoration: none;
}

nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

.inline {
    display: inline;
}

.btn-link {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    text-decoration: underline;
    font-size: 14px;
}

h2 {
    margin-bottom: 12px;
    font-size: 1.2em;
}

section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.auth-form {
    max-width: 400px;
    margin: 60px auto;
    background: white;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    font-size: 14px;
}

input[type="text"],
input[type="password"],
input[type="url"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 12px;
}

button[type="submit"],
.btn-copy {
    background: #2563eb;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

button[type="submit"]:hover,
.btn-copy:hover {
    background: #1d4ed8;
}

.auth-link {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
}

.auth-link a {
    color: #2563eb;
}

.error {
    color: #dc2626;
    background: #fef2f2;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
    font-size: 14px;
}

.success {
    color: #16a34a;
    background: #f0fdf4;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
    font-size: 14px;
}

.feed-url-box {
    display: flex;
    gap: 8px;
}

.feed-url-box input {
    flex: 1;
    margin-bottom: 0;
    font-family: monospace;
    font-size: 13px;
    background: #f9fafb;
}

.hint {
    color: #666;
    font-size: 13px;
    margin-top: 8px;
}

.add-feed-form {
    display: flex;
    gap: 8px;
}

.add-feed-form input {
    flex: 1;
    margin-bottom: 0;
}

.feeds-table {
    width: 100%;
    border-collapse: collapse;
}

.feeds-table th {
    text-align: left;
    padding: 8px;
    border-bottom: 2px solid #e5e7eb;
    font-size: 13px;
    color: #666;
}

.feeds-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
}

.feeds-table tr.disabled td {
    opacity: 0.5;
}

.url {
    color: #888;
    word-break: break-all;
}

.status-ok {
    color: #16a34a;
    font-weight: 500;
    font-size: 13px;
}

.status-error {
    color: #dc2626;
    font-weight: 500;
    font-size: 13px;
    cursor: help;
}

.status-pending {
    color: #ca8a04;
    font-weight: 500;
    font-size: 13px;
}

.status-disabled {
    color: #888;
    font-size: 13px;
    margin-left: 4px;
}

.actions {
    white-space: nowrap;
}

.btn-small {
    background: #e5e7eb;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    margin-right: 4px;
}

.btn-small:hover {
    background: #d1d5db;
}

.btn-danger {
    color: #dc2626;
}

.btn-danger:hover {
    background: #fecaca;
}
