/**
 * Zib License Manager - 前端样式
 */

/* 授权容器 */
.zib-license-container {
    padding: 15px;
}

/* 授权卡片 */
.zib-license-container .zib-widget {
    transition: box-shadow 0.3s ease;
}

.zib-license-container .zib-widget:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 状态标签 */
.zib-license-container .badg {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.zib-license-container .badg.c-green {
    background: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.zib-license-container .badg.c-yellow {
    background: #fffbe6;
    color: #faad14;
    border: 1px solid #ffe58f;
}

.zib-license-container .badg.c-red {
    background: #fff2f0;
    color: #ff4d4f;
    border: 1px solid #ffccc7;
}

/* 授权码样式 */
.zib-license-container code {
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 13px;
}

/* 按钮样式 */
.zib-license-container .but {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: #f0f0f0;
    color: #333;
}

.zib-license-container .but:hover {
    background: #e0e0e0;
}

.zib-license-container .but.c-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.zib-license-container .but.c-blue:hover {
    opacity: 0.9;
}

.zib-license-container .but.hollow {
    background: transparent;
    border: 1px solid #d9d9d9;
}

.zib-license-container .but.hollow:hover {
    border-color: #667eea;
    color: #667eea;
}

.zib-license-container .but.btn-block {
    display: flex;
    width: 100%;
}

.zib-license-container .but-sm {
    padding: 4px 8px;
    font-size: 12px;
}

/* 模态框样式 */
#zib-license-purchase-modal .modal-header,
#zib-license-domain-modal .modal-header,
#zib-license-download-modal .modal-header {
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 20px;
}

#zib-license-purchase-modal .modal-body,
#zib-license-domain-modal .modal-body,
#zib-license-download-modal .modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

/* 产品选择项 */
.zib-license-product-item {
    transition: all 0.3s ease;
}

.zib-license-product-item:hover {
    border-color: #667eea !important;
    background: #f9f9ff;
}

.zib-license-product-item.selected {
    border-color: #667eea !important;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

/* 表单样式 */
.zib-license-container .form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.zib-license-container .form-control:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* 进度条 */
.zib-license-progress {
    background: #f5f5f5;
    border-radius: 4px;
    height: 8px;
    overflow: hidden;
}

.zib-license-progress-bar {
    background: linear-gradient(90deg, #667eea, #764ba2);
    height: 100%;
    transition: width 0.3s ease;
}

/* 空状态 */
.zib-license-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.zib-license-empty-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

/* 网盘信息框 */
.zib-license-netdisk-info {
    background: #f9f9f9;
    border-radius: 4px;
    padding: 12px;
}

.zib-license-netdisk-info .copy-text {
    color: #667eea;
    cursor: pointer;
}

.zib-license-netdisk-info .copy-text:hover {
    text-decoration: underline;
}

/* 响应式 */
@media (max-width: 768px) {
    .zib-license-container .flex.ac.jsb {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .zib-license-container .flex.ac.jsb > div:last-child {
        margin-top: 10px;
    }
}
