/* Custom Styles for Age Calculator - Red/White Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #e11d48;
    --primary-muted: rgba(225, 29, 72, 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.dark .custom-scrollbar::-webkit-scrollbar-track {
    background: #1e293b;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb {
    background: #475569;
}

/* Date Picker Indicator adjustments */
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    border-radius: 4px;
}

.dark input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(0.9);
}

/* SEO Content Section Styling */
.ac-seo-content {
    line-height: 1.8;
}

.ac-seo-content h2 {
    transition: color 0.4s ease;
}

.ac-seo-content strong {
    color: var(--primary);
}

.ac-seo-content a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: all 0.2s ease;
}

.ac-seo-content a:hover {
    color: #be123c;
    text-decoration-thickness: 2px;
}

.ac-seo-content img {
    max-width: 100%;
    height: auto;
    border-radius: 1.25rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.dark .ac-seo-content img {
    border: 1px solid #1e293b;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Transitions for interactive elements */
#theme-toggle-icon {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s ease;
}

#theme-toggle:hover #theme-toggle-icon {
    transform: rotate(15deg);
}

#theme-toggle:active #theme-toggle-icon {
    transform: scale(0.9);
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .ac-seo-content h2 {
        font-size: 1.5rem;
    }
}

/* Focus styles */
input:focus {
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.15) !important;
}