/* Websilencer Backupverwaltung - Stil angelehnt an das Lizenzserver-Dashboard */
body { font-family: "Segoe UI", Arial, sans-serif; background: #f4f6f8; margin: 0; padding: 0; color: #1a1a1a; }
a { color: #004265; }

.navbar { background: #004265; display: flex; align-items: center; justify-content: space-between;
          padding: 0 24px; height: 56px; box-shadow: 0 1px 4px rgba(0,0,0,0.15); gap: 16px; }
.navbar .brand { display: flex; align-items: center; gap: 12px; }
.navbar .brand img { height: 32px; }
.navbar .brand span { color: #fff; font-size: 16px; font-weight: 600; white-space: nowrap; }
.navbar nav { display: flex; gap: 4px; flex: 1; margin-left: 24px; }
.navbar nav a { color: #cfe0ea; text-decoration: none; font-size: 14px; padding: 8px 14px; border-radius: 6px; }
.navbar nav a.active { background: rgba(255,255,255,0.15); color: #fff; font-weight: 600; }
.navbar nav a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.navbar .logout { color: #cfe0ea; font-size: 13px; text-decoration: none; }
.navbar .logout:hover { color: #fff; }

.page { padding: 24px; max-width: 1400px; margin: 0 auto; }
h1 { color: #004265; font-size: 20px; margin: 0 0 4px; }
h2 { color: #004265; font-size: 16px; margin: 0; }
.muted { color: #777; font-size: 12px; }
.section { margin-bottom: 28px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
.top { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }

.summary { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.badge { padding: 6px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; background: #eef1f4; color: #555; white-space: nowrap; }
.badge.ok { background: #e3f3e6; color: #146c2e; }
.badge.warn { background: #fff3dc; color: #8a5a00; }
.badge.err { background: #fde8e6; color: #b3261e; }
.badge.info { background: #e4eef5; color: #004265; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 12px; font-size: 12px; font-weight: 600; background: #eef1f4; color: #555; white-space: nowrap; }
.pill.ok { background: #e3f3e6; color: #146c2e; }
.pill.warn { background: #fff3dc; color: #8a5a00; }
.pill.err { background: #fde8e6; color: #b3261e; }
.pill.info { background: #e4eef5; color: #004265; }

.tablewrap { overflow-x: auto; background: #fff; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { padding: 9px 12px; border-bottom: 1px solid #eef1f4; text-align: left; vertical-align: middle; }
th { background: #f8fafb; color: #444; white-space: nowrap; }
tr:hover td { background: #f8fafb; }
td.nowrap, th.nowrap { white-space: nowrap; }
td.domain { font-weight: 600; white-space: nowrap; }
td.domain a { text-decoration: none; }
td .sub { display: block; font-size: 11px; color: #888; font-weight: 400; margin-top: 2px; }
td.actions { white-space: nowrap; text-align: right; }
td.actions form { display: inline; }
tr.inactive td { color: #999; }
.empty { padding: 24px; text-align: center; color: #777; }

.btn, button.btn { display: inline-block; padding: 8px 14px; border-radius: 6px; border: none; background: #004265;
       color: #fff; font-size: 13px; cursor: pointer; text-decoration: none; font-family: inherit; }
.btn:hover { background: #00304a; }
.btn.small { padding: 5px 10px; font-size: 12px; }
.btn.light { background: #fff; color: #004265; border: 1px solid #ccd6dd; }
.btn.light:hover { background: #f4f6f8; }
.btn.danger { background: #fff; color: #b3261e; border: 1px solid #b3261e; }
.btn.danger:hover { background: #fde8e6; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

input[type=text], input[type=password], input[type=number], input[type=time], input[type=search], select, textarea {
  padding: 8px 10px; border: 1px solid #ccd6dd; border-radius: 6px; font-size: 14px; font-family: inherit; box-sizing: border-box; }
input#search { width: 260px; }
textarea { width: 100%; }

.card { background: #fff; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); padding: 20px 24px; margin-bottom: 20px; }
.card h2 { margin-bottom: 14px; }
.form-grid { display: grid; grid-template-columns: 200px minmax(0, 420px); gap: 12px 16px; align-items: center; }
.form-grid label { font-size: 13px; color: #444; font-weight: 600; }
.form-grid input, .form-grid select { width: 100%; }
.form-grid .help { grid-column: 2; font-size: 12px; color: #777; margin-top: -6px; }
.weekday-row { display: flex; gap: 10px; flex-wrap: wrap; }
.weekday-row label { font-weight: 400; display: flex; align-items: center; gap: 4px; }
.hidden { display: none !important; }

.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.flash.ok { background: #e3f3e6; color: #146c2e; }
.flash.err { background: #fde8e6; color: #b3261e; }
.notice { background: #fff3dc; color: #6b4600; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }

pre.log { background: #0f2230; color: #d6e6f0; padding: 12px 14px; border-radius: 8px; font-size: 12px; overflow-x: auto; white-space: pre-wrap; margin: 0; }
code { background: #eef1f4; padding: 1px 5px; border-radius: 4px; font-size: 12px; }
ol.steps { padding-left: 20px; line-height: 1.7; font-size: 14px; }

/* Login */
body.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-box { background: #fff; padding: 32px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.08); width: 300px; }
.login-box img { height: 40px; display: block; margin: 0 auto 12px; }
.login-box h1 { font-size: 18px; text-align: center; margin: 0 0 16px; }
.login-box input { width: 100%; margin-bottom: 12px; }
.login-box button { width: 100%; padding: 10px; }
.login-box label { font-size: 13px; color: #444; display: block; margin-bottom: 4px; }

@media (max-width: 760px) {
  .navbar { flex-wrap: wrap; height: auto; padding: 10px 16px; }
  .navbar nav { margin-left: 0; order: 3; width: 100%; overflow-x: auto; }
  .page { padding: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .help { grid-column: 1; }
  input#search { width: 100%; }
}
