/* Modern Form Styles for Test Bench */

body {
    background: #f8fafc;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Page title header */
.ppc-header {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    padding: 20px 30px;
    margin-bottom: 0;
}

.ppc-title {
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.3px;
}

/* Form content container */
.form-content {
    background: #fff;
    padding: 25px 30px;
    border-bottom: 1px solid #e2e8f0;
}

/* Form rows - labels on top of inputs */
.form-content p {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    gap: 6px;
}

/* Input fields */
.form-content input[type="text"],
.form-content input[type="password"],
.form-content input[type="number"],
.form-content input[type="email"],
.form-content select,
.form-content textarea {
    width: 100%;
    max-width: 500px;
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: #1f2937;
    background-color: #f9fafb;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-content input[type="text"]:focus,
.form-content input[type="password"]:focus,
.form-content input[type="number"]:focus,
.form-content input[type="email"]:focus,
.form-content select:focus,
.form-content textarea:focus {
    outline: none;
    border-color: #6366f1;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.form-content input::placeholder {
    color: #9ca3af;
}

/* Full width inputs */
.form-content input[style*="width: 100%"],
.form-content textarea {
    max-width: 100%;
}

/* Submit button */
.ppc-button {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    color: white !important;
    border: none;
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 20px 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ppc-button:hover {
    background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
    transform: translateY(-1px);
}

.ppc-button:active {
    transform: translateY(0);
}

/* Footer section (request/response) */
.ppc-footer {
    background: #f8fafc;
    padding: 20px 30px 30px;
}

.ppc-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    padding: 4px 0;
}

/* Request/Response textareas */
.ppc-http-body {
    width: 100% !important;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-family: "SF Mono", "Fira Code", "Consolas", monospace;
    font-size: 13px;
    line-height: 1.5;
    color: #1e293b;
    background-color: #fff;
    resize: vertical;
    box-sizing: border-box;
}

.ppc-http-body:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

/* Dynamic tables */
.form-content table {
    width: 100%;
    max-width: 600px;
    border-collapse: separate;
    border-spacing: 0;
    margin: 8px 0;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.form-content table th {
    background: #f1f5f9;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.form-content table td {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f5f9;
}

.form-content table tr:last-child td {
    border-bottom: none;
}

.form-content table input[type="text"] {
    max-width: none;
}

/* Info boxes */
.form-content div[style*="border"] {
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px;
    background: #f8fafc;
    margin: 12px 0;
}

.form-content h5 {
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-content dl {
    margin: 0;
}

.form-content dt {
    color: #1e293b;
    font-weight: 500;
    margin-top: 8px;
    font-size: 13px;
}

.form-content dd {
    color: #64748b;
    margin-left: 0;
    padding-left: 12px;
    border-left: 2px solid #e2e8f0;
    margin-top: 4px;
    font-size: 12px;
}

/* Checkbox and radio styling */
.form-content input[type="checkbox"],
.form-content input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #6366f1;
}

/* File inputs */
.form-content input[type="file"] {
    font-size: 13px;
    color: #64748b;
}

/* Textarea in form */
.form-content textarea {
    min-height: 100px;
    resize: vertical;
}

/* Responsive */
@media (max-width: 600px) {
    .ppc-header {
        padding: 15px 20px;
    }

    .ppc-title {
        font-size: 18px;
    }

    .form-content {
        padding: 20px;
    }

    .ppc-button {
        margin: 15px 20px;
        width: calc(100% - 40px);
    }

    .ppc-footer {
        padding: 15px 20px 25px;
    }
}
