/* ===================================
   PREGNANCY CALCULATOR STYLES
   CalcTechLab Design System
   =================================== */

/* CSS Variables */
:root {
    /* Primary Colors */
    --primary-color: #FF69B4;
    --primary-dark: #E75480;
    --primary-light: #FFB6D9;
    --secondary-color: #9370DB;
    --secondary-dark: #7B68EE;
    
    /* Neutral Colors */
    --text-primary: #2C3E50;
    --text-secondary: #5A6C7D;
    --text-light: #8B9AA8;
    --background: #FFFFFF;
    --background-alt: #F8F9FA;
    --border-color: #E1E8ED;
    
    /* Trimester Colors */
    --first-trimester: #FFB6D9;
    --second-trimester: #B19CD9;
    --third-trimester: #87CEEB;
    
    /* Status Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --info: #3B82F6;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

/* ===================================
   BASE STYLES
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    background: linear-gradient(135deg, #FFF5F7 0%, #F0E6FF 100%);
    line-height: 1.6;
    min-height: 100vh;
    padding: var(--spacing-lg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--background);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

/* ===================================
   HEADER
   =================================== */

.calculator-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: var(--spacing-2xl) var(--spacing-xl);
    text-align: center;
}

.calculator-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 400;
}

/* ===================================
   METHOD TABS
   =================================== */

.method-tabs {
    display: flex;
    background: var(--background-alt);
    border-bottom: 2px solid var(--border-color);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-button {
    flex: 1;
    min-width: 140px;
    padding: var(--spacing-md) var(--spacing-sm);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.tab-button:hover {
    background: rgba(255, 105, 180, 0.05);
    color: var(--primary-color);
}

.tab-button.active {
    background: white;
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.tab-icon {
    font-size: 1.5rem;
}

.tab-label {
    font-size: 0.85rem;
}

/* ===================================
   CALCULATOR SECTION
   =================================== */

.calculator-section {
    padding: var(--spacing-xl);
}

.method-panel {
    display: none;
}

.method-panel.active {
    display: block;
    animation: fadeIn var(--transition-base);
}

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

.method-panel h2 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.method-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    font-size: 1rem;
}

/* ===================================
   FORMS
   =================================== */

.calculator-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: var(--spacing-xl);
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
}

.form-group input[type="date"],
.form-group input[type="number"] {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all var(--transition-base);
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.1);
}

.helper-text {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: var(--spacing-xs);
}

/* Input with Slider */
.input-with-slider {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.input-with-slider input[type="number"] {
    width: 100px;
}

.unit {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Range Slider */
.slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
    outline: none;
    -webkit-appearance: none;
    margin: var(--spacing-sm) 0;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: var(--spacing-xs);
}

/* Dual Input */
.dual-input {
    display: flex;
    gap: var(--spacing-md);
}

.input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* Radio Group */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.radio-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.radio-label:hover {
    border-color: var(--primary-light);
    background: rgba(255, 105, 180, 0.02);
}

.radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.radio-text {
    font-weight: 500;
    color: var(--text-primary);
}

/* Calculate Button */
.calculate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    width: 100%;
    padding: var(--spacing-md) var(--spacing-xl);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.calculate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.calculate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    font-size: 1.3rem;
}

/* ===================================
   RESULTS SECTION
   =================================== */

.results-section {
    display: none;
    padding: var(--spacing-xl);
    background: var(--background-alt);
    border-top: 2px solid var(--border-color);
}

.results-section.show {
    display: block;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.results-header h2 {
    font-size: 2rem;
    color: var(--text-primary);
}

.results-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
}

.action-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Result Cards */
.result-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.result-card:hover {
    box-shadow: var(--shadow-lg);
}

.result-card h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* Key Dates Card */
.dates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.date-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

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

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

/* Status Card */
.status-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.status-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.week-display {
    display: flex;
    align-items: baseline;
    gap: var(--spacing-sm);
}

.week-number,
.day-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

