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

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

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

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

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 20px;
    overflow: hidden;
}

.url-section {
    display: flex;
    gap: 10px;
    padding: 20px;
    background: #f8f9fa;
    align-items: center;
}

#method {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-weight: bold;
    min-width: 80px;
}

#url {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

#sendBtn {
    background: #28a745;
    color: white;
}

#sendBtn:hover, #sendBtn:disabled {
    background: #218838;
}

#sendBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#clearBtn {
    background: #6c757d;
    color: white;
}

#clearBtn:hover {
    background: #5a6268;
}

.query-section, .params-section, .body-section {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 10px;
}

.query-section h4 {
    margin-bottom: 10px;
    color: #495057;
}

#queryParamsContainer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 60px;
}

.param-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.query-key, .query-value {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.remove-param, #addQueryParam {
    padding: 10px 16px;
    min-width: 100px;
    font-size: 14px;
}

.remove-param {
    background: #dc3545;
    color: white;
}

#addQueryParam {
    background: #17a2b8;
    color: white;
    align-self: flex-start;
}

textarea {
    flex: 1;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: monospace;
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
}

.response-header {
    padding: 20px;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.response-header span {
    font-size: 18px;
}

#copyBtn {
    background: #007bff;
    color: white;
}

#copyBtn:hover {
    background: #0056b3;
}

.tabs {
    display: flex;
    list-style: none;
    background: #f8f9fa;
}

.tab {
    padding: 16px 24px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab:hover {
    background: #e9ecef;
}

.tab.active {
    background: white;
    border-bottom-color: #007bff;
    color: #007bff;
}

.tab-content {
    display: none;
    padding: 20px;
}

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

pre {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    font-size: 14px;
    white-space: pre-wrap;
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
}

#historyList {
    list-style: none;
}

.history-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-item:hover {
    background: #f8f9fa;
}

.history-item button {
    background: #007bff;
    padding: 6px 12px;
    font-size: 12px;
}

.status-success { color: #28a745; }
.status-error { color: #dc3545; }

@media (max-width: 768px) {
    .url-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .params-section, .body-section {
        flex-direction: column;
    }
}
