
html, body {
    margin: 0;
    padding: 0;
}

body {
    background-color: #003366;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #000000;
}

.page {
    width: 1100px;
    max-width: calc(100% - 20px);
    margin: 25px auto;
    background: #c0c0c0;
    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    border-right: 2px solid #404040;
    border-bottom: 2px solid #404040;
    box-shadow: 4px 4px 0px #001f3f;
}

.header {
    height: 75px;
    background: linear-gradient(to bottom, #336699 0%, #003366 50%, #001f4d 100%);
    border-bottom: 3px solid #808080;
    color: white;
    padding: 10px 15px;
    box-sizing: border-box;
}

.logo {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    font-weight: bold;
    text-shadow: 2px 2px #000000;
}

.subtitle {
    margin-top: 4px;
    font-size: 11px;
    color: #d6e7ff;
}

.nav {
    background: #d4d0c8;
    border-top: 1px solid white;
    border-bottom: 1px solid #808080;
    padding: 5px 10px;
}

.nav a {
    color: #000080;
    font-weight: bold;
    text-decoration: underline;
    margin-right: 20px;
}

.nav a:hover {
    color: #ff0000;
}

.content {
    padding: 15px;
}

.intro {
    background: #ffffcc;
    border: 1px solid #808080;
    padding: 8px;
    margin-bottom: 15px;
}

.section-title {
    background: #000080;
    color: white;
    font-weight: bold;
    padding: 4px 7px;
    border-top: 2px solid #3333cc;
    border-left: 2px solid #3333cc;
    border-right: 2px solid #000040;
    border-bottom: 2px solid #000040;
}

button {
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: bold;
    background: #d4d0c8;
    color: #000000;
    padding: 4px 12px;
    border-top: 2px solid white;
    border-left: 2px solid white;
    border-right: 2px solid #404040;
    border-bottom: 2px solid #404040;
    cursor: pointer;
}

button:active {
    border-top: 2px solid #404040;
    border-left: 2px solid #404040;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
}

.search-box {
    margin-top: 15px;
    margin-bottom: 10px;
}

.search-box label {
    font-weight: bold;
}

input[type="text"] {
    width: 250px;
    max-width: 70%;
    background: white;
    border-top: 2px solid #404040;
    border-left: 2px solid #404040;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    padding: 4px;
    font-family: Verdana, Arial, sans-serif;
    font-size: 11px;
}

.stats {
    background: #e8e8e8;
    border: 1px solid #808080;
    padding: 5px;
    font-size: 10px;
    margin-bottom: 8px;
}

.table-wrapper {
    border-top: 2px solid #404040;
    border-left: 2px solid #404040;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    background: white;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th {
    background: #000080;
    color: white;
    text-align: left;
    padding: 5px;
    border-right: 1px solid #808080;
    font-size: 11px;
}

td {
    padding: 6px;
    border-bottom: 1px solid #c0c0c0;
    font-size: 11px;
}

tr.world-row {
    cursor: pointer;
}

tr.world-row:nth-child(even) {
    background: #eeeeee;
}

tr.world-row:hover {
    background: #ffff99;
}

.world-name {
    color: #000080;
    text-decoration: underline;
    font-weight: bold;
}

.world-name:hover {
    color: #ff0000;
}

.world-category {
    color: #444444;
    font-size: 11px;
    white-space: nowrap;
}

.world-url {
    color: #666666;
    font-family: "Courier New", monospace;
    font-size: 10px;
    word-break: break-all;
}

.actions {
    width: 125px;
    white-space: nowrap;
}

.action-button {
    padding: 3px 7px;
    margin: 0 2px 0 0;
    font-size: 10px;
}

.edit-button {
    color: #000080;
}

.delete-button {
    color: #800000;
}

.footer {
    text-align: center;
    padding: 12px;
    margin-top: 15px;
    border-top: 1px solid #808080;
    font-size: 10px;
    color: #444444;
}

.copy-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ffffcc;
    border: 2px solid #808080;
    padding: 8px 15px;
    font-weight: bold;
    box-shadow: 3px 3px 0 #000000;
    display: none;
    z-index: 999;
}

.copy-message.show {
    display: block;
}

.empty {
    text-align: center;
    padding: 20px;
    color: #777777;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    width: 600px;
    max-width: calc(100% - 30px);
    background: #c0c0c0;
    border-top: 2px solid white;
    border-left: 2px solid white;
    border-right: 2px solid #404040;
    border-bottom: 2px solid #404040;
    box-shadow: 5px 5px 0 #000000;
}

.modal-title {
    background: #000080;
    color: white;
    font-weight: bold;
    padding: 5px 8px;
}

.modal-body {
    padding: 12px;
}

.modal-label {
    display: block;
    font-weight: bold;
    margin-bottom: 3px;
}

.modal-input {
    width: 100%;
    box-sizing: border-box;
    background: white;
    border-top: 2px solid #404040;
    border-left: 2px solid #404040;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    padding: 5px;
    margin-bottom: 12px;
    font-family: Verdana, Arial, sans-serif;
    font-size: 11px;
}

.modal-footer {
    padding: 8px 12px;
    text-align: right;
    border-top: 1px solid #808080;
    background: #d4d0c8;
}

.cancel-button {
    margin-right: 5px;
}

@media (max-width: 600px) {
    .page {
        margin: 10px auto;
    }
    .logo {
        font-size: 20px;
    }
    input[type="text"] {
        width: 180px;
    }
    .world-category {
    color: #444444;
    font-size: 11px;
    white-space: nowrap;
}

.world-url {
        display: none;
    }
    .actions {
        width: 110px;
    }
    .action-button {
        display: block;
        width: 100%;
        margin: 2px 0;
    }
}