.trimester-badge {
    padding: var(--spacing-sm) var(--spacing-lg);
    background: linear-gradient(135deg, var(--first-trimester) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background var(--transition-base);
}

/* Progress Bar */
.progress-bar {
    position: relative;
    width: 100%;
    height: 40px;
    background: var(--background-alt);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--radius-xl);
    transition: width var(--transition-slow);
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.days-remaining {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.days-remaining span {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.3rem;
}

/* Baby Size Card */
.baby-size-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.baby-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

#baby-canvas {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

.baby-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.size-comparison {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

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

.comparison-item {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.measurements {
    display: flex;
    gap: var(--spacing-xl);
}

.measurement-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

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

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

.development-note {
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.6;
}

/* Timeline Card */
.timeline-container {
    padding: var(--spacing-lg) 0;
}

.timeline-track {
    position: relative;
    display: flex;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.timeline-segment {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-md);
    color: white;
    font-weight: 600;
    position: relative;
}

.first-trimester {
    background: linear-gradient(135deg, var(--first-trimester) 0%, #FFD1E8 100%);
}

.second-trimester {
    background: linear-gradient(135deg, var(--second-trimester) 0%, #C9B8E8 100%);
}

.third-trimester {
    background: linear-gradient(135deg, var(--third-trimester) 0%, #A8D8F0 100%);
}

.segment-label {
    font-size: 1rem;
}

.segment-weeks {
    font-size: 0.8rem;
    opacity: 0.9;
}

.timeline-marker {
    position: absolute;
    top: -10px;
    width: 20px;
    height: 100px;
    background: white;
    border: 3px solid var(--primary-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    transition: left var(--transition-slow);
    z-index: 10;
}

.timeline-marker::after {
    content: '📍';
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
}

/* Important Dates Card */
.important-dates-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.important-date-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background: var(--background-alt);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
    transition: all var(--transition-base);
}

.important-date-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.2);
}

.date-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.date-title {
    font-weight: 600;
    color: var(--text-primary);
}

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

.date-when {
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
    margin-left: var(--spacing-lg);
}

/* Week Navigation Card */
.week-navigation {
    margin-bottom: var(--spacing-lg);
}

.week-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.week-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.week-nav-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.week-nav-btn:disabled {
    background: var(--border-color);
    cursor: not-allowed;
    transform: scale(1);
    opacity: 0.5;
}

.week-display-selector {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.2rem;
    font-weight: 600;
}

.week-dropdown {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    background: white;
    transition: all var(--transition-base);
}

.week-dropdown:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.1);
}

.week-details {
    padding: var(--spacing-xl);
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* Week Info Styling */
.week-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--border-color);
}

.week-info-header h4 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.week-trimester {
    background: linear-gradient(135deg, var(--first-trimester) 0%, var(--primary-color) 100%);
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 600;
}

.week-info-section {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: #FFF5F7;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
}

.week-info-section h5 {
    margin: 0 0 var(--spacing-sm) 0;
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.week-info-section p {
    margin: var(--spacing-xs) 0;
    line-height: 1.6;
    color: var(--text-secondary);
}

.week-info-section strong {
    color: var(--text-primary);
}

/* ===================================
   NOTIFICATIONS
   =================================== */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    color: white;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    max-width: 400px;
    animation: slideIn 0.3s ease-out;
}

.notification-success {
    background: var(--success);
}

.notification-error {
    background: var(--error);
}

.notification-info {
    background: var(--info);
}

.notification-warning {
    background: var(--warning);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ===================================
   CONTENT SECTION
   =================================== */

.content-section {
    padding: var(--spacing-2xl) var(--spacing-xl);
    background: white;
}

.content-article {
    max-width: 900px;
    margin: 0 auto;
}

.content-article h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin: var(--spacing-2xl) 0 var(--spacing-lg);
}

.content-article h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: var(--spacing-xl) 0 var(--spacing-md);
}

.content-article h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin: var(--spacing-lg) 0 var(--spacing-sm);
}

