﻿:root {
    --color-primary: #86A789;
    --color-primary-hover: #759678;
    --color-accent-red: #C57070;
    --color-background-dark: #111214;
    --color-surface-dark: #1c1c1c;
    --color-border-dark: #2e3136;
    --color-text-secondary: #a0a0a0;
    --color-muted-red: #cf8e8e;
    --color-muted-gold: #e0bb75;
}

html, body {
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    min-height: 100%;
}

body {
    background-color: var(--color-background-dark);
    color: #fff;
}

h1:focus,
h2:focus,
h3:focus,
h4:focus,
h5:focus,
h6:focus {
    outline: none;
}

.validation-message {
    color: var(--color-accent-red);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.priceradar-password {
    -webkit-text-security: disc;
    text-security: disc;
}

.priceradar-scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.priceradar-scrollbar::-webkit-scrollbar-track {
    background: var(--color-background-dark);
}

.priceradar-scrollbar::-webkit-scrollbar-thumb {
    background: var(--color-border-dark);
    border-radius: 4px;
}

.priceradar-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #3f3f46;
}

.priceradar-no-select {
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.priceradar-no-select::selection {
    background: transparent;
    color: inherit;
}

.priceradar-no-select::-moz-selection {
    background: transparent;
    color: inherit;
}

#blazor-error-ui {
    background: #fef3c7;
    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;
}

.priceradar-toast-container {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.priceradar-toast {
    pointer-events: auto;
    min-width: 240px;
    max-width: 360px;
    background-color: rgba(20, 21, 23, 0.95);
    color: #f8fafc;
    border: 1px solid #3a3f46;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    animation: priceradar-toast-in 0.2s ease-out, priceradar-toast-out 0.2s ease-in 3.2s forwards;
}

.priceradar-toast-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.priceradar-toast-body {
    flex: 1;
}

.priceradar-toast-message {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.35;
}

.priceradar-toast-close {
    background: transparent;
    border: 0;
    color: #94a3b8;
    padding: 0;
    cursor: pointer;
}

.priceradar-toast-close:hover {
    color: #f8fafc;
}

.priceradar-toast-success {
    border-color: #86A789;
    background-image: linear-gradient(rgba(134, 167, 137, 0.14), rgba(134, 167, 137, 0.14));
}

.priceradar-toast-error {
    border-color: #C57070;
    background-image: linear-gradient(rgba(197, 112, 112, 0.14), rgba(197, 112, 112, 0.14));
}

.priceradar-toast-warning {
    border-color: #e0bb75;
    background-image: linear-gradient(rgba(224, 187, 117, 0.14), rgba(224, 187, 117, 0.14));
}

.priceradar-toast-info {
    border-color: #64748b;
    background-image: linear-gradient(rgba(100, 116, 139, 0.14), rgba(100, 116, 139, 0.14));
}

@media (max-width: 640px) {
    .priceradar-toast-container {
        left: 0.75rem;
        right: 0.75rem;
        top: 0.75rem;
    }

    .priceradar-toast {
        min-width: 0;
        width: 100%;
        max-width: none;
    }
}

@keyframes priceradar-toast-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes priceradar-toast-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-6px);
    }
}

