/* GKT Coaching Platform - Global Styles */

/* Reset and base styles */
html, body {
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Focus styles for accessibility */
*:focus {
    outline-offset: 2px;
}

/* Blazor error boundary styling */
.blazor-error-boundary {
    background: #f44336;
    padding: 1rem;
    color: white;
    border-radius: 4px;
    margin: 1rem;
}

.blazor-error-boundary::after {
    content: "An error has occurred. Please try again.";
}

/* PWA install banner (if shown) */
.pwa-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: #512BD4;
    color: white;
    text-align: center;
    z-index: 9999;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Dark mode scrollbar */
.mud-theme-dark ::-webkit-scrollbar-track {
    background: #333;
}

.mud-theme-dark ::-webkit-scrollbar-thumb {
    background: #666;
}

.mud-theme-dark ::-webkit-scrollbar-thumb:hover {
    background: #888;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.full-height {
    height: 100%;
}

.full-width {
    width: 100%;
}

/* Animation utilities */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}
