:root {
    --primary: #0c8a8f;
    --secondary: #044244;
    --dark: #2d3748;
    --light: #f7fafc;
    --success: #48bb78;
    --warning: #ed8936;
    --info: #4299e1;
     --danger: #801604;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.language-bar {
    position: sticky;
    top: 10px;
    z-index: 1050;
}


body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f7fa;
    color: var(--dark);
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.subtitle {
    color: #718096;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-title i {
    font-size: 1.3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #4a5568;
}

input, select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

.btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn:hover {
    background-color: #0da1a7;
    color: white;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary);
}

.btn-secondary:hover {
    background-color: #0c8a8f;
}

.result-container {
    display: none;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7eb 100%);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.result-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.result-value {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.result-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.detail-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.detail-label {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 0.25rem;
}

.detail-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
}

.pregnancy-progress {
    margin-top: 2rem;
}

.progress-container {
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 6px;
    transition: width 0.5s ease;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #4a5568;
}

.milestones {
    margin-top: 2rem;
}

.milestone {
    display: flex;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 2.5rem;
}

.milestone:before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.milestone:last-child:before {
    height: 1.5rem;
}

.milestone-icon {
    position: absolute;
    left: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    z-index: 1;
}

.milestone-content {
    flex: 1;
}

.milestone-date {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.milestone-title {
    color: #4a5568;
    font-size: 0.95rem;
}

.milestone.completed .milestone-icon {
    background: var(--success);
}

.milestone.current .milestone-icon {
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.3);
}

.milestone.upcoming .milestone-icon {
    background: #e2e8f0;
    color: #a0aec0;
}

.tips-section {
    margin-top: 2rem;
}

.tips-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tip-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary);
}

.tip-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.tip-content {
    color: #4a5568;
    font-size: 0.95rem;
}

.footer {
    text-align: center;
    margin-top: 3rem;
    color: #718096;
    font-size: 0.9rem;
}

.method-toggle {
    display: flex;
    background: #edf2f7;
    border-radius: 8px;
    padding: 0.25rem;
    margin-bottom: 1.5rem;
}

.method-toggle button {
    flex: 1;
    background: none;
    border: none;
    padding: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.method-toggle button.active {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    color: var(--primary);
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .result-details {
        grid-template-columns: 1fr;
    }
}
