@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMu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) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* More specific CSS for ingredient row color coding */
.mud-table-container .mud-table tbody tr.ingredient-row-default {
    background-color: rgba(121, 85, 72, 0.06) !important;
    border-left: 3px solid rgba(121, 85, 72, 0.3) !important;
}

.mud-table-container .mud-table tbody tr.ingredient-row-modified {
    background-color: rgba(255, 152, 0, 0.08) !important;
    border-left: 3px solid rgba(255, 152, 0, 0.4) !important;
}

.mud-table-container .mud-table tbody tr.ingredient-row-personal {
    background-color: rgba(33, 150, 243, 0.06) !important;
    border-left: 3px solid rgba(33, 150, 243, 0.4) !important;
}

/* Ensure hover still works but keeps some color distinction */
.mud-table-container .mud-table tbody tr.ingredient-row-default:hover {
    background-color: rgba(121, 85, 72, 0.12) !important;
}

.mud-table-container .mud-table tbody tr.ingredient-row-modified:hover {
    background-color: rgba(255, 152, 0, 0.15) !important;
}

.mud-table-container .mud-table tbody tr.ingredient-row-personal:hover {
    background-color: rgba(33, 150, 243, 0.12) !important;
}

.ice-cream-chart-container {
    width: 100%;
    position: relative;
    min-width: 0;
    overflow: hidden;
}

    .ice-cream-chart-container canvas {
        width: 100% !important;
        height: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .ice-cream-chart-container {
        min-height: 200px; /* Minimum height on mobile */
    }

    /* Ensure chart containers can shrink */
    .mud-card-content {
        min-width: 0;
        overflow: hidden;
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .ice-cream-chart-container {
        min-height: 180px;
    }
}

/* Recipe data tooltip styling */
.recipe-data-tooltip .mud-tooltip {
    background-color: rgba(70, 70, 200, 0.8) !important;
    color: white !important;
    border: none !important;
}

.recipe-data-tooltip .mud-tooltip-arrow {
    border-top-color: rgba(70, 70, 200, 0.8) !important;
}

.custom-data-tooltip {
    position: fixed;
    background-color: rgba(70, 70, 200, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    max-width: 200px;
    z-index: 1000;
    pointer-events: none;
    transform: translateX(-50%) translateY(-100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

    .custom-data-tooltip::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        margin-left: -5px;
        border-width: 5px;
        border-style: solid;
        border-color: rgba(70, 70, 200, 0.8) transparent transparent transparent;
    }


/* ============================================
   ICE CREAM CALCULATOR - HELP SYSTEM STYLES
   Consolidated version with minimal classes
   ============================================ */

/* Primary card style - used for most help content */
.help-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f5e8 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
}

    .help-card:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    }

    /* Clickable variant */
    .help-card.clickable {
        cursor: pointer;
    }

        .help-card.clickable:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.12);
        }

/* Header card - lighter green gradient */
.help-header-card {
    background: linear-gradient(135deg, #fafafa 0%, #e8f5e8 100%);
    border-radius: 12px;
}

/* External link card - purple tint */
.help-external-card {
    background: linear-gradient(135deg, #fafafa 0%, #f0f0ff 100%);
    border-radius: 12px;
}

/* App Installation specific cards */
.platform-card {
    transition: all 0.3s ease;
    border-radius: 12px;
    border-left: 4px solid transparent;
}

    .platform-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    }

    .platform-card.windows {
        border-left-color: #0078d4;
        background: linear-gradient(135deg, #fafafa 0%, #e3f2fd 20%, #ffffff 100%);
    }

    .platform-card.mac {
        border-left-color: #007aff;
        background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 20%, #ffffff 100%);
    }

    .platform-card.android {
        border-left-color: #34a853;
        background: linear-gradient(135deg, #fafafa 0%, #e8f5e8 20%, #ffffff 100%);
    }

    .platform-card.ios {
        border-left-color: #ff9500;
        background: linear-gradient(135deg, #fafafa 0%, #fff3e0 20%, #ffffff 100%);
    }

.app-install-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    border-radius: 12px;
}

.benefits-card {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border-radius: 12px;
}

.faq-card {
    background: linear-gradient(135deg, #fff3e0 0%, #fafafa 100%);
    border-radius: 12px;
}

/* Step indicators */
.step-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-number {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .help-header h3 {
        font-size: 1.5rem !important;
    }

    .help-header .mud-typography-body1 {
        font-size: 0.875rem !important;
        line-height: 1.3 !important;
    }

    .help-card {
        padding: 16px !important;
    }

        .help-card .mud-typography-h5 {
            font-size: 1.1rem !important;
        }

        .help-card .mud-typography-body2 {
            font-size: 0.875rem !important;
            line-height: 1.3 !important;
        }

    .step-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .step-number {
        width: 20px;
        height: 20px;
        font-size: 0.75rem;
    }

    .platform-card {
        margin-bottom: 1rem;
    }
}