/* CSS Variables for consistent theming */
:root {
    --primary-color: #7868E6;
    --secondary-color: #B8B5FF;
    --accent-color: #E4FBFF;
    --background-color: #EDEEF7;
    --error-color: #FFB4B4;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --border-radius: 12px;
    --shadow-light: 0 2px 10px rgba(120, 104, 230, 0.1);
    --shadow-medium: 0 4px 20px rgba(120, 104, 230, 0.15);
    --shadow-heavy: 0 8px 30px rgba(120, 104, 230, 0.2);
    --transition: all 0.3s ease;
    --paper-texture: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><filter id="paper"><feTurbulence baseFrequency="0.04" numOctaves="5" result="noise"/><feColorMatrix in="noise" type="saturate" values="0"/></filter></defs><rect width="100" height="100" filter="url(%23paper)" opacity="0.4"/></svg>');
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    margin-bottom: 3rem;
    background-color:var(--primary-color);
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-color);
    background-image: var(--paper-texture);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--paper-texture);
    opacity: 0.1;
    pointer-events: none;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: center;
}

.logo-container {
    flex-shrink: 0;
}

.header-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
    transition: var(--transition);
    opacity: 0;
    animation: fadeInLogo 0.8s ease-out forwards;
}

@keyframes fadeInLogo {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-fallback {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: var(--shadow-light);
    animation: fadeInLogo 0.8s ease-out forwards;
}

.header-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.15));
}

.header-text {
    text-align: left;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Navigation */
nav {
    background: var(--white);
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 1rem;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Main content */
main {
    flex: 1;
    padding: 2rem 0;
    
}

/* Calculator Section */
.calculator-section {
    margin-bottom: 3rem;
}

.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.calculator-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--paper-texture);
    opacity: 0.05;
    pointer-events: none;
}

.input-section h2,
.result-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 600;
}

/* Input Groups */
.input-group {
    margin-bottom: 1.5rem;
}

.input-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.input-help {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* Slider */
.slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: var(--accent-color);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: var(--transition);
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.slider::-webkit-slider-thumb:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

/* Select Input */
.select-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--accent-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background: var(--white);
    color: var(--text-dark);
    transition: var(--transition);
}

.select-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(120, 104, 230, 0.1);
}

/* Questions Section */
.questions-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--accent-color);
}

.questions-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.question-group {
    margin-bottom: 1.5rem;
}

fieldset {
    border: none;
    padding: 0;
}

.question-label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-dark);
}

