/* Minimal Apple-inspired enhancements for MudBlazor */

/* Use SF Pro / system fonts */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Smooth transitions for all interactive elements */
.mud-button-root,
.mud-icon-button,
.mud-card,
.mud-paper,
.mud-chip {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Subtle card hover effect */
.mud-card:hover {
    transform: translateY(-2px);
}

/* Clean focus states */
*:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
}

/* Force visible borders on AppBars with high specificity */
.mud-appbar.mud-appbar-fixed-top,
.mud-appbar-fixed-top.mud-appbar,
header.mud-appbar {
    border-bottom: 2px solid rgba(0, 0, 0, 0.15) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.mud-appbar.mud-appbar-fixed-bottom,
.mud-appbar-fixed-bottom.mud-appbar,
footer.mud-appbar {
    border-top: 2px solid rgba(0, 0, 0, 0.15) !important;
    border-bottom: none !important;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Dark mode borders with high specificity */
.mud-theme-dark .mud-appbar.mud-appbar-fixed-top,
.mud-theme-dark .mud-appbar-fixed-top.mud-appbar,
.mud-theme-dark header.mud-appbar {
    border-bottom: 2px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.mud-theme-dark .mud-appbar.mud-appbar-fixed-bottom,
.mud-theme-dark .mud-appbar-fixed-bottom.mud-appbar,
.mud-theme-dark footer.mud-appbar {
    border-top: 2px solid rgba(255, 255, 255, 0.15) !important;
    border-bottom: none !important;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* Ensure AppBar has proper background contrast */
.mud-appbar {
    background-color: var(--mud-palette-appbar-background) !important;
}

/* Minimal scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.mud-theme-dark ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.mud-theme-dark ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Clean page transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mud-container {
    animation: fadeIn 0.3s ease-out;
}