.content-article p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.content-article ul {
    margin: var(--spacing-md) 0;
    padding-left: var(--spacing-xl);
}

.content-article li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

/* FAQ Section */
.faq-section {
    margin-top: var(--spacing-2xl);
}

.faq-item {
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-xl);
    background: var(--background-alt);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
}

.faq-item h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    body {
        padding: 0;
    }
    
    .container {
        border-radius: 0;
    }
    
    .calculator-header h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 0.95rem;
    }
    
    .method-tabs {
        overflow-x: auto;
    }
    
    .tab-button {
        min-width: 100px;
        padding: var(--spacing-sm);
    }
    
    .tab-icon {
        font-size: 1.2rem;
    }
    
    .tab-label {
        font-size: 0.75rem;
    }
    
    .calculator-section,
    .results-section {
        padding: var(--spacing-lg);
    }
    
    .dates-grid {
        grid-template-columns: 1fr;
    }
    
    .baby-size-content {
        grid-template-columns: 1fr;
    }
    
    .week-number,
    .day-number {
        font-size: 2rem;
    }
    
    .comparison-item {
        font-size: 1.5rem;
    }
    
    .timeline-track {
        height: 60px;
    }
    
    .segment-label {
        font-size: 0.8rem;
    }
    
    .segment-weeks {
        font-size: 0.7rem;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .results-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    
    .action-btn {
        flex: 1;
        min-width: 100px;
    }
    
    .measurements {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .important-date-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .date-when {
        margin-left: 0;
        margin-top: var(--spacing-sm);
    }
    
    .week-info-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .week-trimester {
        margin-top: var(--spacing-sm);
    }
    
    .notification {
        left: var(--spacing-md);
        right: var(--spacing-md);
        top: var(--spacing-md);
        max-width: none;
    }
}

@media (max-width: 480px) {
    .calculator-header {
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    .calculator-header h1 {
        font-size: 1.5rem;
    }
    
    .method-panel h2 {
        font-size: 1.3rem;
    }
    
    .results-header h2 {
        font-size: 1.5rem;
    }
    
    .result-card {
        padding: var(--spacing-md);
    }
    
    .result-card h3 {
        font-size: 1.2rem;
    }
    
    .measurements {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .week-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .week-display-selector {
        font-size: 1rem;
    }
    
    .week-dropdown {
        font-size: 0.95rem;
        padding: var(--spacing-xs) var(--spacing-sm);
    }
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .container {
        box-shadow: none;
    }
    
    .method-tabs,
    .calculator-section,
    .results-actions,
    .content-section,
    .week-navigation,
    .action-btn,
    .calculate-btn {
        display: none !important;
    }
    
    .results-section {
        display: block !important;
        background: white;
        padding: var(--spacing-lg);
    }
    
    .result-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--border-color);
        margin-bottom: var(--spacing-lg);
    }
    
    .calculator-header {
        background: white;
        color: var(--text-primary);
        border-bottom: 3px solid var(--primary-color);
    }
    
    .calculator-header h1 {
        color: var(--primary-color);
        text-shadow: none;
    }
    
    .subtitle {
        color: var(--text-secondary);
    }
    
    .week-details {
        page-break-inside: avoid;
    }
}

/* ===================================
   LOADING STATES
   =================================== */

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===================================
   UTILITY CLASSES
   =================================== */

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

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

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

.mb-0 {
    margin-bottom: 0;
}

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

.hidden {
    display: none;
}

.show {
    display: block;
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.gap-sm {
    gap: var(--spacing-sm);
}

.gap-md {
    gap: var(--spacing-md);
}

.gap-lg {
    gap: var(--spacing-lg);
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.bounce {
    animation: bounce 1s infinite;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.shake {
    animation: shake 0.5s;
}

/* ===================================
   CUSTOM SCROLLBAR
   =================================== */

/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-alt);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    transition: background var(--transition-base);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-light) var(--background-alt);
}

/* ===================================
   DARK MODE SUPPORT (Optional)
   =================================== */

@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode */
    /*
    :root {
        --text-primary: #E2E8F0;
        --text-secondary: #CBD5E0;
        --text-light: #A0AEC0;
        --background: #1A202C;
        --background-alt: #2D3748;
        --border-color: #4A5568;
    }
    
    body {
        background: linear-gradient(135deg, #1A202C 0%, #2D3748 100%);
    }
    
    .result-card,
    .calculator-form,
    .week-details {
        background: #2D3748;
        color: #E2E8F0;
    }
    
    input[type="date"],
    input[type="number"],
    select {
        background: #1A202C;
        color: #E2E8F0;
        border-color: #4A5568;
    }
    */
}

