/* ====================================
   GLOBAL NAVIGATION SETTINGS
   ==================================== */


/* Button styles moved to core.css - all button styles are now consolidated there */

/* ====================================
   CUSTOM SCROLLBAR - THEME-WIDE
   ====================================
   
   Custom scrollbar styling that follows the QHSE Lib theme.
   Applied globally to all scrollable elements across the website.
   
   Colors:
   - Track: Light gray background (#f1f3f5)
   - Thumb: Theme primary color (#886ab5) with gradient
   - Thumb Hover: Darker purple shade
   
   ==================================== */

/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--theme-primary, #886ab5) 0%, #6b4d9a 100%);
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #6b4d9a 0%, #5a3f7a 100%);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--theme-primary, #886ab5) #f1f3f5;
}

/* Optional: Custom scrollbar for specific containers */
.modal-body::-webkit-scrollbar,
.session-form .modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-thumb,
.session-form .modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--theme-primary, #886ab5) 0%, #6b4d9a 100%);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover,
.session-form .modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #6b4d9a 0%, #5a3f7a 100%);
}

/* ====================================
   CSS-ONLY RIPPLE EFFECT (Replaces Waves.js)
   ====================================
   
   Modern CSS-only ripple effect for buttons and links.
   Replaces Waves.js JavaScript library for better performance.
   
   Usage: Add 'waves-effect' class to any button or link.
   The ripple effect will trigger on click/active state.
   
   ==================================== */

.waves-effect {
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.waves-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease, opacity 0.6s ease;
    pointer-events: none;
    opacity: 0;
}

.waves-effect:active::after,
.waves-effect:focus::after {
    width: 300px;
    height: 300px;
    opacity: 1;
}

/* Dark theme variant for light buttons */
.waves-effect.btn-light:active::after,
.waves-effect.btn-light:focus::after {
    background: rgba(0, 0, 0, 0.2);
}

/* Primary button variant */
.waves-effect.btn-primary:active::after,
.waves-effect.btn-primary:focus::after {
    background: rgba(255, 255, 255, 0.3);
}
