/* Ovulation & Fertility Calculator Styles */

.apple-glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.dark .apple-glass {
    background: rgba(18, 18, 20, 0.7);
}

.apple-card {
    background: #ffffff;
    border: 1px solid #e4e4e7;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.apple-card:hover {
    border-color: rgba(244, 63, 94, 0.3);
    box-shadow: 0 10px 30px -10px rgba(244, 63, 94, 0.12);
}

.dark .apple-card {
    background: rgba(24, 24, 27, 0.65);
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

.dark .apple-card:hover {
    border-color: rgba(244, 63, 94, 0.25);
    box-shadow: 0 10px 30px -10px rgba(244, 63, 94, 0.15);
}

.text-glow {
    text-shadow: 0 0 20px rgba(244, 63, 94, 0.3);
}

/* Timeline & Progress Bar */
.timeline-bar {
    height: 12px;
    background: #e4e4e7;
    border: 1px solid #d4d4d8;
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1.5px 3px rgba(0, 0, 0, 0.08);
}

.dark .timeline-bar {
    background: #27272a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1.5px 3px rgba(0, 0, 0, 0.4);
}

.timeline-fill {
    height: 100%;
    min-width: 8px;
    background: linear-gradient(to right, #0ea5e9, #14b8a6, #10b981, #f43f5e);
    border-radius: 9999px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* Preset Buttons Active State */
.preset-btn.active-preset {
    border-color: rgba(244, 63, 94, 0.5) !important;
    background-color: rgba(244, 63, 94, 0.12) !important;
    box-shadow: 0 0 0 1px rgba(244, 63, 94, 0.3);
}

.dark .preset-btn.active-preset {
    border-color: rgba(244, 63, 94, 0.5) !important;
    background-color: rgba(244, 63, 94, 0.2) !important;
}

/* Calendar Styles */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.calendar-day-header {
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 0;
    color: #71717a;
}

.dark .calendar-day-header {
    color: #a1a1aa;
}

.calendar-cell {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    position: relative;
    transition: all 0.2s ease;
}

.cell-empty {
    pointer-events: none;
    opacity: 0.1;
    color: transparent;
}

.cell-inactive {
    color: #cbd5e1;
    background: transparent;
}

.dark .cell-inactive {
    color: rgba(255, 255, 255, 0.18);
}

.cell-active {
    color: #1e293b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.dark .cell-active {
    color: #f4f4f5;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.cell-active:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.dark .cell-active:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Highlight states */
.cell-period-last {
    background: #ffe4e6 !important;
    color: #e11d48 !important;
    border: 1px solid #fda4af !important;
}

.dark .cell-period-last {
    background: rgba(244, 63, 94, 0.2) !important;
    color: #fb7185 !important;
    border: 1px solid rgba(244, 63, 94, 0.4) !important;
}

.cell-period-predicted {
    background: #fff1f2 !important;
    color: #f43f5e !important;
    border: 1px dashed #fecdd3 !important;
}

.dark .cell-period-predicted {
    background: rgba(244, 63, 94, 0.08) !important;
    color: rgba(251, 113, 133, 0.9) !important;
    border: 1px dashed rgba(244, 63, 94, 0.4) !important;
}

.cell-fertile-low {
    background: #ccfbf1 !important;
    color: #0d9488 !important;
    border: 1px solid #99f6e4 !important;
}

.dark .cell-fertile-low {
    background: rgba(20, 184, 166, 0.15) !important;
    color: #2dd4bf !important;
    border: 1px solid rgba(20, 184, 166, 0.3) !important;
}

.cell-fertile-high {
    background: #d1fae5 !important;
    color: #059669 !important;
    border: 1px solid #a7f3d0 !important;
}

.dark .cell-fertile-high {
    background: rgba(16, 185, 129, 0.2) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
}

.cell-ovulation {
    background: #10b981 !important;
    color: #ffffff !important;
    border: 1px solid #059669 !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.35) !important;
    animation: pulse-green 2s infinite;
}

.cell-pregnancy-test {
    background: #f3e8ff !important;
    color: #7c3aed !important;
    border: 1.5px solid #d8b4fe !important;
}

.dark .cell-pregnancy-test {
    background: rgba(139, 92, 246, 0.2) !important;
    color: #c084fc !important;
    border: 1.5px solid rgba(139, 92, 246, 0.4) !important;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Tool Mode Switch */
.tool-mode-switch {
    background: #f4f4f5;
    border: 1px solid #e4e4e7;
    border-radius: 0.75rem;
}

.dark .tool-mode-switch {
    background: #09090b;
    border-color: rgba(255, 255, 255, 0.08);
}

.tool-mode-switch button.active {
    background: #ffffff;
    color: #e11d48;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.dark .tool-mode-switch button.active {
    background: rgba(244, 63, 94, 0.15);
    color: #f43f5e;
    border: 1px solid rgba(244, 63, 94, 0.25);
}

/* Tooltip text styling */
.ht-tooltip-box {
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* Print Styles */
@media print {
    body {
        background: white !important;
        color: black !important;
    }

    header,
    footer,
    nav,
    #calculator-workspace > div > div:first-child,
    .preset-btn,
    #educational-content,
    .related-tools-section,
    .bg-gradient-to-b,
    .absolute {
        display: none !important;
    }

    #calculator-workspace {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }

    #calculator-workspace > div {
        display: block !important;
    }

    .apple-glass,
    .apple-card {
        background: white !important;
        color: black !important;
        border: 1px solid #e4e4e7 !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        margin-bottom: 2rem !important;
        padding: 1.5rem !important;
        page-break-inside: avoid;
    }
}
