* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 10px;
}

.container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 30px;
    width: 100%;
    max-width: 100%;
    margin-top: 10px;
}

h1 {
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2em;
}

h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5em;
    margin-top: 30px;
}

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

.primary-btn {
    width: auto;
    min-width: 250px;
    padding: 14px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.primary-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.primary-btn:active:not(:disabled) {
    transform: translateY(0);
}

.primary-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.success-message {
    margin-top: 20px;
    padding: 15px 20px;
    background: #e8f5e9;
    border-radius: 8px;
    border-left: 4px solid #4caf50;
    color: #2e7d32;
    font-weight: 500;
}

.config-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

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

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

input[type="text"],
input[type="url"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="url"]:focus {
    outline: none;
    border-color: #667eea;
}

button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.loading {
    margin-top: 30px;
    text-align: center;
    color: #667eea;
    font-weight: 500;
}

.response {
    margin-top: 30px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    border-left: 4px solid #4caf50;
}

.response h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3em;
}

#responseContent {
    background: white;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 400px;
    overflow-y: auto;
}

.error {
    margin-top: 30px;
    padding: 20px;
    background: #ffebee;
    border-radius: 8px;
    border-left: 4px solid #f44336;
}

.error h2 {
    color: #c62828;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.error p {
    color: #d32f2f;
    font-weight: 500;
}

.hidden {
    display: none;
}

.records-section {
    margin-top: 30px;
}

.records-count {
    margin-bottom: 15px;
    font-weight: 600;
    color: #667eea;
    font-size: 1.1em;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    max-height: 80vh;
    overflow-y: auto;
}

.records-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 14px;
}

.records-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.records-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    text-transform: capitalize;
    white-space: nowrap;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.records-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s;
}

.records-table tbody tr:hover {
    background-color: #f5f5f5;
}

.records-table tbody tr:last-child {
    border-bottom: none;
}

.records-table td {
    padding: 12px 15px;
    word-wrap: break-word;
    vertical-align: top;
    color: #333;
    line-height: 1.5;
}

.records-table td:first-child {
    font-weight: 500;
    color: #667eea;
}

.json-value {
    margin: 0;
    padding: 8px;
    background: #f8f8f8;
    border-radius: 4px;
    font-size: 12px;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.null-value {
    color: #999;
    font-style: italic;
}

.no-records {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 1.1em;
}

.json-bullet-list {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.json-bullet-list li {
    margin: 5px 0;
    line-height: 1.6;
    color: #333;
}

.json-bullet-list li strong {
    color: #667eea;
    font-weight: 600;
}

