/* Webhook Tester Styles */
:root {
    --wt-transition: all 0.3s ease;
    --wt-primary-color: #0B4036;
    --wt-hover-color: #086554;
    --wt-button-text: #ffffff;
    --wt-border-color: #0B4036;
    --wt-shadow-color: #086554;
    --wt-container-start: #ECF9F7;
    --wt-container-end: #ffffff;
}

/* Mobile First - Base Styles */
* {
    box-sizing: border-box;
}

.webhook-tester-wrapper * {
    box-sizing: border-box;
}

/* Hide WordPress admin footer */
#wpfooter,
#wpfooter p,
#wpfooter a {
    display: none !important;
    visibility: hidden !important;
}

/* Mobile Touch Improvements */
@media (max-width: 767px) {
    .wt-btn-primary,
    .wt-btn-secondary,
    .wt-btn-remove,
    .wt-btn-copy,
    .wt-btn-clear,
    .wt-file-upload-button,
    .wt-radio-label {
        min-height: 44px; /* iOS recommended touch target */
        touch-action: manipulation;
    }
    
    .wt-tab {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    .wt-input,
    .wt-select,
    .wt-textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

.webhook-tester-wrapper {
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: var(--wt-transition);
    width: 100%;
    overflow-x: hidden;
}

@media (min-width: 480px) {
    .webhook-tester-wrapper {
        font-size: 15px;
    }
}

@media (min-width: 640px) {
    .webhook-tester-wrapper {
        font-size: 16px;
    }
}

/* Light Theme (Default) */
.webhook-tester-wrapper {
    background: linear-gradient(to bottom right, var(--wt-container-start), var(--wt-container-end), var(--wt-container-start));
    color: #000000;
}


.wt-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 0.75rem;
    width: 100%;
}

@media (min-width: 480px) {
    .wt-container {
        padding: 0 1rem;
    }
}

@media (min-width: 640px) {
    .wt-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .wt-container {
        padding: 0 2rem;
    }
}

.wt-icon {
    width: 1.25rem;
    height: 1.25rem;
    display: inline-block;
    vertical-align: middle;
    stroke: currentColor;
    fill: none;
}

.webhook-tester-wrapper .wt-icon {
    color: #000000;
    stroke: #000000;
}

/* Main Content */
.wt-main {
    padding: 0.75rem 0 1.5rem;
    width: 100%;
}

@media (min-width: 480px) {
    .wt-main {
        padding: 1rem 0 2rem;
    }
}

@media (min-width: 640px) {
    .wt-main {
        padding: 1.5rem 0 3rem;
    }
}

@media (min-width: 768px) {
    .wt-main {
        padding: 2rem 0 4rem;
    }
}

/* Form */
.wt-form-wrapper {
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .wt-form-wrapper {
        margin-bottom: 1.5rem;
    }
}

@media (min-width: 768px) {
    .wt-form-wrapper {
        margin-bottom: 2rem;
    }
}

.wt-request-form {
    border-radius: 0.5rem;
    padding: 0.75rem;
    border: 1px solid;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
    transition: var(--wt-transition);
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

@media (min-width: 480px) {
    .wt-request-form {
        border-radius: 0.75rem;
        padding: 1rem;
    }
}

@media (min-width: 640px) {
    .wt-request-form {
        border-radius: 1rem;
        padding: 1.5rem;
    }
}

@media (min-width: 768px) {
    .wt-request-form {
        padding: 2rem;
    }
}

.webhook-tester-wrapper .wt-request-form {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--wt-border-color);
    box-shadow: 0 25px 50px -12px rgba(8, 101, 84, 0.15);
}

.webhook-tester-wrapper .wt-request-form:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
}

.wt-form-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

@media (min-width: 480px) {
    .wt-form-row {
        gap: 1rem;
    }
}

@media (min-width: 768px) {
    .wt-form-row {
        flex-direction: row;
        gap: 1rem;
        align-items: flex-end;
    }
}

