/* 月经周期页面样式 */

.periodic-record-item {
    transition: all 0.2s ease;
}

.periodic-record-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.periodic-stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.periodic-stat-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.periodic-stat-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* 日历样式 */
.periodic-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.periodic-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.periodic-calendar-day:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

.periodic-calendar-day.period-day {
    background-color: #fecaca;
    color: #991b1b;
    font-weight: 600;
}

.periodic-calendar-day.predicted-day {
    background-color: #dbeafe;
    color: #1e40af;
    font-weight: 500;
}

.periodic-calendar-day.today {
    border: 2px solid #3b82f6;
    font-weight: 700;
}

/* 模态框动画 */
#periodic-modal {
    transition: opacity 0.3s ease;
}

#periodic-modal:not(.hidden) {
    animation: fadeIn 0.3s ease;
}

#periodic-modal .bg-white,
#periodic-modal .dark\:bg-gray-800 {
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* 浮动按钮响应式 */
@media (max-width: 768px) {
    #add-record-btn {
        right: 1rem;
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.5rem;
    }
}

/* Tabs 样式 */
.tab-button {
    transition: all 0.2s ease;
    cursor: pointer;
}

.tab-button.active {
    color: #ec4899;
    border-color: #ec4899;
}

.tab-button:not(.active) {
    color: #6b7280;
}

.tab-content {
    animation: fadeIn 0.3s ease;
}

.tab-content.hidden {
    display: none;
}

/* 女性化、浪漫、精致的页面样式 */
.periodic-page {
    background: linear-gradient(to bottom, #fef7f7 0%, #ffffff 100%);
}

.dark .periodic-page {
    background: linear-gradient(to bottom, #1f1f2e 0%, #111827 100%);
}

/* 统计卡片女性化样式 */
.periodic-stat-card {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 50%, #f9a8d4 100%);
    border: 1px solid rgba(236, 72, 153, 0.2);
    box-shadow: 0 4px 6px -1px rgba(236, 72, 153, 0.1), 0 2px 4px -1px rgba(236, 72, 153, 0.06);
}

.periodic-stat-card:nth-child(2) {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 50%, #ddd6fe 100%);
    border-color: rgba(168, 85, 247, 0.2);
    box-shadow: 0 4px 6px -1px rgba(168, 85, 247, 0.1), 0 2px 4px -1px rgba(168, 85, 247, 0.06);
}

.periodic-stat-card:nth-child(3) {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 50%, #93c5fd 100%);
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.1), 0 2px 4px -1px rgba(59, 130, 246, 0.06);
}

/* 卡片悬停效果 */
.periodic-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(236, 72, 153, 0.2), 0 4px 6px -2px rgba(236, 72, 153, 0.1);
}

/* 浮动按钮女性化样式 */
#add-record-btn {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    box-shadow: 0 10px 25px -5px rgba(236, 72, 153, 0.4), 0 4px 6px -2px rgba(236, 72, 153, 0.2);
}

#add-record-btn:hover {
    background: linear-gradient(135deg, #db2777 0%, #be185d 100%);
    box-shadow: 0 15px 30px -5px rgba(236, 72, 153, 0.5), 0 6px 8px -2px rgba(236, 72, 153, 0.3);
    transform: translateY(-2px) scale(1.05);
}

/* 页面标题样式 */
.periodic-page-title {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 50%, #be185d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 响应式调整 */
@media (max-width: 640px) {
    .periodic-stat-card {
        padding: 1rem;
    }
    
    .periodic-stat-card .text-2xl {
        font-size: 1.5rem;
    }
    
    .tab-button {
        font-size: 0.875rem;
        padding: 0.75rem 0.5rem;
    }
}

