/* WageAware 自定义样式 */

/* ========== CSS Reset & Base ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0f172a;
    color: #f8fafc;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.5;
}

/* ========== 滚动条样式 ========== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* ========== 布局工具类 ========== */
.min-h-screen {
    min-height: 100vh;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-1 {
    flex: 1;
}

.grid {
    display: grid;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-cols-7 {
    grid-template-columns: repeat(7, 1fr);
}

.col-span-2 {
    grid-column: span 2;
}

.hidden {
    display: none;
}

.inline-block {
    display: inline-block;
}

.inline-flex {
    display: inline-flex;
}

/* ========== 间距 ========== */
.p-1 {
    padding: 0.25rem;
}

.p-2 {
    padding: 0.5rem;
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-12 {
    padding-left: 3rem;
    padding-right: 3rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-5 {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.pt-6 {
    padding-top: 1.5rem;
}

.pb-2 {
    padding-bottom: 0.5rem;
}

.pb-6 {
    padding-bottom: 1.5rem;
}

.pb-20 {
    padding-bottom: 5rem;
}

.m-2 {
    margin: 0.5rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-10 {
    margin-top: 2.5rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mt-auto {
    margin-top: auto;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

.space-y-2>*+* {
    margin-top: 0.5rem;
}

.space-y-3>*+* {
    margin-top: 0.75rem;
}

.space-y-4>*+* {
    margin-top: 1rem;
}

.space-y-6>*+* {
    margin-top: 1.5rem;
}

.space-y-0\.5>*+* {
    margin-top: 0.125rem;
}

.space-y-1>*+* {
    margin-top: 0.25rem;
}

/* ========== 尺寸 ========== */
.w-2 {
    width: 0.5rem;
}

.w-3 {
    width: 0.75rem;
}

.w-full {
    width: 100%;
}

.h-2 {
    height: 0.5rem;
}

.h-3 {
    height: 0.75rem;
}

.h-full {
    height: 100%;
}

.max-w-xs {
    max-width: 20rem;
}

.max-w-md {
    max-width: 28rem;
}

.max-w-xl {
    max-width: 36rem;
}

.max-h-\[80vh\] {
    max-height: 80vh;
}

.max-h-32 {
    max-height: 8rem;
}

/* 宽高比 */
.aspect-square {
    aspect-ratio: 1 / 1;
}

/* ========== 定位 ========== */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.sticky {
    position: sticky;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.top-0 {
    top: 0;
}

.top-4 {
    top: 1rem;
}

.right-4 {
    right: 1rem;
}

.z-10 {
    z-index: 10;
}

.z-50 {
    z-index: 50;
}

/* ========== 对齐 ========== */
.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

/* ========== 文本 ========== */
.text-center {
    text-align: center;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
    line-height: 1;
}

.font-light {
    font-weight: 300;
}

.font-bold {
    font-weight: 700;
}

.font-mono {
    font-family: ui-monospace, Courier, monospace;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

.tracking-tighter {
    letter-spacing: -0.05em;
}

.text-left {
    text-align: left;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========== 颜色 ========== */
.bg-dark {
    background-color: #0f172a;
}

.bg-surface {
    background-color: #1e293b;
}

.bg-primary {
    background-color: #10b981;
}

.bg-red-600 {
    background-color: #dc2626;
}

.bg-red-500 {
    background-color: #ef4444;
}

.bg-gray-700 {
    background-color: #374151;
}

.bg-gray-600 {
    background-color: #4b5563;
}

.bg-blue-600 {
    background-color: #2563eb;
}

.bg-gray-800\/30 {
    background-color: rgba(31, 41, 55, 0.3);
}

.bg-emerald-900\/20 {
    background-color: rgba(6, 78, 59, 0.2);
}

.text-white {
    color: #ffffff;
}

.text-dark {
    color: #0f172a;
}

.text-primary {
    color: #10b981;
}

.text-emerald-400 {
    color: #34d399;
}

.text-emerald-500 {
    color: #10b981;
}

.text-red-400 {
    color: #f87171;
}

.text-red-500 {
    color: #ef4444;
}

.text-blue-400 {
    color: #60a5fa;
}

.text-yellow-400 {
    color: #facc15;
}

.text-gray-200 {
    color: #e5e7eb;
}

.text-gray-300 {
    color: #d1d5db;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-500 {
    color: #6b7280;
}

/* ========== 边框 ========== */
.border {
    border-width: 1px;
}

.border-2 {
    border-width: 2px;
}

.border-4 {
    border-width: 4px;
}

.border-t {
    border-top-width: 1px;
}

.border-x {
    border-left-width: 1px;
    border-right-width: 1px;
}

.border-b {
    border-bottom-width: 1px;
}

.border-gray-600 {
    border-color: #4b5563;
}

.border-gray-700 {
    border-color: #374151;
}

.border-gray-800 {
    border-color: #1f2937;
}

.border-emerald-500 {
    border-color: #10b981;
}

.border-red-500 {
    border-color: #ef4444;
}

.border-red-900 {
    border-color: #7f1d1d;
}

.border-blue-500 {
    border-color: #3b82f6;
}

.border-yellow-500 {
    border-color: #eab308;
}

.rounded {
    border-radius: 0.25rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-full {
    border-radius: 9999px;
}

/* ========== 不透明度 ========== */
.opacity-30 {
    opacity: 0.3;
}

.opacity-50 {
    opacity: 0.5;
}

/* ========== 阴影 ========== */
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ========== 溢出 ========== */
.overflow-hidden {
    overflow: hidden;
}

.overflow-y-auto {
    overflow-y: auto;
}

/* ========== 动画 ========== */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes pulse-slow {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-pulse-slow {
    animation: pulse-slow 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-in {
    animation: fade-in 0.2s ease-in;
}

/* ========== 过渡 ========== */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

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

.duration-200 {
    transition-duration: 200ms;
}

.duration-1000 {
    transition-duration: 1000ms;
}

/* ========== 特殊效果 ========== */
.backdrop-blur-md {
    backdrop-filter: blur(12px);
}

.bg-dark\/80 {
    background-color: rgba(15, 23, 42, 0.8);
}

.bg-dark\/50 {
    background-color: rgba(15, 23, 42, 0.5);
}

.bg-red-950\/20 {
    background-color: rgba(69, 10, 10, 0.2);
}

.bg-red-900\/20 {
    background-color: rgba(127, 29, 29, 0.2);
}

.bg-red-500\/10 {
    background-color: rgba(239, 68, 68, 0.1);
}

.bg-emerald-500\/10 {
    background-color: rgba(16, 185, 129, 0.1);
}

.border-gray-700\/50 {
    border-color: rgba(55, 65, 81, 0.5);
}

.border-blue-500\/30 {
    border-color: rgba(59, 130, 246, 0.3);
}

.border-red-500\/30 {
    border-color: rgba(239, 68, 68, 0.3);
}

.border-emerald-500\/30 {
    border-color: rgba(16, 185, 129, 0.3);
}

.bg-dark\/90 {
    background-color: rgba(15, 23, 42, 0.9);
}

/* ========== 响应式工具 ========== */
@media (min-width: 768px) {
    .md\\:text-6xl {
        font-size: 3.75rem;
        line-height: 1;
    }

    .md\\:pb-2 {
        padding-bottom: 0.5rem;
    }
}

/* ========== 按钮样式 ========== */
button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

button:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* ========== 输入框样式 ========== */
input[type="text"],
input[type="number"],
input[type="time"],
input[type="date"],
select {
    outline: none;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="time"]:focus,
input[type="date"]:focus,
select:focus {
    outline: 2px solid #10b981;
    outline-offset: 0;
}

input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
}

/* ========== Hover 状态 ========== */
.hover\\:bg-emerald-400:hover {
    background-color: #34d399;
}

.hover\\:bg-red-500:hover {
    background-color: #ef4444;
}

.hover\\:bg-gray-600:hover {
    background-color: #4b5563;
}

/* ========== 节假日管理需要的CSS类 ========== */
.hover\:bg-blue-500:hover {
    background-color: #3b82f6;
}

.hover\\:text-white:hover {
    color: #ffffff;
}

.hover\\:text-gray-300:hover {
    color: #d1d5db;
}

.hover\\:text-blue-400:hover {
    color: #60a5fa;
}

.hover\\:text-emerald-400:hover {
    color: #34d399;
}

.hover\\:text-red-400:hover {
    color: #f87171;
}

.hover\\:text-yellow-400:hover {
    color: #facc15;
}

.hover\\:border-emerald-500:hover {
    border-color: #10b981;
}

.hover\\:border-blue-500:hover {
    border-color: #3b82f6;
}

.hover\\:border-red-500:hover {
    border-color: #ef4444;
}

.hover\\:border-yellow-500:hover {
    border-color: #eab308;
}

.hover\:bg-surface:hover {
    background-color: #1e293b;
}

.hover\:border-primary:hover {
    border-color: #10b981;
}

.hover\:text-red-300:hover {
    color: #fca5a5;
}

/* ========== 自定义组合类 ========== */
.ring-offset-2 {
    box-shadow: 0 0 0 2px #0f172a;
}

.ring-2 {
    box-shadow: 0 0 0 2px #10b981;
}

.ring-emerald-400 {
    box-shadow: 0 0 0 2px #34d399;
}

.focus\\:outline-none:focus {
    outline: none;
}

.focus\\:ring-2:focus {
    box-shadow: 0 0 0 2px #10b981;
}

/* ========== 特殊样式 ========== */
.group:hover .hover\\:shadow-red-500\/30 {
    box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.3);
}

.hover\\:shadow-emerald-500\/50:hover {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
}

.hover\\:shadow-red-500\/30:hover {
    box-shadow: 0 10px 15px -3px rgba(239, 68, 68, 0.3);
}

/* ========== 辅助类 ========== */
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.opacity-50 {
    opacity: 0.5;
}

/* ========== 特定尺寸文本类 ========== */
.text-\[10px\] {
    font-size: 10px;
}

/* ========== Label 样式 ========== */
label {
    display: block;
}