@media (min-width: 1024px) {
    .wt-form-row {
        gap: 1.5rem;
    }
}

.wt-form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
    width: 100%;
}

@media (min-width: 640px) {
    .wt-form-group {
        gap: 0.75rem;
    }
}

@media (min-width: 768px) {
    .wt-form-group {
        width: auto;
    }
}

.wt-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Karla', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: inherit;
}

@media (min-width: 480px) {
    .wt-label {
        font-size: 15px;
    }
}

@media (min-width: 640px) {
    .wt-label {
        gap: 0.75rem;
        font-size: 18px;
    }
}

.webhook-tester-wrapper .wt-label {
    color: #000000 !important;
}

.wt-required {
    opacity: 0.5;
}

.wt-input,
.wt-select,
.wt-textarea {
    width: 100%;
    max-width: 100%;
    border: 2px solid;
    border-radius: 0.5rem;
    padding: 0.625rem 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: var(--wt-transition);
    box-shadow: 0 10px 15px -3px rgba(11, 64, 54, 0.1);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

@media (min-width: 480px) {
    .wt-input,
    .wt-select,
    .wt-textarea {
        padding: 0.75rem;
        font-size: 15px;
    }
}

@media (min-width: 640px) {
    .wt-input,
    .wt-select,
    .wt-textarea {
        border-radius: 0.75rem;
        padding: 1rem;
        font-size: 16px;
    }
}

@media (min-width: 768px) {
    .wt-input,
    .wt-select,
    .wt-textarea {
        padding: 1.25rem;
    }
}

.wt-input::placeholder,
.wt-textarea::placeholder {
    color: #6b7280;
}

.wt-input:focus,
.wt-select:focus,
.wt-textarea:focus {
    outline: none;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.webhook-tester-wrapper .wt-input,
.webhook-tester-wrapper .wt-select,
.webhook-tester-wrapper .wt-textarea {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--wt-border-color);
    color: #000000 !important;
    max-width: 100%;
}

.wt-form-group .wt-input {
    width: 100%;
    max-width: 100%;
}

.webhook-tester-wrapper .wt-select option {
    background: #ffffff;
    color: #000000;
}

.webhook-tester-wrapper .wt-input:focus,
.webhook-tester-wrapper .wt-select:focus,
.webhook-tester-wrapper .wt-textarea:focus {
    border-color: var(--wt-border-color);
    box-shadow: 0 20px 25px -5px rgba(8, 101, 84, 0.2), 0 10px 10px -5px rgba(8, 101, 84, 0.04);
}

.wt-textarea {
    min-height: 150px;
    resize: vertical;
    width: 100%;
}

@media (min-width: 480px) {
    .wt-textarea {
        min-height: 180px;
    }
}

@media (min-width: 640px) {
    .wt-textarea {
        min-height: 300px;
    }
}

.wt-form-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
    flex-shrink: 0;
}

@media (min-width: 480px) {
    .wt-form-actions {
        gap: 0.875rem;
    }
}

@media (min-width: 640px) {
    .wt-form-actions {
        flex-direction: row;
        align-items: flex-end;
        gap: 0.75rem;
        width: auto;
    }
}

@media (min-width: 768px) {
    .wt-form-actions {
        gap: 1rem;
    }
}

.wt-select {
    width: 100%;
    min-width: 0;
    flex-shrink: 0;
}

@media (min-width: 480px) {
    .wt-select {
        width: 100%;
    }
}

@media (min-width: 640px) {
    .wt-select {
        width: auto;
        min-width: 100px;
        max-width: 150px;
    }
}

@media (min-width: 768px) {
    .wt-select {
        min-width: 120px;
    }
}

.wt-btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Karla', sans-serif;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: var(--wt-transition);
    border: 2px solid;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(8, 101, 84, 0.3);
    font-size: 13px;
    width: 100%;
    white-space: nowrap;
}

@media (min-width: 480px) {
    .wt-btn-primary {
        padding: 0.625rem 1.25rem;
        font-size: 14px;
    }
}

