/* Pregnancy Due Date Calculator - Light Theme */

/* Method Selection */

/* Dark mode overrides */
[data-theme="dark"] {
    --tool-bg: #0f172a;
    --tool-border: #334155;
    --tool-border-hover: #475569;
    --tool-text: #f8fafc;
    --tool-text-secondary: #94a3b8;
    --tool-input-bg: #1e293b;
    --tool-input-border: #334155;
    --tool-button-bg: #1e293b;
    --tool-button-hover: #334155;
    --tool-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
    --tool-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --surface-color: #1e293b;
    --surface-hover: #334155;
    --background-color: #0f172a;
    --text-color: #f8fafc;
    --status-info: rgba(96, 165, 250, 0.2);
    --status-success: rgba(34, 197, 94, 0.2);
    --status-error: rgba(248, 113, 113, 0.2);
    --bg-color: #0f172a;
}

/* Dark mode element overrides */
[data-theme="dark"] .tool-card {
    background: var(--bg-card, #1e293b);
    border-color: var(--border-color, #334155);
}

[data-theme="dark"] .tool-hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background: var(--input-bg, #1e293b);
    color: var(--text-primary, #f8fafc);
    border-color: var(--border-color, #334155);
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: var(--text-muted, #64748b);
}

[data-theme="dark"] .tab-btn.active {
    color: white;
}

[data-theme="dark"] label {
    color: var(--text-primary, #f8fafc);
}

[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3,
[data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6 {
    color: var(--text-primary, #f8fafc);
}

[data-theme="dark"] p {
    color: var(--text-secondary, #cbd5e1);
}
.method-selection {
    margin-bottom: 2rem;
}

.method-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.method-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--card-bg);
}

.method-option:hover {
    border-color: var(--primary-color);
    background: var(--hover-bg);
}

.method-option.active {
    border-color: var(--primary-color);
    background: var(--primary-color-alpha);
}

.method-icon {
    font-size: 2.5rem;
    width: 60px;
    text-align: center;
}

.method-info {
    flex: 1;
}

.method-info h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.method-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Method Forms */
.method-form {
    display: none;
}

.method-form.active {
    display: block;
}

.weeks-days-input {
    display: flex;
    gap: 1rem;
}

.weeks-days-input > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.weeks-days-input input {
    width: 100%;
}

.weeks-days-input label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
}

/* Results Section */
.results-section {
    display: none;
}

.results-section.visible {
    display: block;
}

/* Due Date Display */
.due-date-display {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.due-date-main {
    flex: 1;
}

.due-date-main h2 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.due-date-value {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.due-date-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.due-date-meta span {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Pregnancy Progress */
.pregnancy-progress {
    position: relative;
}

.progress-circle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-bg {
    stroke: var(--border-color);
    opacity: 0.3;
}

.progress-ring-progress {
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 1s ease-in-out;
    stroke-linecap: round;
}

.progress-text {
    position: absolute;
    text-align: center;
}

.progress-text span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.progress-text small {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Important Dates */
.important-dates {
    margin-bottom: 2rem;
}

.important-dates h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.dates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.date-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.date-icon {
    font-size: 2rem;
    width: 50px;
    text-align: center;
}

.date-info h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.date-info span {
    color: var(--primary-color);
    font-weight: 600;
}

/* Trimester Information */
.trimester-info {
    margin-bottom: 2rem;
}

.trimester-info h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.trimester-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.trimester-tab {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    font-weight: 500;
}

.trimester-tab:hover {
    color: var(--text-color);
}

.trimester-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.trimester-content {
    display: none;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.trimester-content.active {
    display: block;
}

.trimester-overview h4 {
    color: var(--text-color);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.trimester-overview p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.development-milestones h5 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.development-milestones ul {
    list-style: none;
    padding: 0;
}

.development-milestones li {
    color: var(--text-muted);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.development-milestones li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Checklist */
.checklist {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--hover-bg);
    border-radius: 8px;
}

.checklist-icon {
    font-size: 1.2rem;
}

.checklist-item span:last-child {
    color: var(--text-color);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .method-option {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .method-icon {
        width: auto;
    }
    
    .due-date-display {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .due-date-value {
        font-size: 2.2rem;
    }
    
    .dates-grid {
        grid-template-columns: 1fr;
    }
    
    .trimester-tabs {
        flex-wrap: wrap;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .weeks-days-input {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .due-date-value {
        font-size: 1.8rem;
    }
    
    .trimester-content {
        padding: 1.5rem;
    }
}


