/* API Test Generator Styles */
.api-test-generator {
    margin-bottom: 2rem;
}

/* Full Width Card */
.generator-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
}

.card-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

/* Column Styles */
.input-column,
.output-column {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.input-column {
    border-right: 1px solid #e5e7eb;
}

/* Column Headers */
.column-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.column-header h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.header-icon svg {
    color: white;
}

.header-actions {
    display: flex;
    gap: 8px;
}

.btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-action:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.btn-action:active {
    transform: translateY(0);
}

.btn-action svg {
    color: white;
}

/* Column Content */
.column-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

.output-column .column-content {
    padding: 0;
    gap: 0;
}

.output-content {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

/* Input Styles */
.input-group-modern {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.label-text {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.label-hint {
    font-size: 12px;
    color: #6b7280;
}

.input-wrapper,
.select-wrapper,
.textarea-wrapper {
    position: relative;
}

.input-field,
.select-field,
.textarea-field {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #1f2937;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    transition: all 0.2s ease;
    
}

.input-field:focus,
.select-field:focus,
.textarea-field:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-field::placeholder,
.textarea-field::placeholder {
    color: #9ca3af;
}

.select-wrapper {
    position: relative;
}

.select-field {
    appearance: none;
    padding-right: 40px;
    cursor: pointer;
}

.select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #6b7280;
}

.textarea-field {
    resize: vertical;
    min-height: 200px;
    
    font-size: 13px;
    line-height: 1.6;
}

/* Button Styles */
.btn-generate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: auto;
}

.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.btn-generate:active {
    transform: translateY(0);
}

.btn-generate:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-text {
    font-weight: 600;
}

/* Code Editor */
.code-editor {
    flex: 1;
    min-height: 500px;
    border: none;
    border-radius: 0;
}

.code-editor .ace_editor {
    border-radius: 0;
    
}

/* Output Placeholder */
.output-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    background: #f9fafb;
    z-index: 1;
}

.output-placeholder.hidden {
    display: none;
}

.placeholder-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
    opacity: 0.1;
}

.placeholder-text {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin: 0;
}

.placeholder-hint {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .card-columns {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .input-column {
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .output-content {
        min-height: 400px;
    }

    .code-editor {
        min-height: 400px;
    }
}

@media (max-width: 767px) {
    .api-test-generator {
        margin-top: 1.5rem;
    }

    .card-columns {
        min-height: auto;
    }

    .column-header {
        padding: 16px 20px;
    }

    .column-header h2 {
        font-size: 18px;
    }

    .column-content {
        padding: 20px;
        gap: 16px;
    }

    .input-field,
    .select-field,
    .textarea-field {
        padding: 10px 14px;
        font-size: 14px;
    }

    .textarea-field {
        min-height: 180px;
    }

    .btn-generate {
        padding: 12px 20px;
        font-size: 15px;
    }

    .output-content {
        min-height: 350px;
    }

    .code-editor {
        min-height: 350px;
    }

    .placeholder-icon {
        width: 64px;
        height: 64px;
    }

    .placeholder-text {
        font-size: 14px;
    }

    .placeholder-hint {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .column-header {
        padding: 14px 16px;
    }

    .column-content {
        padding: 16px;
    }

    .output-content {
        min-height: 300px;
    }

    .code-editor {
        min-height: 300px;
    }
}

/* Loading State */
.btn-generate.loading {
    position: relative;
    color: transparent;
}

.btn-generate.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

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

/* Copy Success Animation */
.btn-action.copied {
    background: rgba(34, 197, 94, 0.3);
}

.btn-action.copied svg {
    color: #22c55e;
}
