/* Custom styles for Udemy Course Enroller */

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #1f2937;
}
::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Active nav link */
.nav-link.active {
    background-color: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

/* Card hover effect */
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Progress bar animation */
#progress-bar {
    transition: width 0.5s ease-in-out;
}

/* Pulse animation for active status */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0); }
}

.pulse-active {
    animation: pulse-glow 2s infinite;
}

/* Modal backdrop */
#run-modal {
    backdrop-filter: blur(4px);
}

/* Smooth transitions */
* {
    transition-property: background-color, border-color, color;
    transition-duration: 150ms;
}

/* Checkbox styling */
input[type="checkbox"] {
    cursor: pointer;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    z-index: 100;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(1rem); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