@media (min-width: 640px) {
    .wt-btn-primary {
        padding: 0.75rem 1.5rem;
        border-radius: 0.75rem;
        font-size: 16px;
        width: auto;
    }
}

@media (min-width: 768px) {
    .wt-btn-primary {
        padding: 0.75rem 1.75rem;
        font-size: 18px;
    }
}

.wt-btn-primary:hover:not(:disabled) {
    transform: scale(1.05);
}

.wt-btn-primary:active:not(:disabled) {
    transform: scale(0.95);
}

.wt-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.webhook-tester-wrapper .wt-btn-primary {
    background: var(--wt-primary-color);
    color: var(--wt-button-text);
    border-color: var(--wt-border-color);
}

.webhook-tester-wrapper .wt-btn-primary:hover:not(:disabled),
.webhook-tester-wrapper .wt-btn-primary:active:not(:disabled) {
    background: var(--wt-hover-color);
    border-color: var(--wt-hover-color);
    box-shadow: 0 20px 25px -5px rgba(8, 101, 84, 0.4);
}

.wt-btn-text-short {
    display: inline;
}

@media (min-width: 640px) {
    .wt-btn-text-short {
        display: none;
    }
}

.wt-btn-text-full {
    display: none;
}

@media (min-width: 640px) {
    .wt-btn-text-full {
        display: inline;
    }
}

.wt-icon-loading {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Tabs */
.wt-tabs-wrapper {
    border-radius: 0.75rem;
    border: 1px solid;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
    transition: var(--wt-transition);
}

@media (min-width: 640px) {
    .wt-tabs-wrapper {
        border-radius: 1rem;
    }
}

.webhook-tester-wrapper .wt-tabs-wrapper {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--wt-border-color);
    box-shadow: 0 25px 50px -12px rgba(8, 101, 84, 0.15);
}

.wt-tabs-header {
    display: flex;
    border-bottom: 1px solid;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.wt-tabs-header::-webkit-scrollbar {
    display: none;
}

.wt-tab {
    scroll-snap-align: start;
}

.webhook-tester-wrapper .wt-tabs-header {
    border-color: var(--wt-border-color);
}

.wt-tab {
    padding: 0.625rem 0.875rem;
    font-family: 'Karla', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--wt-transition);
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    min-width: fit-content;
}

@media (min-width: 480px) {
    .wt-tab {
        padding: 0.75rem 1rem;
        font-size: 14px;
    }
}

@media (min-width: 640px) {
    .wt-tab {
        padding: 1rem 1.5rem;
        font-size: 18px;
    }
}

@media (min-width: 768px) {
    .wt-tab {
        padding: 1.25rem 2rem;
        font-size: 20px;
    }
}

.webhook-tester-wrapper .wt-tab {
    color: #000000;
}

.webhook-tester-wrapper .wt-tab:hover {
    color: #000000;
    background: rgba(11, 64, 54, 0.05);
}

.webhook-tester-wrapper .wt-tab.active {
    background: rgba(11, 64, 54, 0.1);
    color: #000000;
    border-color: var(--wt-border-color);
    box-shadow: 0 10px 15px -3px rgba(8, 101, 84, 0.2);
}

.wt-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    display: none;
}

.wt-tab.active::after {
    display: block;
}

.webhook-tester-wrapper .wt-tab.active::after {
    background: var(--wt-border-color);
}

.wt-tabs-content {
    padding: 0.75rem;
    width: 100%;
    overflow-x: auto;
}

@media (min-width: 480px) {
    .wt-tabs-content {
        padding: 1rem;
    }
}

@media (min-width: 640px) {
    .wt-tabs-content {
        padding: 1.5rem;
    }
}

@media (min-width: 768px) {
    .wt-tabs-content {
        padding: 2rem;
    }
}

.wt-tab-panel {
    display: none;
}

.wt-tab-panel.active {
    display: block;
}

.wt-panel-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .wt-panel-content {
        gap: 1.5rem;
    }
}

