#content {
    display: flex;
    flex-flow: column;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 15px;
    font-family: sans-serif;
    justify-content: center;
    text-align: center;
    align-items: initial;
}

.api-panel {
    background-color: var(--color-bg);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.input-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.api-panel label {
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: 5px;
    font-weight: bold;
}

.api-panel input[type="text"],
.api-panel select {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    background-color: var(--color-bg);
    border: 1px solid #444;
    border-radius: 4px;
    color: var(--color-text);
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.api-panel input[type="text"]:focus,
.api-panel select:focus {
    border-color: #b38c44;
    outline: none;
}

#sendApiBtn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    background-color: #b38c44;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
    margin-top: 10px;
}

#sendApiBtn:hover {
    background-color: #b38c44;
}

#sendApiBtn:disabled {
    background-color: var(--color-bg);
    opacity: 0.6;
    cursor: not-allowed;
}

.code-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.95rem;
    background-color: var(--color-bg);
    border-radius: 6px;
    overflow: hidden;
}

.code-table th,
.code-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #2d2d2d;
}

.code-table th {
    background-color: var(--color-text);
    color: var(--color-bg);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.col-code { width: 30%; font-family: monospace; font-size: 1.05rem; color: var(--color-text); }
.col-reward { width: 35%; color: var(--color-text); }
.col-expiry { width: 20%; color: var(--color-text); }
.col-action { width: 15%; text-align: center; }

.code-table tr:hover {
    background-color: var(--color-bg);
}

.copy-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    background-color: #b38c44;
    color: var(--color-bg);
    border: 1px solid #444;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.copy-btn:hover {
    background-color: var(--color-bg);
    color: var(--color-text);
    border-color: #666;
}

.copy-btn:disabled {
    background-color: var(--color-bg);
    color: #66bb6a;
    border-color: #2e7d32;
    cursor: not-allowed;
}