/* POST Test tool styles — scoped under .post-test-tool */

.post-test-tool {
    max-width: 1100px;
    width: 100%;
    margin: 8rem auto 4rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.post-test-tool .pt-header {
    background: #2c3e50;
    color: white;
    padding: 20px 30px;
    text-align: center;
}

.post-test-tool .pt-header h1 {
    font-size: 28px;
    margin-bottom: 5px;
}

.post-test-tool .pt-header p {
    font-size: 14px;
    opacity: 0.8;
}

.post-test-tool .pt-content {
    padding: 30px;
}

.post-test-tool .pt-section {
    margin-bottom: 25px;
}

.post-test-tool .pt-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.post-test-tool .pt-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: #667eea;
    margin-right: 10px;
    border-radius: 2px;
}

.post-test-tool .pt-input-group {
    margin-bottom: 15px;
}

.post-test-tool label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 5px;
}

.post-test-tool input[type="text"],
.post-test-tool input[type="url"],
.post-test-tool input[type="password"],
.post-test-tool select,
.post-test-tool textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s;
    font-family: 'Courier New', monospace;
}

.post-test-tool input[type="text"]:focus,
.post-test-tool input[type="url"]:focus,
.post-test-tool input[type="password"]:focus,
.post-test-tool select:focus,
.post-test-tool textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.post-test-tool textarea {
    resize: vertical;
    min-height: 150px;
}

.post-test-tool .pt-header-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.post-test-tool .pt-header-row input {
    flex: 1;
}

.post-test-tool .pt-header-row button {
    padding: 10px 15px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s;
}

.post-test-tool .pt-header-row button:hover {
    background: #c0392b;
}

.post-test-tool .pt-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.post-test-tool .pt-btn-primary {
    background: #667eea;
    color: white;
}

.post-test-tool .pt-btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    color: white;
}

.post-test-tool .pt-btn-secondary {
    background: #95a5a6;
    color: white;
}

.post-test-tool .pt-btn-secondary:hover {
    background: #7f8c8d;
    color: white;
}

.post-test-tool .pt-btn-add {
    background: #27ae60;
    color: white;
    padding: 8px 15px;
    font-size: 13px;
}

.post-test-tool .pt-btn-add:hover {
    background: #229954;
}

.post-test-tool .pt-response-section {
    background: #f8f9fa;
    border-radius: 5px;
    padding: 20px;
    margin-top: 20px;
}

.post-test-tool .pt-response-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.post-test-tool .pt-status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.post-test-tool .pt-status-success {
    background: #d4edda;
    color: #155724;
}

.post-test-tool .pt-status-error {
    background: #f8d7da;
    color: #721c24;
}

.post-test-tool .pt-response-body {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 15px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.post-test-tool .hidden {
    display: none !important;
}

.post-test-tool .pt-loading {
    text-align: center;
    padding: 20px;
    color: #667eea;
    font-weight: 600;
}

.post-test-tool .pt-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: pt-spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes pt-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pt-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.post-test-tool .pt-method-select {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.post-test-tool .pt-method-btn {
    padding: 8px 20px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.post-test-tool .pt-method-btn.active {
    background: #667eea;
    color: white;
}

.post-test-tool .pt-method-btn:hover {
    transform: translateY(-2px);
}

.post-test-tool .pt-alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 13px;
}

.post-test-tool .pt-alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.post-test-tool .pt-alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.post-test-tool .pt-alert-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.post-test-tool .pt-alert ul {
    margin-left: 20px;
    margin-top: 8px;
}

.post-test-tool .pt-alert li {
    margin-bottom: 5px;
}

.post-test-tool .pt-code-inline {
    background: rgba(0,0,0,0.1);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.post-test-tool .pt-curl-container {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
    position: relative;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    overflow-x: auto;
}

.post-test-tool .pt-curl-title {
    color: #4ec9b0;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-test-tool .pt-curl-command {
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.6;
    background: #2d2d2d;
    padding: 12px;
    border-radius: 3px;
    border: 1px solid #404040;
}

.post-test-tool .pt-copy-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #007acc;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    transition: background 0.3s;
}

.post-test-tool .pt-copy-btn:hover {
    background: #005a9e;
}

.post-test-tool .pt-copy-btn.copied {
    background: #28a745;
}

.post-test-tool .pt-auth-fields {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}