@media (min-width: 768px) {
    .wt-panel-content {
        gap: 2rem;
    }
}

.wt-panel-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .wt-panel-header {
        flex-direction: row;
        align-items: center;
        gap: 0;
    }
}

.wt-panel-title {
    font-family: 'Karla', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: inherit;
    line-height: 1.2;
}

@media (min-width: 480px) {
    .wt-panel-title {
        font-size: 18px;
    }
}

@media (min-width: 640px) {
    .wt-panel-title {
        font-size: 24px;
    }
}

@media (min-width: 768px) {
    .wt-panel-title {
        font-size: 28px;
    }
}

.webhook-tester-wrapper .wt-panel-title {
    color: #000000 !important;
}

.wt-panel-subtitle {
    font-family: 'Karla', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: inherit;
    line-height: 1.2;
}

@media (min-width: 480px) {
    .wt-panel-subtitle {
        font-size: 15px;
    }
}

@media (min-width: 640px) {
    .wt-panel-subtitle {
        font-size: 18px;
    }
}

.webhook-tester-wrapper .wt-panel-subtitle {
    color: #000000 !important;
}

.wt-btn-secondary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-family: 'Karla', sans-serif;
    font-size: 14px;
    font-weight: 700;
    transition: var(--wt-transition);
    box-shadow: 0 10px 15px -3px rgba(8, 101, 84, 0.2);
    cursor: pointer;
    width: 100%;
    justify-content: center;
    white-space: nowrap;
}

@media (min-width: 480px) {
    .wt-btn-secondary {
        font-size: 15px;
        padding: 0.625rem 0.875rem;
    }
}

@media (min-width: 640px) {
    .wt-btn-secondary {
        border-radius: 0.75rem;
        padding: 0.75rem 1rem;
        font-size: 18px;
        width: auto;
        justify-content: flex-start;
    }
}

@media (min-width: 768px) {
    .wt-btn-secondary {
        padding: 0.75rem 1.25rem;
    }
}

.wt-btn-secondary:hover {
    transform: scale(1.05);
}

.wt-btn-secondary:active {
    transform: scale(0.95);
}

.webhook-tester-wrapper .wt-btn-secondary {
    background: transparent;
    border-color: var(--wt-border-color);
    color: var(--wt-primary-color);
}

.webhook-tester-wrapper .wt-btn-secondary:hover,
.webhook-tester-wrapper .wt-btn-secondary:active {
    background: var(--wt-hover-color);
    border-color: var(--wt-hover-color);
    color: var(--wt-button-text);
    box-shadow: 0 10px 15px -3px rgba(8, 101, 84, 0.3);
}

.wt-fields-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .wt-fields-list {
        gap: 0.75rem;
    }
}

.wt-field-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

@media (min-width: 480px) {
    .wt-field-row {
        gap: 0.625rem;
    }
}

@media (min-width: 640px) {
    .wt-field-row {
        flex-direction: row;
        gap: 0.75rem;
    }
}

.wt-field-row .wt-input {
    flex: 1;
}

.wt-btn-remove {
    border: 2px solid;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    transition: var(--wt-transition);
    box-shadow: 0 10px 15px -3px rgba(8, 101, 84, 0.2);
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 640px) {
    .wt-btn-remove {
        border-radius: 0.75rem;
        padding: 0.75rem 1rem;
        width: auto;
    }
}

.wt-btn-remove:hover {
    transform: scale(1.05);
}

.wt-btn-remove:active {
    transform: scale(0.95);
}

.webhook-tester-wrapper .wt-btn-remove {
    background: transparent;
    border-color: var(--wt-border-color);
    color: var(--wt-primary-color);
}

.webhook-tester-wrapper .wt-btn-remove:hover,
.webhook-tester-wrapper .wt-btn-remove:active {
    background: var(--wt-hover-color);
    border-color: var(--wt-hover-color);
    color: var(--wt-button-text);
    box-shadow: 0 10px 15px -3px rgba(8, 101, 84, 0.3);
}

