/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Global Styles */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#app {
    height: 100vh;
    overflow: hidden;
}

/* Loading Spinner */
.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #0DA9CE;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    animation: loading-progress-spin 2s linear infinite;
}

@keyframes loading-progress-spin {
    0% {
        transform: rotate(0deg);
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 100, 200;
        stroke-dashoffset: -15px;
    }
    100% {
        transform: rotate(360deg);
        stroke-dasharray: 100, 200;
        stroke-dashoffset: -125px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #0DA9CE;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0A87A5;
}

/* Blazor Error UI */
#blazor-error-ui {
    display: none;
}

#blazor-error-ui.show {
    display: block;
}

/* Active NavLink styling */
.nav-link {
    transition: all 0.2s ease;
}

.nav-link:hover {
    background-color: #E6F7FB;
    color: #0DA9CE;
}

a.active {
    background-color: #E6F7FB !important;
    color: #0DA9CE !important;
    font-weight: 600;
}

/* Animation utilities */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease-out;
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* YouTube Video Player Styles */
.youtube-video-container {
    position: relative;
    width: 100%;
    max-width: 560px;
}

.aspect-w-16 {
    position: relative;
    width: 100%;
}

.aspect-w-16 > iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Chat Panel Resize Handle */
.resize-handle {
    width: 6px;
    background: transparent;
    cursor: col-resize;
    position: relative;
    transition: background-color 0.2s;
    flex-shrink: 0;
}

.resize-handle:hover {
    background: #0DA9CE;
    opacity: 0.5;
}

.resize-handle:active {
    background: #0A87A5;
    opacity: 0.8;
}

/* Visual indicator on hover */
.resize-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 40px;
    background: #cbd5e1;
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.2s;
}

.resize-handle:hover::before {
    opacity: 1;
}
