/* Custom Styles for Online Tutoring Platform */

/* Custom scrollbar for chat and panel */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.6);
}
::-webkit-scrollbar-thumb {
    background: rgba(71, 85, 105, 0.8);
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 1);
}

/* Canvas styling */
#notebook-bg-canvas,
#whiteboard-canvas {
    touch-action: none;
    cursor: crosshair;
}

/* Notebook lined textarea styling */
.notebook-ruled-textarea {
    background-color: #0f172a;
    background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 100% 32px;
    line-height: 32px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 14px;
    tab-size: 4;
}
.notebook-ruled-textarea:focus {
    outline: none;
}

/* Video element aspect and styling */
.video-container {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-pip {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
    transition: all 0.25s ease-in-out;
}
.video-pip:hover {
    transform: scale(1.02);
}

/* Glassmorphism panel effects */
.glass-panel {
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Pulse indicator for live connection */
@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.3);
    }
}

.live-indicator {
    animation: pulse-dot 2s infinite ease-in-out;
}

/* Toast animations */
@keyframes slide-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast-enter {
    animation: slide-in-up 0.25s ease-out forwards;
}