/* Body Type Selector */
.wt-body-type-selector {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .wt-body-type-selector {
        flex-direction: row;
        gap: 0.75rem;
    }
}

.wt-radio-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    border: 2px solid;
    cursor: pointer;
    transition: var(--wt-transition);
    font-family: 'Karla', sans-serif;
    font-weight: 700;
    box-shadow: 0 10px 15px -3px rgba(8, 101, 84, 0.2);
    font-size: 14px;
    width: 100%;
}

@media (min-width: 480px) {
    .wt-radio-label {
        padding: 0.75rem 1.5rem;
        font-size: 15px;
    }
}

@media (min-width: 640px) {
    .wt-radio-label {
        border-radius: 0.75rem;
        padding: 1rem 2rem;
        font-size: 18px;
        width: auto;
    }
}

@media (min-width: 768px) {
    .wt-radio-label {
        padding: 1rem 2.5rem;
    }
}

.wt-radio-label:hover {
    transform: scale(1.05);
}

.wt-radio-label:active {
    transform: scale(0.95);
}

.wt-radio-label input[type="radio"] {
    display: none;
}

.webhook-tester-wrapper .wt-radio-label {
    background: transparent;
    color: #000000;
    border-color: var(--wt-border-color);
}

.webhook-tester-wrapper .wt-radio-label:hover {
    color: #000000;
    border-color: var(--wt-hover-color);
    box-shadow: 0 10px 15px -3px rgba(8, 101, 84, 0.3);
}

.webhook-tester-wrapper .wt-radio-label.active {
    background: var(--wt-primary-color);
    color: var(--wt-button-text);
    border-color: var(--wt-border-color);
    box-shadow: 0 20px 25px -5px rgba(8, 101, 84, 0.4);
}

.wt-form-data-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    width: 100%;
}

@media (min-width: 480px) {
    .wt-form-data-grid {
        gap: 1rem;
    }
}

