/* Tailwind配置扩展 - 会被Tailwind CLI处理 */
@layer utilities {
    .content-auto {
        content-visibility: auto;
    }
    .card-shadow {
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    }
    .input-focus {
        @apply focus:ring-2 focus:ring-primary/50 focus:border-primary focus:outline-none;
    }
    .tooltip {
        position: relative;
        display: inline-block;
    }
    .tooltip .tooltip-text {
        visibility: hidden;
        width: 200px;
        background-color: #333;
        color: #fff;
        text-align: center;
        border-radius: 6px;
        padding: 5px;
        position: absolute;
        z-index: 1;
        bottom: 125%;
        left: 50%;
        transform: translateX(-50%);
        opacity: 0;
        transition: opacity 0.3s;
        font-size: 12px;
        font-weight: normal;
    }
    .tooltip:hover .tooltip-text {
        visibility: visible;
        opacity: 1;
    }
    /* 移动端表格优化 */
    .mobile-table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }
}

/* 自定义颜色变量 */
:root {
    --color-primary: #3b82f6;
    --color-secondary: #10b981;
    --color-accent: #f59e0b;
    --color-danger: #ef4444;
    --color-dark: #1e293b;
    --color-light: #f8fafc;
}

/* 基础样式 */
body {
    font-family: 'Inter', system-ui, sans-serif;
}

/* 动画效果 */
.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

/* 深色模式支持 */
.dark-mode {
    background-color: #1a202c;
    color: #f7fafc;
}

.dark-mode .bg-white {
    background-color: #2d3748;
}

.dark-mode .text-gray-800 {
    color: #f7fafc;
}

.dark-mode .text-gray-600 {
    color: #e2e8f0;
}

.dark-mode .text-gray-500 {
    color: #cbd5e0;
}

.dark-mode .border-gray-200 {
    border-color: #4a5568;
}

.dark-mode .border-gray-100 {
    border-color: #4a5568;
}

.dark-mode .bg-gray-100 {
    background-color: #4a5568;
}

.dark-mode .bg-gray-200 {
    background-color: #4a5568;
}

.dark-mode .hover:bg-gray-50:hover {
    background-color: #4a5568;
}
    