/* Reset and base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    font-family: monospace;
    background-color: #111;
    color: #eee;
    line-height: 1.5;
}

a {
    color: #e2c770;
    text-decoration: none;
    border: 1px solid #e2c770;
    padding: 0.3em 0.6em;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background-color 0.3s, color 0.3s;
}

a:hover {
    background-color: #333;
    color: #e2c770;
}

/* Header */
.site-header {
    background-color: #222;
    padding: 0.5em 1em;
    border-bottom: 1px solid #e2c770;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.site-logo {
    max-height: 50px;
    width: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.site-nav #cron-timer {
    border: 1px dashed #e2c770;
    padding: 0.3em 0.6em;
    border-radius: 4px;
    font-size: 0.85em;
}

/* Main content cards */
.market-section {
    max-width: 1000px;
    margin: 2em auto;
    padding: 2em;
    background-color: #1b1b1b;
    border-radius: 8px;
    box-shadow: 0 0 10px #000;
}

.market-title {
    text-align: center;
    font-size: 1.5rem;
    color: #e2c770;
    margin-bottom: 1em;
}

.market-subtitle {
    font-size: 1.3rem;
    color: #e2c770;
    margin-top: 2em;
    margin-bottom: 1em;
}

/* Forms */
.market-add-form,
.market-refresh-form,
.market-import-form {
    display: flex;
    align-items: center;
    gap: 1em;
    margin: 1em 0;
}

.market-add-form input,
.market-add-form textarea,
.market-add-form button,
.market-refresh-form button {
    background-color: #111;
    color: #e2c770;
    border: 1px solid #e2c770;
    border-radius: 4px;
    padding: 0.5em;
    font-family: monospace;
}

.market-add-form textarea {
    width: 200px;
    height: 100px;
    resize: vertical;
}

.market-add-form button:hover,
.market-refresh-form button:hover {
    background-color: #333;
}

/* Buttons general */
button {
    cursor: pointer;
}

/* Messages */
.market-message {
    background-color: #222;
    color: #e2c770;
    padding: 1em;
    border: 1px solid #e2c770;
    border-radius: 4px;
    text-align: center;
    margin: 1em 0;
    font-family: monospace;
}

/* Tables */
.market-orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2em;
    background-color: #1b1b1b;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 10px #000;
}

.market-orders-table th,
.market-orders-table td {
    border: 1px solid #e2c770;
    padding: 0.75em 1em;
    text-align: left;
    font-family: monospace;
    color: #eee;
}

.market-orders-table thead {
    background-color: #222;
}

.market-orders-table th {
    color: #e2c770;
}

.market-orders-table tr:hover {
    background-color: #2a2a2a;
}

/* Delete link button style */
.delete-link {
    display: inline-block;
    color: #e2c770;
    border: 1px solid #e2c770;
    padding: 0.3em 0.6em;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85em;
    transition: background-color 0.3s, color 0.3s;
}

.delete-link:hover {
    background-color: #333;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 1em;
    background-color: #222;
    color: #aaa;
    font-size: 0.85em;
    border-top: 1px solid #e2c770;
    margin-top: 2em;
}

/* Responsive */
@media (max-width: 800px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .site-nav {
        flex-wrap: wrap;
        gap: 0.5em;
        margin-top: 0.5em;
    }
    .market-add-form,
    .market-refresh-form,
    .market-import-form {
        flex-direction: column;
        align-items: stretch;
    }
}