@media (min-width: 768px) {
    .wt-form-data-grid {
        gap: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .wt-form-data-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

@media (min-width: 1280px) {
    .wt-form-data-grid {
        gap: 2rem;
    }
}

.wt-form-data-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .wt-form-data-col {
        gap: 1rem;
    }
}

.wt-field-label {
    display: block;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wt-field-label span {
    font-family: 'Karla', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: inherit;
}

@media (min-width: 480px) {
    .wt-field-label span {
        font-size: 15px;
    }
}

@media (min-width: 640px) {
    .wt-field-label span {
        font-size: 18px;
    }
}

.webhook-tester-wrapper .wt-field-label span {
    color: #000000 !important;
}

.wt-file-upload-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
    width: 100%;
}

@media (min-width: 480px) {
    .wt-file-upload-wrapper {
        flex-direction: row;
        align-items: center;
    }
}

.wt-input-file {
    position: absolute !important;
    width: 0.1px !important;
    height: 0.1px !important;
    opacity: 0 !important;
    overflow: hidden !important;
    z-index: -1 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

/* Completely hide the file input button and text */
.wt-input-file::file-selector-button {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

.wt-input-file::-webkit-file-upload-button {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* Custom button to trigger file input */
.wt-file-upload-wrapper {
    position: relative;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.wt-file-upload-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.875rem;
    border-radius: 0.5rem;
    font-family: 'Karla', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--wt-transition);
    box-shadow: 0 10px 15px -3px rgba(8, 101, 84, 0.2);
    border: 2px solid;
    width: 100%;
    white-space: nowrap;
}

@media (min-width: 480px) {
    .wt-file-upload-button {
        padding: 0.5rem 1rem;
        font-size: 15px;
        width: auto;
    }
}

@media (min-width: 640px) {
    .wt-file-upload-button {
        padding: 0.5rem 1rem;
        border-radius: 0.75rem;
        font-size: 18px;
    }
}

@media (min-width: 768px) {
    .wt-file-upload-button {
        padding: 0.5rem 1.25rem;
    }
}

.webhook-tester-wrapper .wt-file-upload-button {
    background: var(--wt-primary-color);
    color: var(--wt-button-text);
    border-color: var(--wt-border-color);
}

.webhook-tester-wrapper .wt-file-upload-button:hover {
    background: var(--wt-hover-color);
    border-color: var(--wt-hover-color);
    box-shadow: 0 10px 15px -3px rgba(8, 101, 84, 0.3);
}

/* File name display next to Choose File button */
.wt-file-name-display {
    display: none;
    padding: 0.375rem 0.75rem;
    font-size: 14px;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    color: inherit;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    align-self: flex-start;
    vertical-align: middle;
}

@media (min-width: 480px) {
    .wt-file-name-display {
        margin-left: 0.75rem;
        max-width: 200px;
        align-self: center;
    }
}

@media (min-width: 640px) {
    .wt-file-name-display {
        padding: 0.5rem 1rem;
        font-size: 16px;
        max-width: 250px;
        margin-left: 1rem;
    }
}

@media (min-width: 1024px) {
    .wt-file-name-display {
        max-width: 300px;
    }
}

.webhook-tester-wrapper .wt-file-name-display {
    color: #000000 !important;
}

/* Old file-selector-button styles removed - using custom button instead */

.wt-file-display {
    flex: 1;
    cursor: default;
    display: none;
}

.wt-file-selected {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.75rem;
}

.wt-file-selected-label {
    font-weight: 700;
    text-transform: uppercase;
    color: inherit;
}

.webhook-tester-wrapper .wt-file-selected-label {
    color: #000000 !important;
}

.wt-file-selected-name {
    font-weight: 400;
    text-transform: uppercase;
    color: inherit;
    word-break: break-all;
}

.webhook-tester-wrapper .wt-file-selected-name {
    color: #000000 !important;
}

/* Response & Preview */
.wt-response-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
}

@media (min-width: 768px) {
    .wt-response-grid {
        gap: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .wt-response-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

.wt-response-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .wt-response-col {
        gap: 1rem;
    }
}

.wt-response-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .wt-response-header {
        flex-direction: row;
        align-items: center;
        gap: 0;
    }
}

.wt-response-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .wt-response-title {
        gap: 0.75rem;
    }
}

.wt-response-title h3 {
    font-family: 'Karla', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: inherit;
    line-height: 1.2;
}

@media (min-width: 480px) {
    .wt-response-title h3 {
        font-size: 16px;
    }
}

@media (min-width: 640px) {
    .wt-response-title h3 {
        font-size: 20px;
    }
}

.webhook-tester-wrapper .wt-response-title h3 {
    color: #000000 !important;
}

.wt-status-badge {
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-family: 'Karla', sans-serif;
    font-size: 13px;
    font-weight: 700;
    border: 2px solid;
    box-shadow: 0 10px 15px -3px rgba(8, 101, 84, 0.2);
    white-space: nowrap;
}

@media (min-width: 480px) {
    .wt-status-badge {
        font-size: 14px;
    }
}

@media (min-width: 640px) {
    .wt-status-badge {
        border-radius: 0.75rem;
        padding: 0.5rem 1rem;
        font-size: 18px;
    }
}

.webhook-tester-wrapper .wt-status-badge {
    background: rgba(255, 255, 255, 0.8);
    color: #000000;
    border-color: var(--wt-border-color);
}

.wt-status-badge.status-2xx {
    background: var(--wt-primary-color);
    color: var(--wt-button-text);
    border-color: var(--wt-border-color);
}

.wt-status-badge.status-4xx {
    background: #9ca3af;
    color: #000000;
    border-color: #9ca3af;
}

.wt-status-badge.status-5xx {
    background: #ffffff;
    color: #000000;
    border-color: var(--wt-border-color);
}

.wt-response-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

@media (min-width: 640px) {
    .wt-response-actions {
        width: auto;
    }
}

.wt-btn-copy,
.wt-btn-clear {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: 2px solid;
    font-family: 'Karla', sans-serif;
    font-size: 14px;
    font-weight: 700;
    transition: var(--wt-transition);
    box-shadow: 0 10px 15px -3px rgba(8, 101, 84, 0.2);
    cursor: pointer;
    flex: 1;
    justify-content: center;
    white-space: nowrap;
}

@media (min-width: 480px) {
    .wt-btn-copy,
    .wt-btn-clear {
        font-size: 15px;
    }
}

@media (min-width: 640px) {
    .wt-btn-copy,
    .wt-btn-clear {
        border-radius: 0.75rem;
        padding: 0.5rem 1rem;
        font-size: 18px;
        flex: none;
        justify-content: flex-start;
    }
}

.wt-btn-copy:hover,
.wt-btn-clear:hover {
    transform: scale(1.05);
}

.wt-btn-copy:active,
.wt-btn-clear:active {
    transform: scale(0.95);
}

.webhook-tester-wrapper .wt-btn-copy,
.webhook-tester-wrapper .wt-btn-clear {
    background: transparent;
    color: var(--wt-primary-color) !important;
    border-color: var(--wt-border-color);
}

.webhook-tester-wrapper .wt-btn-copy:hover,
.webhook-tester-wrapper .wt-btn-clear:hover,
.webhook-tester-wrapper .wt-btn-copy:active,
.webhook-tester-wrapper .wt-btn-clear:active {
    color: var(--wt-primary-color) !important;
    border-color: var(--wt-hover-color);
    box-shadow: 0 10px 15px -3px rgba(8, 101, 84, 0.3);
}

.webhook-tester-wrapper .wt-btn-copy.copied,
.webhook-tester-wrapper .wt-btn-clear.copied {
    background: var(--wt-primary-color);
    color: var(--wt-button-text) !important;
    border-color: var(--wt-border-color);
    box-shadow: 0 20px 25px -5px rgba(8, 101, 84, 0.3);
}

.wt-icon-copy {
    display: inline-block;
}

.wt-btn-copy.copied .wt-icon-copy,
.wt-btn-clear.copied .wt-icon-copy {
    display: none;
}

.wt-icon-check {
    display: none;
}

.wt-btn-copy.copied .wt-icon-check,
.wt-btn-clear.copied .wt-icon-check {
    display: inline-block;
}

.wt-error-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

@media (min-width: 640px) {
    .wt-error-message {
        border-radius: 0.75rem;
        padding: 1rem 1.25rem;
    }
}

@media (min-width: 768px) {
    .wt-error-message {
        padding: 1rem 1.5rem;
    }
}

.webhook-tester-wrapper .wt-error-message {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--wt-border-color);
    box-shadow: 0 20px 25px -5px rgba(8, 101, 84, 0.3);
}

.wt-error-message span {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    word-break: break-word;
    line-height: 1.5;
}

@media (min-width: 480px) {
    .wt-error-message span {
        font-size: 15px;
    }
}

@media (min-width: 640px) {
    .wt-error-message span {
        font-size: 18px;
    }
}

.wt-code-block {
    border: 2px solid;
    border-radius: 0.5rem;
    padding: 0.75rem;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 300px;
    font-size: 12px;
    font-family: 'Inter', monospace;
    white-space: pre-wrap;
    user-select: all;
    box-shadow: 0 20px 25px -5px rgba(8, 101, 84, 0.15);
    word-break: break-word;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 480px) {
    .wt-code-block {
        font-size: 13px;
        max-height: 350px;
    }
}

@media (min-width: 640px) {
    .wt-code-block {
        border-radius: 0.75rem;
        padding: 1rem;
        max-height: 500px;
        font-size: 16px;
    }
}

@media (min-width: 768px) {
    .wt-code-block {
        padding: 1.5rem;
    }
}

.webhook-tester-wrapper .wt-code-block {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--wt-border-color);
    color: #000000;
    box-shadow: 0 20px 25px -5px rgba(8, 101, 84, 0.2);
}


