/* 基础样式 */
.text-success { color: #31c27c !important; }
.border-success { border-color: #31c27c !important; }
.btn-success { 
    background-color: #31c27c !important;
    border-color: #31c27c !important; 
    transition: all 0.2s ease;
}
.btn-outline-success {
    color: #31c27c;
    border-color: #31c27c;
    transition: all 0.2s ease;
}
.btn-outline-success:hover {
    background-color: #31c27c;
    border-color: #31c27c;
    color: white;
}

/* 响应区域 */
#response-output, #response-headers {
    /*height: 60vh;*/
    overflow: auto;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* 动态行样式 */
.param-row, .header-row {
    transition: opacity 0.2s ease;
}
.remove-row {
    transition: transform 0.2s ease;
}
.remove-row:hover {
    transform: scale(1.1);
}

/* 卡片样式 */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.05);
    margin-bottom: 1rem;
}
.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0,0,0,.1);
    font-weight: 500;
}

/* 容器布局 */
.container {
    /*padding-top: 80px;*/
    max-width: 1200px;
}

/* 验证提示 */
.invalid-tooltip {
    position: absolute;
    top: 100%;
    z-index: 5;
    display: none;
    max-width: 100%;
    padding: 0.25rem 0.5rem;
    margin-top: 0.1rem;
    font-size: 0.875rem;
    color: #fff;
    background-color: rgba(220,53,69,.9);
    border-radius: 0.25rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

.is-invalid .invalid-tooltip {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .container {
        padding-top: 60px;
        padding: 0 10px;
    }
    
    #response-output, #response-headers {
        /*height: 50vh;*/
        font-size: 0.75rem;
        padding: 0.5rem;
    }
    
    .card-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

/* Toast提示 */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 250px;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.9) !important;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

.text-bg-success {
    background-color: rgba(49, 194, 124, 0.15);
    color: #31c27c;
}

.text-bg-danger {
    background-color: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

/* 复制按钮 */
.copy-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
}

/* Tab切换样式 */
.btn-group-sm > .btn.active {
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.05);
}