/* Admin UI — reuses the Praamid.ee Ferry Monitor PWA theme tokens. */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 20px;
    background-color: #f5f7fa;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.container.narrow {
    max-width: 380px;
    margin-top: 8vh;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 24px;
}

h2 {
    color: #3498db;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-top: 30px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

input, select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

.form-group { margin-bottom: 15px; }

button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    margin-top: 6px;
}
button:hover { filter: brightness(0.93); }
button:disabled { background-color: #95a5a6; cursor: not-allowed; }

.btn-green  { background-color: #2ecc71; }
.btn-grey   { background-color: #95a5a6; }
.btn-red    { background-color: #e74c3c; }
.btn-small  { padding: 6px 10px; font-size: 13px; }

/* top bar */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: #f9fbfd;
    border: 1px solid #e3e9ef;
    border-radius: 8px;
    padding: 10px 14px;
}
.topbar #whoami { font-weight: 600; color: #2c3e50; }

#flash {
    margin: 14px 0 0;
    padding: 10px 14px;
    border-radius: 6px;
    display: none;
}
#flash.show { display: block; }
#flash.ok   { background: #eafaf0; border: 1px solid #2ecc71; color: #1e8449; }
#flash.err  { background: #fdecea; border: 1px solid #e74c3c; color: #c0392b; }

/* jobs table */
table { width: 100%; border-collapse: collapse; margin-top: 12px; }
table, th, td { border: 1px solid #e3e9ef; }
th, td { padding: 10px; text-align: left; vertical-align: middle; font-size: 14px; }
th { background-color: #f2f6fa; font-weight: 600; }
tr:nth-child(even) td { background-color: #fafcfe; }

.badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 3px 8px;
    border-radius: 999px;
    color: #fff;
}
.badge.on  { background-color: #2ecc71; }
.badge.off { background-color: #95a5a6; }

.dir-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
    color: #fff;
}
.dir-pill.VK { background-color: #3498db; }  /* to the island */
.dir-pill.KV { background-color: #2ecc71; }  /* leaving */

.status-cell { font-family: 'Segoe UI', monospace; font-size: 12px; color: #555; }
.muted { color: #7f8c8d; }
.actions { white-space: nowrap; }
.actions button { margin-right: 4px; }

.time-inputs { display: flex; align-items: center; gap: 10px; }
.time-inputs span { font-weight: 500; }
.help-text { font-size: 0.85em; color: #7f8c8d; margin-top: 5px; font-style: italic; }

#login-error { color: #c0392b; margin-top: 10px; min-height: 1.2em; }

@media (max-width: 768px) {
    .container { padding: 12px; }
    th, td { padding: 7px; font-size: 13px; }
}
