/* 文件: style.css */
/* 描述: 应用的所有CSS样式。 */

body { 
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; 
    -webkit-tap-highlight-color: transparent; 
}

/* Homepage-specific styles */
body.homepage-bg {
    background-color: #0a0a0a;
    color: #d1d5db; /* text-gray-300 */
}

.hero-gradient { 
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.15) 0%, rgba(124, 58, 237, 0.1) 100%); 
}

.feature-card { 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.feature-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2); 
}

.hidden { 
    display: none; 
}

/* Calendar App Styles */
.calendar-day { 
    transition: all 0.2s ease-in-out; 
    position: relative; 
    flex-direction: column; 
    justify-content: flex-start; 
    align-items: center; 
    line-height: 1.2; 
    padding-top: 4px; 
    height: 4.5rem; 
}

.today .day-number { 
    background-color: #1e40af !important; 
    color: white !important; 
}

.other-month { 
    color: #9ca3af; 
}

.calendar-day:not(.empty):not(.other-month):hover .day-number { 
    background-color: #dbeafe; 
}

.calendar-grid { 
    display: grid; 
    grid-template-columns: repeat(7, 1fr); 
}

.event-labels-container { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 2px; 
    margin-top: 2px; 
    pointer-events: none; 
}

.event-label { 
    font-size: 10px; 
    font-weight: 500; 
    padding: 1px 3px; 
    border-radius: 4px; 
    color: white; 
}

.event-label-work { background-color: #3b82f6; }
.event-label-rest { background-color: #22c55e; }
.event-label-overtime { background-color: #ef4444; }
.event-label-leave { background-color: #f97316; }
.event-label-legal_work { background-color: #8b5cf6; } /* 紫色 */

.event-label-future { 
    background-color: #d1d5db !important; 
    color: #4b5563 !important; 
}

.modal.hidden { display: none; }

.day-number { 
    width: 28px; 
    height: 28px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%; 
    transition: all 0.2s ease; 
}

.custom-checkbox:disabled + label { 
    opacity: 0.5; 
    cursor: not-allowed; 
}

#auth-container, #app-container { 
    transition: opacity 0.5s ease-in-out; 
}
