/* KD Framework - small additions on top of w3.css.
   Class names prefixed kd- are framework-neutral; keep them if the CSS framework changes. */

body {
    background: #f5f5f5;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.kd-main {
    max-width: 1000px;
    margin: 1.5rem auto;
    min-height: 60vh;
}

.kd-form {
    max-width: 440px;
}

.kd-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* One-button forms (e.g. Log out) sit inline with links */
.kd-inline {
    display: inline;
    margin: 0;
}

.kd-topbar .kd-user {
    opacity: 0.85;
}

.kd-footer {
    margin-top: 2rem;
}

/* Wide tables (user agents etc.) wrap instead of stretching the page */
.kd-main td {
    word-break: break-word;
}

/* Dropdown menus: also open on keyboard focus / tap, and sit above page content */
.kd-dropdown:focus-within .w3-dropdown-content {
    display: block;
}
.kd-dropdown .w3-dropdown-content {
    z-index: 20;
    min-width: 180px;
}

/* Forms that hold tables use the full width */
.kd-wide {
    max-width: none;
}

/* Backup page: checkbox columns */
.kd-check-col {
    width: 1%;
    white-space: nowrap;
    text-align: center;
}

/* Dashboard tiles */
.kd-stat-value {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.2;
}
.kd-stat-label {
    color: #555;
}
.kd-stat-link,
.kd-stat-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Admin pages are wider (tables) */
.kd-admin .kd-main {
    max-width: 1200px;
}

/* Filter bars: fields side by side */
.kd-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1rem;
    align-items: flex-end;
    max-width: none;
}
.kd-filters > div {
    min-width: 160px;
}

/* Honeypot field on register.php - hidden from people, visible to bots */
.kd-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