/* ===================================
   EMOJI SUPPORT
   =================================== */

.emoji {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
}

/* ===================================
   TOOLTIPS (Optional Enhancement)
   =================================== */

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    text-align: center;
    border-radius: var(--radius-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity var(--transition-base);
    font-size: 0.85rem;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.9) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* ===================================
   ERROR STATES
   =================================== */

.form-group.error input {
    border-color: var(--error);
}

.form-group.error .helper-text {
    color: var(--error);
}

.error-message {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--error);
    border-radius: var(--radius-md);
    color: var(--error);
    margin-top: var(--spacing-md);
}

/* ===================================
   SUCCESS STATES
   =================================== */

.success-message {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid var(--success);
    border-radius: var(--radius-md);
    color: var(--success);
    margin-top: var(--spacing-md);
}

/* ===================================
   SKELETON LOADING (Optional)
   =================================== */

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 1rem;
    margin-bottom: var(--spacing-sm);
}

.skeleton-title {
    height: 2rem;
    width: 60%;
    margin-bottom: var(--spacing-md);
}

.skeleton-card {
    height: 200px;
    width: 100%;
}

/* ===================================
   SPECIAL MILESTONE BADGES
   =================================== */

.milestone-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: white;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    animation: pulse 2s infinite;
}

.milestone-badge::before {
    content: "⭐";
}

/* ===================================
   CALENDAR INTEGRATION STYLES
   =================================== */

.calendar-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
}

.calendar-button:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.calendar-button::before {
    content: "📅";
    font-size: 1.2rem;
}

/* ===================================
   SHARE MODAL (Optional Enhancement)
   =================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn var(--transition-base);
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: var(--spacing-2xl);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    animation: slideUp var(--transition-base);
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.modal-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color var(--transition-base);
}

.modal-close:hover {
    color: var(--error);
}

.modal-body {
    margin-bottom: var(--spacing-lg);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-md);
}

/* ===================================
   ADDITIONAL ENHANCEMENTS
   =================================== */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background: var(--primary-light);
    color: white;
}

::-moz-selection {
    background: var(--primary-light);
    color: white;
}

/* Prevent text selection on buttons */
button,
.tab-button,
.action-btn,
.calculate-btn {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Link styling in content */
.content-article a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color var(--transition-base);
}

.content-article a:hover {
    border-bottom-color: var(--primary-color);
}

/* Table styling (if needed) */
table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-lg) 0;
}

th,
td {
    padding: var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: var(--background-alt);
    font-weight: 600;
    color: var(--text-primary);
}

tr:hover {
    background: rgba(255, 105, 180, 0.02);
}

/* Code blocks (if needed) */
code {
    background: var(--background-alt);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--primary-color);
}

pre {
    background: var(--background-alt);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: var(--spacing-lg) 0;
}

pre code {
    background: none;
    padding: 0;
}

/* ===================================
   PERFORMANCE OPTIMIZATIONS
   =================================== */

/* Prevent layout shifts */
.result-card,
.baby-visual,
#baby-canvas {
    contain: layout style paint;
}

/* GPU acceleration for animations */
.calculate-btn,
.action-btn,
.tab-button,
.timeline-marker {
    will-change: transform;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===================================
   END OF STYLES
   =================================== */

