* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; background: #f4f5f7; color: #1c1c1c; }

.login-page { display: flex; align-items: center; justify-content: center; height: 100vh; }
.login-box { background: #fff; padding: 2.5rem; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); width: 320px; }
.login-box h1 { font-size: 1.4rem; margin-bottom: 1.5rem; text-align: center; }
.login-box label { display: block; font-size: 0.85rem; margin-top: 1rem; margin-bottom: 0.3rem; color: #555; }
.login-box input { width: 100%; padding: 0.6rem; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem; }
.login-box button { width: 100%; margin-top: 1.5rem; padding: 0.7rem; background: #212121; color: #fff; border: none; border-radius: 4px; font-size: 1rem; cursor: pointer; }
.login-box button:hover { background: #333; }
.error { background: #fdecea; color: #a61b1b; padding: 0.6rem; border-radius: 4px; font-size: 0.85rem; margin-bottom: 0.5rem; }

.topbar { display: flex; justify-content: space-between; align-items: center; background: #212121; color: #fff; padding: 1rem 2rem; }
.topbar h1 { font-size: 1.2rem; }
.topbar a { color: #b8a369; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.content { padding: 2rem; }

.success { background: #e6f4ea; color: #1e7e34; padding: 0.8rem 1rem; border-radius: 4px; margin-bottom: 1rem; }
.error { background: #fdecea; color: #a61b1b; padding: 0.8rem 1rem; border-radius: 4px; margin-bottom: 1rem; }
.config-preview { background: #1e1e1e; color: #ddd; padding: 1rem; border-radius: 4px; overflow-x: auto; font-size: 0.85rem; margin-bottom: 1.5rem; }
.site-form { max-width: 500px; }
.site-form label { display: block; margin-top: 1rem; margin-bottom: 0.3rem; font-size: 0.9rem; color: #555; }
.site-form input, .site-form select { width: 100%; padding: 0.6rem; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem; }
.site-form button { margin-top: 1.5rem; padding: 0.7rem 1.5rem; background: #212121; color: #fff; border: none; border-radius: 4px; font-size: 1rem; cursor: pointer; }
.site-form button:hover { background: #333; }
.hint { color: #777; font-size: 0.85rem; margin-top: 1rem; }

.sites-table { width: 100%; border-collapse: collapse; margin-top: 1rem; background: #fff; border-radius: 6px; overflow: hidden; }
.sites-table th, .sites-table td { text-align: left; padding: 0.7rem 1rem; border-bottom: 1px solid #eee; font-size: 0.9rem; }
.sites-table th { background: #fafafa; color: #555; font-weight: 600; }
.sites-table a { color: #212121; }
.badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 12px; font-size: 0.75rem; font-weight: 600; }
.badge-green { background: #e6f4ea; color: #1e7e34; }
.badge-gray { background: #eee; color: #666; }
.btn-small { padding: 0.4rem 0.9rem; background: #212121; color: #fff; border: none; border-radius: 4px; font-size: 0.85rem; cursor: pointer; }
.btn-small:hover { background: #333; }
.expiry-warning { color: #b8860b; font-weight: 600; }
.expiry-danger { color: #a61b1b; font-weight: 600; }
.breadcrumb { margin: 1rem 0; font-size: 0.9rem; color: #555; }
.breadcrumb a { color: #212121; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.upload-form { background: #fff; padding: 1rem; border-radius: 6px; margin: 1rem 0; }
.upload-label { display: inline-block; margin-right: 1.5rem; font-size: 0.85rem; color: #555; }
.checkbox-label { font-size: 0.85rem; color: #555; display: flex; align-items: center; gap: 0.4rem; margin: 0.7rem 0; }
.file-editor { width: 100%; min-height: 400px; max-height: 75vh; font-family: "Courier New", monospace; font-size: 0.9rem; padding: 1rem; border: 1px solid #ccc; border-radius: 4px; resize: vertical; margin-bottom: 1rem; tab-size: 4; box-sizing: border-box; }
