.pregnancy-calculator-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.pregnancy-calculator-container h1 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.calculator-form {
    background-color: #f9f9f9;
    padding: 20px;
    border: 1px solid #000;
    border-radius: 8px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
    
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #000;
    border-radius: 4px;
    box-sizing: border-box;
}

.date-inputs select, .date-inputs input {
    padding: 8px;
    border: 1px solid #000;
    border-radius: 4px;
    font-size: 14px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.calculate-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 10px 0;
    cursor: pointer;
    border-radius: 4px;
    width: 100%;
}

.calculate-button:hover {
    background-color: #45a049;
}

.result-container {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.result-container h2 {
    color: #333;
    margin-top: 0;
}


/* Previous styles remain the same until .pregnancy-table */

.pregnancy-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
}

.pregnancy-table th {
    background-color: #87CEEB; /* Sky blue */
    color: #333;
    padding: 10px;
    text-align: left;
    position: sticky;
    top: 0;
}

.pregnancy-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.pregnancy-table tr.current-week {
    background-color: #e6f7ff;
}

.pregnancy-table tr.current-week td {
    font-weight: bold;
}

/* Milestone highlighting */
.pregnancy-table td:nth-child(4) {
    background-color: #FFE4B5; /* Light orange */
    font-style: italic;
}

/* Progress Bar Styles */
.progress-section {
    margin: 20px 0;
}

.progress-container {
    width: 100%;
    background-color: #f1f1f1;
    border-radius: 10px;
    margin: 10px 0 20px;
    overflow: hidden;
}

.progress-bar {
    height: 30px;
    background-color: #4CAF50;
    border-radius: 10px;
    position: relative;
    transition: width 0.5s ease-in-out;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}

/* Result Styles */
.result-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.result-summary p {
    margin: 10px 0;
    line-height: 1.6;
}

.table-container {
    margin: 20px 0;
    overflow-x: auto;
}

.note {
    background-color: #fff9e6;
    padding: 15px;
    border-left: 4px solid #ffcc00;
    margin-top: 20px;
    font-size: 0.9em;
    line-height: 1.5;
}

/* Responsive table */
@media (max-width: 768px) {
    .pregnancy-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .pregnancy-table th, 
    .pregnancy-table td {
        min-width: 120px;
    }
    
    .pregnancy-table td:nth-child(4) {
        white-space: normal;
    }
}

/* Compact view for mobile */
@media (max-width: 480px) {
    .pregnancy-table {
        font-size: 12px;
    }
    
    .pregnancy-table th, 
    .pregnancy-table td {
        padding: 6px;
        min-width: 80px;
    }
}



/* Responsive styles */
@media (max-width: 600px) {
    .date-inputs {
        flex-direction: column;
        gap: 5px;
    }
    
    .month-select, .day-input, .year-input {
        width: 100%;
    }
    
    .pregnancy-table {
        display: block;
        overflow-x: auto;
    }
}