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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

header {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    text-align: center;
}

header h1 {
    color: #333;
    margin-bottom: 10px;
}

header p {
    color: #666;
    font-size: 14px;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.panel {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.panel h2 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.panel-header h2 {
    margin: 0;
    padding: 0;
    border: none;
}

.operation-group {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.operation-group h3 {
    color: #555;
    margin-bottom: 15px;
    font-size: 16px;
}

.input-field {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 10px;
    transition: border-color 0.3s;
}

.input-field:focus {
    outline: none;
    border-color: #667eea;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background: #48bb78;
    color: white;
}

.btn-success:hover {
    background: #38a169;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(72, 187, 120, 0.4);
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
    padding: 8px 16px;
    font-size: 13px;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

.result-box {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 5px;
    border: 2px solid #e2e8f0;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.result-box.show {
    display: block;
}

.result-box.success {
    border-color: #48bb78;
    background: #f0fff4;
}

.result-box.error {
    border-color: #f56565;
    background: #fff5f5;
}

.history-container {
    max-height: 600px;
    overflow-y: auto;
}

.empty-state {
    text-align: center;
    color: #999;
    padding: 40px;
    font-style: italic;
}

.history-item {
    padding: 15px;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.history-item.error {
    border-left-color: #f56565;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.history-method {
    font-weight: bold;
    color: #667eea;
}

.history-timestamp {
    font-size: 12px;
    color: #999;
}

.history-endpoint {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #333;
    margin-bottom: 10px;
}

.history-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 12px;
}

.history-section {
    background: white;
    padding: 10px;
    border-radius: 5px;
}

.history-section h4 {
    font-size: 11px;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.history-section pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
}

.status-success {
    background: #c6f6d5;
    color: #22543d;
}

.status-error {
    background: #fed7d7;
    color: #742a2a;
}

.duration-badge {
    display: inline-block;
    padding: 4px 8px;
    background: #e2e8f0;
    border-radius: 3px;
    font-size: 11px;
    color: #4a5568;
    margin-left: 10px;
}

@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}
