/**
 * ============================================
 * Dashboard Utilities
 * Timeline, Hover Effects, Dropdown Backdrop, Mode Switcher
 * ============================================
 */

/* === DROPDOWN BACKDROP === */
.dropdown-backdrop {
    display: none;
    position: fixed;
    top: 110px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.02);
    z-index: 100;
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none !important;
}

.dropdown-backdrop.active {
    display: block;
    opacity: 1;
    pointer-events: none !important;
}

/* Dropdown menu with high z-index and working clicks */
#header2 .navbar .nav > li.dropdown {
    position: relative;
    z-index: 1030;
}

.fancy-dropdown, .mega-dropdown, .dropdown-menu {
    z-index: 1031;
    pointer-events: auto !important;
}

/* === HOVER EFFECTS === */
.hover-shadow {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.hover-shadow:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    transform: translateY(-2px);
}

/* === TIMELINE STYLES === */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--md-border);
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-marker {
    position: absolute;
    left: -22px;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 3px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.timeline-content {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--md-border);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.timeline-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--md-text);
}

.timeline-text {
    font-size: 13px;
    color: var(--md-text-light);
    margin-bottom: 0;
}

/* === DARK MODE TOGGLE === */
.mode-toggle-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--md-white);
    border: 1px solid var(--md-border);
    border-radius: 24px;
    padding: 4px;
    display: flex;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    z-index: 1000;
}

.mode-label {
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    color: var(--md-text-light);
}

.mode-label:hover {
    background: rgba(15, 120, 165, 0.08);
}

.mode-label.active {
    background: var(--md-blue);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(15, 120, 165, 0.3);
}

/* === PRAXIS MODE INDICATOR === */
.praxis-mode-badge {
    background: var(--md-blue);
    color: #ffffff;
    padding: 5px 14px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(15, 120, 165, 0.25);
}

/* === MODE SWITCHER === */
.mode-switcher {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 4px;
    display: flex;
    gap: 4px;
    margin-right: 15px;
}

.mode-switcher-btn {
    padding: 7px 15px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.75);
    border: none;
    background: transparent;
    text-decoration: none;
}

.mode-switcher-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.mode-switcher-btn.active {
    background: var(--md-blue);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(15, 120, 165, 0.4);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .mode-toggle-wrapper {
        bottom: 10px;
        right: 10px;
    }
}

