* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
}

.calculator-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
}

p {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.input-group {
    margin-bottom: 25px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: bold;
}

.date-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e1e1;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.date-input:focus {
    outline: none;
    border-color: #667eea;
}

.calculate-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.calculate-btn:active {
    transform: translateY(0);
}

/* Progress Bar Styles */
.progress-section {
    margin-top: 30px;
}

.progress-text {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 10px;
    width: 0%;
    transition: width 6s ease-in-out;
}

.progress-section.active .progress-fill {
    width: 100%;
}

/* Result Section Styles */
.result-section {
    margin-top: 30px;
    animation: fadeIn 0.5s ease-in;
}

.result-card {
    background: linear-gradient(135deg, #f8f9ff, #f0f2ff);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #e1e8ff;
}

.trimester-info {
    margin-bottom: 25px;
}

.trimester-text {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.week-text {
    display: block;
    font-size: 18px;
    color: #666;
}

/* New Trimester Progress Bar */
.trimester-progress-container {
    margin: 30px 0;
}

.trimester-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.trimester-progress-bar {
    width: 100%;
    height: 20px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    margin-bottom: 10px;
}

.trimester-fill {
    height: 100%;
    transition: all 0.8s ease-in-out;
}

.first-trimester {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
}

.second-trimester {
    background: linear-gradient(135deg, #4ecdc4, #6de0d8);
}

.third-trimester {
    background: linear-gradient(135deg, #45b7d1, #67c9e0);
}

.trimester-weeks {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
}

.next-trimester {
    color: #666;
    font-style: italic;
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.calculator-card {
    animation: pulse 2s ease-in-out;
}

/* Utility Classes */
.hidden {
    display: none;
}

.active {
    display: block;
}