:root {
    --primary: #007bff;
    --primary-hover: #0056b3;
    --bg: #f4f4f9;
    --text: #333;
    --card-bg: #fff;
    --border: #ddd;
    --success: #28a745;
    --error: #dc3545;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    width: 64px;
    height: 64px;
    margin-bottom: 10px;
}

h1 {
    margin-bottom: 0; /* Handled by header container */
    color: #2c3e50;
}

.seo-content {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #555;
    line-height: 1.6;
}

.seo-content h2 {
    color: #333;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.seo-content h3 {
    color: #444;
    font-size: 1.2em;
    margin-top: 20px;
    margin-bottom: 10px;
}

.seo-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.disclaimer {
    font-size: 0.9em;
    color: #777;
    margin-top: 30px;
    border-top: 1px dashed #ddd;
    padding-top: 10px;
}

/* API Docs */
.api-docs {
    margin-top: 40px;
}

.api-endpoint {
    background: #eee;
    padding: 10px;
    border-radius: 4px;
    font-family: monospace;
    margin: 15px 0;
}

.method {
    background: var(--success);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    margin-right: 10px;
}

.api-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.api-table th, .api-table td {
    text-align: left;
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

.code-block {
    background: #2d2d2d;
    color: #ccc;
    padding: 15px;
    border-radius: 4px;
    font-family: monospace;
    overflow-x: auto;
}

.card {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.date-selectors {
    display: flex;
    gap: 10px;
}

select, input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 16px;
    background: #fff;
}

.actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.primary {
    background: var(--primary);
    color: white;
}

.primary:hover {
    background: var(--primary-hover);
}

.secondary {
    background: #e9ecef;
    color: #333;
}

.secondary:hover {
    background: #dde2e6;
}

.result-area {
    background: #f8f9fa;
    border: 2px dashed var(--border);
    border-radius: 4px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

#result-display {
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
}

.placeholder {
    color: #999;
    font-size: 14px !important;
    font-weight: normal !important;
    letter-spacing: normal !important;
}

.icon-btn {
    flex: 0 0 auto;
    background: none;
    padding: 8px;
    font-size: 20px;
}

.status {
    height: 20px;
    font-size: 14px;
    text-align: center;
}

.success { color: var(--success); }
.error { color: var(--error); }

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.tab-btn {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    border-radius: 0;
    flex: initial; /* Don't stretch */
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.hidden {
    display: none;
}

/* Parsed Details */
#parsed-details {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 15px;
}

.detail-row .label {
    color: #666;
}

.detail-row .value {
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.value.valid { color: var(--success); }

/* Bulk Input */
#bulk-qty {
    width: 100%;
    box-sizing: border-box; /* Fix padding issue */
}
