/* Pregnancy Calendar Styles */
.pregnancy-calendar {
    max-width: 1000px;
    margin: 0 auto;
}

.due-date-calculator {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 24px;
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
}

.calculator-form input[type="date"] {
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
}

.due-date-result {
    background: #e3f2fd;
    padding: 16px;
    border-radius: 4px;
    border-left: 4px solid #2196f3;
}

.week-navigation {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 24px;
}

.week-slider input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
}

.week-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #005f6b;
    cursor: pointer;
}

.week-display {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 500;
    margin: 16px 0;
    color: #212121;
}

.trimester {
    font-size: 1rem;
    color: #757575;
    font-weight: 400;
}

.week-buttons {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.week-buttons button {
    flex: 1;
    padding: 12px 24px;
    background: #005f6b;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.week-buttons button:hover:not(:disabled) {
    background: #004a54;
    transform: translateY(-1px);
}

.week-buttons button:disabled {
    background: #bdbdbd;
    cursor: not-allowed;
}

.week-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 24px;
}

.week-header {
    background: linear-gradient(135deg, #005f6b 0%, #b74150 100%);
    color: white;
    padding: 24px;
    text-align: center;
}

.week-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
}

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

.stat-label {
    display: block;
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 4px;
}

.stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 500;
}

.week-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0;
}

.info-card {
    padding: 24px;
    border-bottom: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
}

.info-card:nth-child(even) {
    background: #fafafa;
}

.info-card h3 {
    color: #212121;
    margin-bottom: 16px;
    font-size: 1.125rem;
    font-weight: 500;
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 20px;
}

.info-card li:before {
    content: "•";
    color: #4caf50;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.pregnancy-progress {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    margin: 16px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50 0%, #8bc34a 100%);
    border-radius: 6px;
    transition: width 0.3s ease;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #757575;
}

@media (max-width: 768px) {
    .week-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .week-info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-card {
        border-right: none;
    }
    
    .week-buttons {
        flex-direction: column;
    }
    
    .pregnancy-calendar {
        padding: 0 8px;
    }
}