/* assets/css/tailwind-fixes.css */
/* 自定义颜色和缺失的 Tailwind 类 */

:root {
    --primary: #1E40AF;
    --secondary: #3B82F6;
    --accent: #93C5FD;
    --neutral: #F3F4F6;
}

/* 自定义颜色类 */
.bg-primary { background-color: var(--primary); }
.text-primary {
    color: var(--primary) !important;
}
.border-primary { border-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.text-secondary { color: var(--secondary); }
.bg-accent { background-color: var(--accent); }
.bg-neutral { background-color: var(--neutral); }
.bg-white { 
    background-color: white !important; 
}
.bg-gray-50 { 
    background-color: #f9fafb !important;
}

/* 自定义工具类 */
.content-auto { content-visibility: auto; }
.card-shadow { 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.loading-overlay { backdrop-filter: blur(2px); }

/* 悬停效果 */
.hover\:bg-primary\/90:hover { background-color: rgba(30, 64, 175, 0.9); }
.hover\:bg-gray-100:hover { background-color: #F3F4F6 !important; }
.hover\:text-primary\/80:hover { color: rgba(30, 64, 175, 0.8); }
.hover\:text-secondary\/80:hover { color: rgba(59, 130, 246, 0.8); }
.hover\:text-green-800:hover { color: #166534; }
.hover\:text-red-700:hover { color: #B91C1C; }

/* 焦点效果 */
.focus\:ring-2:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-primary\/50:focus { outline-color: rgba(30, 64, 175, 0.5); }
.focus\:border-primary:focus { border-color: var(--primary); }
.focus\:outline-none:focus { outline: none; }

/* 透明度 */
.bg-black\/30 { background-color: rgba(0, 0, 0, 0.3); }

/* 确保所有必要的类都有定义 */
.hidden { display: none; }
.flex { display: flex; }
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-50 { z-index: 50; }
.z-10 { z-index: 10; }
.container { width: 100%; max-width: 1200px; margin-left: auto; margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.gap-4 { gap: 1rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.border { border-width: 1px; }
.border-gray-300 { border-color: #D1D5DB; }
.border-t-2 { border-top-width: 2px; }
.border-b-2 { border-bottom-width: 2px; }
.text-white { color: white; }
.text-gray-800 { color: #1F2937; }
.text-gray-700 { color: #374151; }
.text-gray-600 { color: #4B5563; }
.text-gray-500 { color: #6B7280; }
.text-gray-400 { color: #9CA3AF; }
.text-red-500 { color: #EF4444; }
.text-green-600 { color: #059669; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.whitespace-nowrap { white-space: nowrap; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.overflow-x-auto { overflow-x: auto; }
.divide-y > * + * { border-top: 1px solid #E5E7EB; }
.divide-gray-200 > * + * { border-top-color: #E5E7EB; }
.w-full { width: 100%; }
.w-20 { width: 5rem; }
.w-64 { width: 16rem; }
.h-20 { height: 5rem; }
.h-12 { height: 3rem; }
.max-w-md { max-width: 28rem; }
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.transform { transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }
.translate-y-1\/2 { --tw-translate-y: 50%; }
.-translate-y-1\/2 { --tw-translate-y: -50%; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.inline-flex { display: inline-flex; }
.inline-block { display: inline-block; }
.block { display: block; }
.animate-spin { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.disabled\:opacity-50:disabled { opacity: 0.5; }

/* 响应式设计 */
@media (min-width: 768px) {
    .md\:flex-row { flex-direction: row; }
    .md\:items-center { align-items: center; }
    .md\:w-64 { width: 16rem; }
}

/* 修复导航栏中按钮的可见性 - 在文件末尾添加 */
nav .bg-white {
    background-color: white !important;
    border: 1px solid #e5e7eb !important;
}

nav .text-primary {
    color: var(--primary) !important;
    font-weight: 500 !important;
}

/* 确保悬停效果明显 */
nav .hover\:bg-gray-100:hover {
    background-color: #f8fafc !important;
    border-color: var(--primary) !important;
}