* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Calculator Main */
.calculator-main {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    animation: slideUp 0.6s ease-out;
}

.calculator-header {
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    color: white;
    padding: 30px;
    text-align: center;
}

.calculator-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.calculator-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.calculator-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0;
    min-height: 600px;
}

.input-section {
    padding: 30px;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
}

.results-section {
    padding: 30px;
    background: white;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Form Styles */
.form-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
}

.form-card h2 {
    color: #e91e63;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    border-bottom: 2px solid #e91e63;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    color: #6c757d;
    z-index: 1;
}

.input-with-icon input {
    padding-left: 40px;
}

input, select {
    width: 100%;
    padding: 14px 15px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

input:focus, select:focus {
    outline: none;
    border-color: #e91e63;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.input-options {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.option-btn {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.option-btn.active {
    background: #e91e63;
    color: white;
    border-color: #e91e63;
}

/* Week Selector */
.week-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
}

.week-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e91e63;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e91e63;
}

.week-btn:hover {
    background: #e91e63;
    color: white;
}

.week-display {
    text-align: center;
    min-width: 80px;
}

.week-display span:first-child {
    font-size: 2rem;
    font-weight: bold;
    color: #e91e63;
    display: block;
}

.week-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 600;
}

.week-slider {
    width: 100%;
    margin-top: 15px;
}

.btn-primary {
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    color: white;
    margin-top: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.3);
}

/* Quick Info */
.quick-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.info-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid #e91e63;
    animation: fadeIn 0.5s ease-out;
}

.info-card i {
    font-size: 1.5rem;
    color: #e91e63;
}

.info-card h4 {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.info-card span {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
}

/* Development Card */
.development-card, .mother-card, .timeline-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
    animation: slideInRight 0.6s ease-out;
}

.development-card h2, .mother-card h2, .timeline-card h2 {
    color: #e91e63;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.baby-info {
    display: grid;
    gap: 20px;
}

.baby-size {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(135deg, #fce4ec, #f8bbd9);
    border-radius: 12px;
    border: 2px solid #f8bbd9;
}

.size-comparison {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #e91e63;
}

.size-comparison i {
    font-size: 2rem;
}

.size-details {
    display: flex;
    gap: 20px;
}

.size-item {
    text-align: center;
}

.size-item span {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.size-item strong {
    font-size: 1.1rem;
    color: #2c3e50;
}

.development-milestones h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1rem;
}

.development-milestones ul {
    list-style: none;
}

.development-milestones li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f2f6;
    display: flex;
    align-items: center;
    gap: 10px;
}

.development-milestones li:last-child {
    border-bottom: none;
}

.development-milestones i {
    color: #4caf50;
}

/* Mother's Changes */
.symptoms-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.symptom-item {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease;
}

.symptom-item:hover {
    transform: translateY(-3px);
}

.symptom-item i {
    font-size: 1.5rem;
    color: #e91e63;
    margin-bottom: 10px;
    display: block;
}

.symptom-item span {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.symptom-list {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.4;
}

/* Timeline Card */
.progress-timeline {
    margin-bottom: 20px;
}

.timeline-bar {
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #e91e63, #9c27b0);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.timeline-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 600;
}

.progress-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-item span {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.stat-item strong {
    font-size: 1.2rem;
    color: #e91e63;
}

/* Explore Tools Section */
.explore-tools-section {
    margin-top: 50px;
    animation: slideUp 0.8s ease-out 0.4s both;
}

.explore-tools-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.tool-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #e91e63, #9c27b0);
}

.tool-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.8rem;
}

.tool-card h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.tool-card p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.tool-link {
    display: inline-block;
    padding: 10px 20px;
    background: transparent;
    color: #e91e63;
    text-decoration: none;
    border: 2px solid #e91e63;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tool-link:hover {
    background: #e91e63;
    color: white;
    transform: translateX(5px);
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .calculator-content {
        grid-template-columns: 1fr;
    }
    
    .input-section {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
}

@media (max-width: 768px) {
    .calculator-header h1 {
        font-size: 1.8rem;
    }
    
    .symptoms-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-stats {
        grid-template-columns: 1fr;
    }
    
    .baby-size {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .input-section, .results-section {
        padding: 20px;
    }
}