/* ============================================
   MODERN FANCY NAVIGATION MENU
   Premium Medical Software UI
   ============================================ */

/* Navbar Base */
.navbar-ris {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(220, 53, 69, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-ris.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 251, 252, 0.98) 100%);
}

.navbar-ris .container {
    max-width: 1400px;
    padding: 0 24px;
}

/* Brand Logo - Modern Design */
.navbar-brand-ris {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #1a1d29;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
    padding: 16px 0;
    letter-spacing: -0.3px;
}

.navbar-brand-ris:hover {
    color: #dc3545;
    transform: translateY(-1px);
}

.navbar-brand-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.navbar-brand-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.navbar-brand-ris:hover .navbar-brand-icon::before {
    left: 100%;
}

.navbar-brand-ris:hover .navbar-brand-icon {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.35);
}

.navbar-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.navbar-brand-text > span:first-child {
    font-size: 20px;
    font-weight: 700;
    color: #1a1d29;
    letter-spacing: -0.3px;
}

.navbar-brand-subtitle {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    margin-top: 2px;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

/* Navigation Links - Modern Fancy Design */
.navbar-nav-ris {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item-ris {
    position: relative;
}

.nav-link-ris {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #475569;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin: 0 2px;
    letter-spacing: -0.1px;
}

.nav-link-ris::before {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #dc3545, #e4606d);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav-link-ris::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05) 0%, rgba(220, 53, 69, 0.02) 100%);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-link-ris:hover::before,
.nav-link-ris.active::before {
    width: 70%;
}

.nav-link-ris:hover::after,
.nav-link-ris.active::after {
    opacity: 1;
}

.nav-link-ris:hover {
    color: #dc3545;
    transform: translateY(-1px);
}

.nav-link-ris.active {
    color: #dc3545;
    font-weight: 700;
}

.nav-link-ris i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.nav-link-ris:hover i {
    transform: scale(1.1);
}

/* Dropdown Toggle Arrow */
.nav-link-ris.dropdown-toggle::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    border: none;
    margin-left: 6px;
    font-size: 10px;
    transition: transform 0.3s ease;
    vertical-align: middle;
}

.nav-link-ris.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* Dropdown Menu - Modern Fancy */
.dropdown-menu-ris {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid #e2e8f0;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    list-style: none;
    margin: 0;
    display: block;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dropdown-menu-ris::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-left: 1px solid #e2e8f0;
    border-top: 1px solid #e2e8f0;
    transform: translateX(-50%) rotate(45deg);
}

.dropdown-menu-ris.show,
.dropdown-menu-ris[data-bs-popper] {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu-ris.dropdown-menu-end {
    left: auto;
    right: 0;
    transform: translateX(0);
}

.dropdown-menu-ris.dropdown-menu-end::before {
    left: auto;
    right: 20px;
    transform: translateX(0) rotate(45deg);
}

.dropdown-menu-ris.dropdown-menu-end.show,
.dropdown-menu-ris.dropdown-menu-end[data-bs-popper] {
    transform: translateX(0) translateY(0);
}

/* Dropdown Items - Modern Design */
.dropdown-item-ris {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: #475569;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 2px 0;
    position: relative;
    overflow: hidden;
}

.dropdown-item-ris::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, #dc3545, #e4606d);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.dropdown-item-ris:hover::before {
    transform: scaleY(1);
}

.dropdown-item-ris:hover {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.08) 0%, rgba(220, 53, 69, 0.04) 100%);
    color: #dc3545;
    transform: translateX(4px);
    padding-left: 18px;
}

.dropdown-item-ris i {
    font-size: 14px;
    width: 18px;
    text-align: center;
    color: #64748b;
    transition: all 0.2s ease;
}

.dropdown-item-ris:hover i {
    color: #dc3545;
    transform: scale(1.1);
}

.dropdown-item-ris.text-danger {
    color: #dc3545;
}

.dropdown-item-ris.text-danger:hover {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.05) 100%);
    color: #b02a37;
}

/* Dropdown Divider */
.dropdown-divider-ris {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 8px 0;
    border: none;
}

/* User Menu - Special Styling */
.user-menu-ris {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    color: #1a1d29;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05) 0%, rgba(220, 53, 69, 0.02) 100%);
    border: 1px solid rgba(220, 53, 69, 0.1);
}

.user-menu-ris:hover {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.05) 100%);
    border-color: rgba(220, 53, 69, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.15);
}

.user-avatar-ris {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.25);
    flex-shrink: 0;
}

.user-menu-ris .fa-chevron-down {
    font-size: 11px;
    color: #64748b;
    transition: transform 0.3s ease;
}

.user-menu-ris[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

/* Buttons in Navbar */
.btn-ris {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-ris-primary {
    background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.25);
}

.btn-ris-primary:hover {
    background: linear-gradient(135deg, #b02a37 0%, #9a2532 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.35);
    color: #ffffff;
}

.btn-ris-outline {
    background: transparent;
    color: #dc3545;
    border: 2px solid #dc3545;
}

.btn-ris-outline:hover {
    background: rgba(220, 53, 69, 0.05);
    border-color: #b02a37;
    color: #b02a37;
    transform: translateY(-1px);
}

/* Mobile Toggle Button */
.navbar-toggler {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar-toggler:hover {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28220, 53, 69, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 24px;
    height: 24px;
}

/* Responsive */
@media (max-width: 991px) {
    .navbar-nav-ris {
        padding: 16px 0;
        gap: 8px;
    }
    
    .nav-link-ris {
        padding: 12px 16px;
        width: 100%;
        justify-content: flex-start;
    }
    
    .dropdown-menu-ris {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        border-top: 1px solid #e2e8f0;
        border-radius: 0;
        margin-top: 8px;
    }
    
    .dropdown-menu-ris::before {
        display: none;
    }
}

/* Animation for menu items */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu-ris.show .dropdown-item-ris {
    animation: slideInDown 0.3s ease forwards;
}

.dropdown-menu-ris.show .dropdown-item-ris:nth-child(1) { animation-delay: 0.05s; }
.dropdown-menu-ris.show .dropdown-item-ris:nth-child(2) { animation-delay: 0.1s; }
.dropdown-menu-ris.show .dropdown-item-ris:nth-child(3) { animation-delay: 0.15s; }
.dropdown-menu-ris.show .dropdown-item-ris:nth-child(4) { animation-delay: 0.2s; }
.dropdown-menu-ris.show .dropdown-item-ris:nth-child(5) { animation-delay: 0.25s; }

