/* Base styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
}

/* Title styles */
h1 {
    text-align: center;
}

/* Preformatted text styles */
pre {
    border: 1px solid #ddd;
    padding: 10px;
    overflow: auto;
    max-height: 200px;
}

/* Form styles */
form {
    border: 1px solid #ddd;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

input[type="text"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

input[type="submit"] {
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 10px;
    text-align: left;
}

th {
    background-color: #cc0000;
    color: #fff;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #ddd;
}

/* External links styles */
.external-links a, li a {
    text-decoration: none;
}

.external-links a:hover, li a:hover {
    text-decoration: underline;
}

/* Notice styles */
.notice {
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
}

/* Table links styles */
table a {
    text-decoration: none;
}

table a:hover {
    text-decoration: underline;
}

/* Light mode styles */
@media (prefers-color-scheme: light) {
    body {
        background-color: #f4f4f4;
        color: #333;
    }
    input[type="submit"] {
        background-color: #cc0000;
        color: #fff;
    }
    input[type="submit"]:hover {
        background-color: #aa0000;
    }
    .external-links a, table a, li a {
        color: #cc0000;
    }
    h1 {
        color: #cc0000;
    }
}

/* Dark mode styles */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #ddd;
    }
    input[type="submit"] {
        background-color: #620000;
        color: #fff;
    }
    input[type="submit"]:hover {
        background-color: #500000;
    }
    .external-links a, table a, li a {
        color: #0099ff;
    }
    h1 {
        color: #6666ff;
    }
    pre, form, table, th, td {
        border-color: #555;
    }
    pre {
        background-color: #1e1e1e;
    }
    form {
        background-color: #1e1e1e;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    }
    table tr:nth-child(even) {
        background-color: #2a2a2a;
    }
    table tr:hover {
        background-color: #333;
    }
}
