/* UUID 生成器专用样式 */

.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
    margin: 0;
}

.radio-label input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.button-container {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 20px 0;
}

.calculate-button {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calculate-button.primary {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: white;
}

.calculate-button.primary:hover {
    background: linear-gradient(135deg, #4338CA 0%, #6D28D9 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.calculate-button.secondary {
    background-color: #6B7280;
    color: white;
}

.calculate-button.secondary:hover {
    background-color: #4B5563;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.display-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    justify-content: center;
}

.display-btn {
    padding: 8px 16px;
    border: 2px solid #E5E7EB;
    background-color: white;
    color: #6B7280;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.display-btn:hover {
    border-color: #4F46E5;
    color: #4F46E5;
}

.display-btn.active {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: white;
    border-color: transparent;
}

.result-view {
    min-height: 200px;
}

.table-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
}

.uuid-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.uuid-table th {
    background-color: #F9FAFB;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #E5E7EB;
    position: sticky;
    top: 0;
    z-index: 1;
}

.uuid-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #F3F4F6;
    vertical-align: middle;
}

.uuid-table tbody tr:hover {
    background-color: #F9FAFB;
}

.uuid-table .uuid-cell {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    color: #1F2937;
    word-break: break-all;
    max-width: 300px;
}

.uuid-table .index-cell {
    width: 60px;
    text-align: center;
    color: #6B7280;
    font-weight: 500;
}

#resultText {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
    min-height: 200px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .button-container {
        flex-direction: column;
    }
    
    .calculate-button {
        min-width: auto;
    }
    
    .display-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .display-btn {
        width: 200px;
        text-align: center;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .uuid-table .uuid-cell {
        max-width: 200px;
        font-size: 12px;
    }
}

/* 滚动条样式 */
.table-container::-webkit-scrollbar {
    width: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: #F3F4F6;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

/* 动画效果 */
.result-view {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 复制成功提示 */
.copy-success {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10B981;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #6B7280;
}

.empty-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 500;
}

.empty-state p {
    margin: 0;
    font-size: 14px;
}