.radio-group {
    display: flex;
    gap: 1rem;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.radio-input {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    margin-right: 0.5rem;
    position: relative;
    transition: var(--transition);
}

.radio-input:checked + .radio-custom {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.radio-input:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Buttons */
.calculate-button,
.save-button,
.clear-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.calculate-button:hover,
.save-button:hover,
.clear-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.calculate-button:active,
.save-button:active,
.clear-button:active {
    transform: translateY(0);
}

.calculate-button {
    width: 100%;
    margin-top: 1rem;
}

.clear-button {
    background: linear-gradient(135deg, var(--error-color), #ff9999);
}

/* Result Section */
.result-section {
    border-left: 3px solid var(--primary-color);
    padding-left: 2rem;
}

.result-content {
    display: grid;
    gap: 1.5rem;
}

.current-size h3,
.next-size h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.size-display {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: var(--shadow-light);
}

.next-size-info {
    background: var(--accent-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.additional-tips {
    background: var(--background-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--accent-color);
}

.additional-tips h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.additional-tips ul {
    margin-left: 1rem;
}

.additional-tips li {
    margin-bottom: 0.25rem;
}

/* Algorithm Statistics Section */
.algorithm-stats-section {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    padding: 2rem;
    margin-top: 2rem;
}

.algorithm-stats-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.stat-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.stat-accuracy {
    font-size: 0.8rem;
    opacity: 0.7;
}

.algorithm-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.action-btn {
    background: var(--accent-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.action-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-1px);
}

/* History Section */
.history-section {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    padding: 2rem;
    margin-top: 2rem;
}

.history-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.history-container {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.history-item {
    background: var(--background-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1rem;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.history-info h4 {
    color: var(--primary-color);
    margin: 0;
}

.history-algorithm {
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white);
}

.history-algorithm.ml {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.history-algorithm.traditional {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

.history-metrics {
    display: flex;
    gap: 1rem;
    margin: 0.5rem 0;
}

.history-ml-score,
.history-confidence {
    font-size: 0.8rem;
    color: var(--text-light);
    background: var(--accent-color);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
}

.history-details {
    font-size: 0.9rem;
    color: var(--text-light);
}

.history-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.delete-history-item {
    background: var(--error-color);
    color: var(--white);
    border: none;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.delete-history-item:hover {
    background: #ff9999;
}

/* FAQ Section */
.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.faq-container {
    display: grid;
    gap: 1rem;
}

.faq-item {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-medium);
}

.faq-question {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem;
    margin: 0;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.faq-question:hover {
    background: var(--secondary-color);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: var(--transition);
}

.faq-question.active::after {
    content: '−';
}

.faq-answer {
    padding: 1rem;
    display: none;
    background: var(--white);
}

.faq-answer p {
    margin-bottom: 0.5rem;
}

.faq-answer ul {
    margin-left: 1rem;
}

.faq-answer li {
    margin-bottom: 0.25rem;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    max-width: 500px;
    width: 90%;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--text-dark);
}

.modal-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--accent-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 1rem;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .header-logo {
        width: 60px;
        height: 60px;
    }
    
    .logo-fallback {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .header-text {
        text-align: center;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .calculator-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .result-section {
        border-left: none;
        border-top: 3px solid var(--primary-color);
        padding-left: 0;
        padding-top: 1.5rem;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .history-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .size-display {
        font-size: 1.5rem;
        padding: 1rem;
    }
    

    

    

}

@media (max-width: 480px) {
    header {
        padding: 1.5rem 0;
    }
    
    .header-content {
        gap: 0.75rem;
    }
    
    .header-logo {
        width: 50px;
        height: 50px;
    }
    
    .logo-fallback {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .calculator-container {
        padding: 1rem;
    }
    
    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }
    
    .faq-question {
        font-size: 1rem;
        padding: 0.75rem;
    }
    
    .faq-answer {
        padding: 0.75rem;
    }
}

/* Print Styles */
@media print {
    .nav-menu,
    .calculate-button,
    .save-button,
    .clear-button,
    .delete-history-item {
        display: none;
    }
    
    .calculator-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .result-section {
        border-left: 2px solid #000;
    }
    
    .size-display {
        background: #f0f0f0 !important;
        color: #000 !important;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --secondary-color: #000060;
        --text-dark: #000000;
        --text-light: #333333;
        --border-radius: 4px;
    }
    
    .slider::-webkit-slider-thumb {
        border: 2px solid #000000;
    }
    
    .radio-custom {
        border-width: 3px;
    }
}

/* Focus Styles for Accessibility */
button:focus,
input:focus,
select:focus,
.nav-link:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Algorithm badges */
.algorithm-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white);
}

.algorithm-badge.ml {
    background: linear-gradient(135deg, #4CAF50, #45a049);
}

.algorithm-badge.traditional {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

/* ML Score and additional info */
.ml-score,
.absorption,
.fit-score {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    display: inline-block;
    margin-right: 0.5rem;
}

/* Enhanced tips with icons */
.tip-item {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.tip-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.2rem;
    width: 1rem;
    height: 1rem;
    background-size: contain;
    background-repeat: no-repeat;
}

.tip-item.tip-warning::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FF9800"><path d="M12 2L1 21h22L12 2zm0 3.17L19.83 19H4.17L12 5.17zM11 16h2v2h-2zm0-6h2v4h-2z"/></svg>');
}

.tip-item.tip-lightbulb::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFC107"><path d="M12 2C8.13 2 5 5.13 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3-5.74 0-3.87-3.13-7-7-7zM9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9v1z"/></svg>');
}

.tip-item.tip-alert::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23F44336"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>');
}

.tip-item.tip-error::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23F44336"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"/></svg>');
}

.tip-item.tip-night::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23673AB7"><path d="M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-3.03 0-5.5-2.47-5.5-5.5 0-1.82.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1z"/></svg>');
}

.tip-item.tip-trend::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%234CAF50"><path d="M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"/></svg>');
}

.tip-item.tip-feeding::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FF9800"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>');
}

.tip-item.tip-activity::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%234CAF50"><path d="M13.49 5.48c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm-3.6 13.9l1-4.4 2.1 2v6h2v-7.5l-2.1-2 .6-3c1.3 1.5 3.3 2.5 5.5 2.5v-2c-1.9 0-3.5-1-4.3-2.4l-1-1.6c-.4-.6-1-1-1.7-1-.3 0-.5.1-.8.1l-5.2 2.2v4.7h2v-3.4l1.8-.7-1.6 8.1-4.9-1-.4 2 7 1.4z"/></svg>');
}

.tip-item.tip-baby::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23E91E63"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>');
}

.tip-item.tip-child::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%233F51B5"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>');
}

.tip-item.tip-robot::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%239C27B0"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>');
}

.tip-item.tip-default::before {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23666"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>');
}

/* Alternatives section */
.alternatives-section {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--accent-color);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary-color);
}

.alternatives-section h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.alternatives-section ul {
    margin-left: 1rem;
}

.alternatives-section li {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

/* Feedback section */
.feedback-section {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--background-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--accent-color);
}

.feedback-section h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.feedback-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.feedback-btn {
    flex: 1;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.feedback-btn.positive {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: var(--white);
}

.feedback-btn.negative {
    background: linear-gradient(135deg, #F44336, #D32F2F);
    color: var(--white);
}

.feedback-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-light);
}

.feedback-thanks {
    text-align: center;
    color: var(--primary-color);
}

.feedback-thanks h4 {
    margin-bottom: 0.5rem;
}







/* Animation for smooth transitions */
.calculator-container,
.history-section,
.faq-item {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
