:root {
    --primary-color: #e84e7a;
    --secondary-color: #5c3a6d;
    --light-color: #f9eef2;
    --dark-color: #333;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #fafafa;
    color: var(--dark-color);
    line-height: 1.6;
    padding: 0;
    margin: 0;
}

.pregnancy-calculator-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.pregnancy-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 30px 0;
    text-align: center;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.pregnancy-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.pregnancy-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.calculator-form, .result, .week-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}

.calculator-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.form-group input[type="date"] {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background-color: #f5f5f5;
}

#calculateButton {
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    background-color: var(--primary-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#calculateButton:hover {
    background-color: #d13c67;
}

.result h3 {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.result p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.result strong {
    color: var(--primary-color);
    font-weight: bold;
}

.week-card h3 {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.week-card p {
    text-align: justify;
    margin-bottom: 20px;
}

.baby-size {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
    background-color: var(--light-color);
    padding: 15px;
    border-radius: 10px;
}

.baby-size-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    font-size: 30px;
}

.pregnancy-footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    color: var(--dark-color);
    font-size: 0.9rem;
}

/* وسائط متجاوبة */
@media (max-width: 768px) {
    .pregnancy-header h1 {
        font-size: 1.8rem;
    }
    
    .pregnancy-header p {
        font-size: 1rem;
    }
    
    .calculator-form, .result, .week-card {
        padding: 20px 15px;
    }
    
    .result-item {
        flex-direction: column;
        text-align: center;
    }
    
    .result-title {
        margin-bottom: 5px;
    }
    
    .baby-size {
        flex-direction: column;
        text-align: center;
    }
    
    .baby-size-icon {
        margin: 10px 0;
    }
}

@media (max-width: 480px) {
    .pregnancy-header h1 {
        font-size: 1.5rem;
    }
    
    .pregnancy-header p {
        font-size: 0.9rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    #calculateButton {
        font-size: 1rem;
    }
    
    .result p {
        font-size: 1rem;
    }
}