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

::-webkit-scrollbar-track {
    background: transparent;
}

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

.dark ::-webkit-scrollbar-thumb {
    background: #475569;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Animation for recording bars */
@keyframes bar {
    0%, 100% { height: 4px; }
    50% { height: 20px; }
}

.animate-bar {
    animation: bar 0.8s ease-in-out infinite;
}

.delay-75 { animation-delay: 75ms; }
.delay-100 { animation-delay: 100ms; }
.delay-150 { animation-delay: 150ms; }
.delay-200 { animation-delay: 200ms; }

/* Transcript entry animation */
.transcript-entry {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glass morphism effects */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dark .glass {
    background: rgba(30, 41, 59, 0.7);
}

/* Pulse animation for recording */
.recording-pulse {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Event card styles */
.event-card {
    border-left: 4px solid #3b82f6;
    transition: all 0.2s;
}

.event-card:hover {
    transform: translateX(4px);
}

.reminder-card {
    border-left: 4px solid #10b981;
    transition: all 0.2s;
}

.reminder-card:hover {
    transform: translateX(4px);
}

.action-card {
    border-left: 4px solid #8b5cf6;
    transition: all 0.2s;
}

.action-card:hover {
    transform: translateX(4px);
}

/* Smooth theme transition */
* {
    transition-property: background-color, border-color, color;
    transition-duration: 200ms;
    transition-timing-function: ease-in-out;
}

/* Text selection color */
::selection {
    background: #3b82f6;
    color: white;
}

.dark ::selection {
    background: #60a5fa;
    color: #1e293b;
}