/* Breadcrumb Container */
.container nav[aria-label="breadcrumb"] {
    margin-top: 90px;
    padding: 0 15px;
}

/* Breadcrumb Base Styles */
.custom-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    list-style: none;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border: 2px solid #3b82f6 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15),
                0 2px 4px rgba(0, 0, 0, 0.05);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Breadcrumb Items */
.custom-breadcrumb li {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
}

/* Separators with improved visibility */
.custom-breadcrumb li:not(:last-child)::after {
    content: "/";
    margin: 0 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Links - Unvisited & Visited States */
.custom-breadcrumb a {
    color: #ffffff;
    text-decoration: none;
    padding: 0.375rem 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
    display: inline-block;
    font-weight: 500;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

/* Hover State */
.custom-breadcrumb a:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Active/Focused State */
.custom-breadcrumb a:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Active Page (Last Item) */
.custom-breadcrumb li.active a {
    color: whitesmoke;
    font-weight: 500;
    cursor: default;
    padding: 0.375rem 0.75rem;
    background-color: darkblue;
    border-radius: 8px;
}

/* Remove hover effects for active page */
.custom-breadcrumb li.active a:hover {
    transform: none;
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

/* Home Link Icon Enhancement */
.custom-breadcrumb li:first-child a {
    padding-left: 0.25rem;
    position: relative;
}

.custom-breadcrumb li:first-child a::before {
    content: "🏠";
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* Animation for better UX */
.custom-breadcrumb a {
    position: relative;
    overflow: hidden;
}

.custom-breadcrumb a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.custom-breadcrumb a:hover::after {
    width: 80%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container nav[aria-label="breadcrumb"] {
        margin-top: 70px;
        padding: 0 10px;
    }
    
    .custom-breadcrumb {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    .custom-breadcrumb li:not(:last-child)::after {
        margin: 0 0.75rem;
    }
}

@media (max-width: 480px) {
    .custom-breadcrumb {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .custom-breadcrumb a {
        padding: 0.25rem 0.375rem;
    }
    
    .custom-breadcrumb li:not(:last-child)::after {
        margin: 0 0.5rem;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .custom-breadcrumb {
        background: #059669 !important;
        border: 3px solid #1d4ed8 !important;
    }
    
    .custom-breadcrumb a {
        color: #ffffff;
        text-decoration: underline;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .custom-breadcrumb a {
        transition: none;
    }
    
    .custom-breadcrumb a:hover {
        transform: none;
    }
    
    .custom-breadcrumb a::after {
        display: none;
    }
}