/* Same look as the OHOL Email Tools page */
body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    color: #000;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}
h1 {
    font-size: 32px;
    margin: 21px 0 4px;
}
.subtitle {
    color: #666;
    font-size: 14px;
    margin: 0 0 20px;
}
a {
    color: #007bff;
}
footer {
    color: #999;
    font-size: 12px;
    margin-top: 20px;
}

.section {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
}
.section-title {
    font-weight: bold;
    margin-bottom: 10px;
}
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.section-head .section-title {
    margin-bottom: 0;
}
.section p {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.5;
}
.section > :last-child {
    margin-bottom: 0;
}

input {
    padding: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    font-family: Arial, sans-serif;
}
input.code {
    font-family: monospace;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    width: 160px;
}
input.wide {
    flex: 1;
    min-width: 0;
}
button, a.button {
    display: inline-block;
    background: #007bff;
    color: #fff;
    border: none;
    padding: 8px 12px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    text-decoration: none;
    cursor: pointer;
}
button:hover, a.button:hover {
    background: #0069d9;
}
button.danger {
    background: #dc3545;
}
button.danger:hover {
    background: #c82333;
}
button.secondary {
    background: #6c757d;
}
button.secondary:hover {
    background: #5a6268;
}
button.small {
    padding: 5px 10px;
    font-size: 12px;
}
.row {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
}
.hint {
    color: #666;
    font-size: 12px;
}

/* Status boxes, like "Server is online" */
.status-display {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid;
}
.status-display .detail {
    font-size: 13px;
    margin-top: 3px;
}
.status-display.good { background: #d4edda; border-color: #c3e6cb; color: #155724; }
.status-display.warn { background: #fff3cd; border-color: #ffeeba; color: #856404; }
.status-display.bad { background: #f8d7da; border-color: #f5c6cb; color: #721c24; }
.status-display .code {
    font-family: monospace;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
}

/* Lists, like "Lookup History" */
.list {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 10px;
    font-family: monospace;
    font-size: 13px;
    max-height: 300px;
    overflow-y: auto;
}
.list .item {
    padding: 5px 0;
    font-size: 12px;
    border-bottom: 1px solid #eee;
}
.list .item:last-child {
    border-bottom: 0;
}
.list .item-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}
.list .time, .list .sub {
    color: #999;
}
.list .empty {
    color: #999;
    font-size: 12px;
}

ol {
    margin: 0 0 10px;
    padding-left: 20px;
    font-size: 14px;
    line-height: 1.6;
}

/* Admin table */
.list.table {
    max-height: none;
    overflow-x: auto;
    padding: 0;
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
th {
    text-align: left;
    background: #fff;
    font-family: Arial, sans-serif;
    font-weight: bold;
}
th, td {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: middle;
}
tr:last-child td {
    border-bottom: 0;
}
td form {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}
.tag { font-weight: bold; }
.tag.active { color: #155724; }
.tag.paused { color: #856404; }
.tag.stopped, .tag.revoked { color: #721c24; }
.tag.none { color: #999; }
.err {
    display: block;
    color: #721c24;
}
