/**
 * ConvMaster - Pregnancy Calculator Styles
 * 
 * @package    ConvMaster
 * @version    1.0.0
 */

/* =====================================================
   TOOL PAGE LAYOUT
   ===================================================== */
.tool-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tool-header__icon {
    font-size: 2.5rem;
}

.tool-header__icon .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: var(--bg-tertiary);
}

.tool-header__icon .icon--pink {
    background: rgba(236, 72, 153, 0.15);
}

.tool-header__text h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: var(--text-primary);
}

.tool-header__text p {
    margin: 0;
    color: var(--text-secondary);
}

/* =====================================================
   CURRENT DATE BANNER
   ===================================================== */
.current-date-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(168, 85, 247, 0.1));
    border: 1px solid rgba(236, 72, 153, 0.2);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.current-date-banner__icon {
    font-size: 1.25rem;
}

.current-date-banner__text {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* =====================================================
   PREGNANCY WIDGET
   ===================================================== */
.pregnancy-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* =====================================================
   TOOLBAR
   ===================================================== */
.pregnancy-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    flex-wrap: wrap;
    gap: 1rem;
}

.pregnancy-toolbar__left,
.pregnancy-toolbar__right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Design Selector */
.design-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.design-selector label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.design-buttons {
    display: flex;
    gap: 0.25rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 0.25rem;
}

.design-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.design-btn:hover {
    background: var(--bg-tertiary);
}

.design-btn.active {
    background: var(--bg-card);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Popup Button */
.btn-popup {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ec4899;
    background: rgba(236, 72, 153, 0.1);
    border: 1px solid rgba(236, 72, 153, 0.3);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-popup:hover {
    background: rgba(236, 72, 153, 0.2);
    border-color: #ec4899;
}

.btn-popup__icon {
    font-size: 1rem;
}

/* =====================================================
   PREGNANCY CONTENT
   ===================================================== */
.pregnancy-content {
    padding: 1.5rem;
}

/* =====================================================
   INPUT SECTION
   ===================================================== */
.pregnancy-input {
    max-width: 600px;
    margin: 0 auto;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1.5rem;
}

.input-group {
    margin-bottom: 1.25rem;
}

.input-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Method Selector */
.method-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.method-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.method-btn:hover {
    border-color: rgba(236, 72, 153, 0.4);
    background: var(--bg-secondary);
}

.method-btn.active {
    border-color: #ec4899;
    background: rgba(236, 72, 153, 0.1);
}

.method-btn__icon {
    font-size: 1.5rem;
}

.method-btn__text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.method-btn__desc {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

/* Date Input */
.date-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.date-input:focus {
    outline: none;
    border-color: #ec4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.15);
}

.input-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* Cycle Input */
.cycle-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cycle-input {
    width: 80px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    -moz-appearance: textfield;
}

.cycle-input::-webkit-outer-spin-button,
.cycle-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cycle-input:focus {
    outline: none;
    border-color: #ec4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.15);
}

.cycle-unit {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* System Toggle */
.system-toggle {
    display: flex;
    gap: 0.5rem;
}

.system-btn {
    position: relative;
    flex: 1;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.system-btn:hover {
    background: var(--bg-secondary);
}

.system-btn.active {
    color: #ec4899;
    background: rgba(236, 72, 153, 0.1);
    border-color: #ec4899;
}

.system-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 400;
    color: #fff;
    background: #1f2937;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    z-index: 10;
}

.system-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1f2937;
}

.system-btn:hover .system-tooltip {
    display: block;
}

/* Calculate Button */
.btn-calculate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #ec4899, #a855f7);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-calculate:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.35);
}

.btn-calculate:active {
    transform: translateY(0);
}

/* Error Message */
.error-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: var(--radius-md);
}

.error-message::before {
    content: '⚠️';
}

/* =====================================================
   RESULTS SECTION
   ===================================================== */
.pregnancy-results {
    animation: fadeIn 0.3s ease;
}

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

/* Result Cards Grid */
.pregnancy-results {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* Result Card */
.result-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: all 0.2s ease;
}

.result-card:hover {
    border-color: rgba(236, 72, 153, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.result-card__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.result-card__icon {
    font-size: 1.25rem;
}

.result-card__header h3 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0;
}

.result-card__value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.result-card__sub {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-top: 0.25rem;
}

/* Due Date Card */
.result-card--due {
    grid-column: span 2;
    text-align: center;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(168, 85, 247, 0.1));
    border-color: rgba(236, 72, 153, 0.2);
}

.result-card--due .result-card__header {
    justify-content: center;
}

.result-card--due .result-card__value {
    font-size: 2rem;
    color: #ec4899;
}

/* Week Card */
.result-card--week .result-card__value {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.result-card--week .result-card__value span:first-child {
    font-size: 2rem;
}

.week-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.result-card__progress {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, #ec4899, #a855f7);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: #ec4899;
    min-width: 40px;
    text-align: right;
}

/* Trimester Card */
.trimester-display {
    text-align: center;
}

.trimester-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #ec4899, #a855f7);
    border-radius: 50px;
    margin-bottom: 0.5rem;
}

.trimester-weeks {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* Baby Card */
.baby-info {
    text-align: center;
}

.baby-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.baby-emoji {
    font-size: 2rem;
}

.baby-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.baby-measurements {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.measurement {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.measurement-icon {
    font-size: 0.9rem;
}

.measurement-label {
    font-size: 0.7rem;
    color: var(--text-tertiary);
}

.measurement-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* =====================================================
   TIMELINE
   ===================================================== */
.pregnancy-timeline {
    grid-column: span 2;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.timeline-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem;
}

.timeline-container {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
}

.timeline-segment {
    flex: 1;
    position: relative;
    text-align: center;
}

.timeline-segment__bar {
    height: 8px;
    background: var(--bg-secondary);
    position: relative;
}

.timeline-segment:first-child .timeline-segment__bar {
    border-radius: 4px 0 0 4px;
}

.timeline-segment:last-child .timeline-segment__bar {
    border-radius: 0 4px 4px 0;
}

.timeline-segment__fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #ec4899, #a855f7);
    transition: width 0.5s ease;
}

.timeline-segment:first-child .timeline-segment__fill {
    border-radius: 4px 0 0 4px;
}

.timeline-segment__label {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.timeline-segment__label strong {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.timeline-segment.active .timeline-segment__label strong {
    color: #ec4899;
}

.timeline-marker {
    position: absolute;
    top: -4px;
    width: 16px;
    height: 16px;
    background: #ec4899;
    border: 3px solid var(--bg-card);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 2px 4px rgba(236, 72, 153, 0.3);
}

/* =====================================================
   IMPORTANT DATES
   ===================================================== */
.important-dates {
    grid-column: span 2;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.dates-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem;
}

.dates-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.75rem;
}

.date-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-md);
}

.date-item__icon {
    font-size: 1.25rem;
}

.date-item__info {
    flex: 1;
    min-width: 0;
}

.date-item__name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

.date-item__date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.date-item--past {
    opacity: 0.6;
}

.date-item--past .date-item__icon::after {
    content: ' ✓';
    color: #22c55e;
}

/* =====================================================
   RESET BUTTON
   ===================================================== */
.btn-reset {
    grid-column: span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-reset:hover {
    color: var(--text-primary);
    border-color: var(--text-tertiary);
}

/* =====================================================
   INFO NOTICE
   ===================================================== */
.pregnancy-info {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    margin: 1.5rem 1.5rem 1.5rem;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.pregnancy-info span {
    font-size: 1rem;
    flex-shrink: 0;
}

.pregnancy-info p {
    margin: 0;
    line-height: 1.5;
}

/* =====================================================
   DESIGN VARIATIONS
   ===================================================== */

/* Modern Design */
.pregnancy-content[data-design="modern"] .result-card {
    background: linear-gradient(145deg, var(--bg-tertiary), var(--bg-secondary));
    border: none;
    box-shadow: 3px 3px 6px rgba(0,0,0,0.05), -2px -2px 5px rgba(255,255,255,0.05);
}

.pregnancy-content[data-design="modern"] .result-card--due {
    background: linear-gradient(145deg, rgba(236, 72, 153, 0.15), rgba(168, 85, 247, 0.15));
}

.pregnancy-content[data-design="modern"] .btn-calculate {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    border-radius: 50px;
}

/* Nature Design */
.pregnancy-content[data-design="nature"] {
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.02), transparent);
}

.pregnancy-content[data-design="nature"] .result-card {
    border-color: rgba(34, 197, 94, 0.2);
}

.pregnancy-content[data-design="nature"] .result-card--due {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(16, 185, 129, 0.1));
    border-color: rgba(34, 197, 94, 0.2);
}

.pregnancy-content[data-design="nature"] .result-card--due .result-card__value {
    color: #22c55e;
}

.pregnancy-content[data-design="nature"] .btn-calculate {
    background: linear-gradient(135deg, #22c55e, #10b981);
}

.pregnancy-content[data-design="nature"] .progress-bar__fill {
    background: linear-gradient(90deg, #22c55e, #10b981);
}

.pregnancy-content[data-design="nature"] .trimester-badge {
    background: linear-gradient(135deg, #22c55e, #10b981);
}

.pregnancy-content[data-design="nature"] .progress-text {
    color: #22c55e;
}

/* =====================================================
   SEO CONTENT
   ===================================================== */
.tool-content {
    margin-top: 3rem;
}

.tool-section {
    margin-bottom: 2.5rem;
}

.tool-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem;
}

.tool-section > p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: all 0.2s ease;
}

.feature-card:hover {
    border-color: rgba(236, 72, 153, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.feature-card__icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    position: relative;
}

.step-card__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ec4899, #a855f7);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 0.75rem;
}

.step-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-item summary {
    padding: 1rem 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--text-tertiary);
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    padding: 0 1.25rem 1rem;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =====================================================
   HIDDEN STATE
   ===================================================== */
[hidden] {
    display: none !important;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    .pregnancy-results {
        grid-template-columns: 1fr;
    }
    
    .result-card--due,
    .pregnancy-timeline,
    .important-dates,
    .btn-reset {
        grid-column: span 1;
    }
    
    .method-selector {
        grid-template-columns: 1fr;
    }
    
    .dates-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .tool-page {
        padding: 1rem;
    }
    
    .tool-header {
        flex-direction: column;
        text-align: center;
    }
    
    .tool-header__text h1 {
        font-size: 1.5rem;
    }
    
    .pregnancy-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pregnancy-toolbar__left,
    .pregnancy-toolbar__right {
        justify-content: center;
    }
    
    .pregnancy-content {
        padding: 1rem;
    }
    
    .result-card--due .result-card__value {
        font-size: 1.5rem;
    }
    
    .btn-popup__text {
        display: none;
    }
    
    .features-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .system-toggle {
        flex-direction: column;
    }
    
    .pregnancy-info {
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .design-selector label {
        display: none;
    }
    
    .baby-measurements {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .timeline-segment__label {
        font-size: 0.65rem;
    }
}

/* =====================================================
   POPUP WINDOW STYLES
   ===================================================== */
.popup-pregnancy {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
}

.popup-pregnancy__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    cursor: move;
    position: sticky;
    top: 0;
    z-index: 1;
}

.popup-pregnancy__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.popup-pregnancy__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.popup-pregnancy__close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 9999;
}

/* Dark theme adjustments */
[data-theme="dark"] .date-input {
    color-scheme: dark;
}
