@keyframes rainbow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Milk glass frosted effect for tables */
.table-blurred-bg {
    position: relative;
    border-radius: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Add subtle frosted texture */
.table-blurred-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    border-radius: 1rem;
    pointer-events: none;
}

.table-blurred-bg .table {
    background: transparent !important;
    margin: 0;
}

.table-blurred-bg .table thead th {
    background: rgba(255, 255, 255, 0.1) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.table-blurred-bg .table tbody tr {
    background: transparent !important;
    border: none !important;
}

.table-blurred-bg .table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.05) !important;
}

.table-blurred-bg .table tbody tr:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.rainbow-hover {
    position: relative;
    border: 3px solid transparent;
    background-clip: padding-box;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.rainbow-hover::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(
        90deg,
        #ff6b6b,
        #ffb347,
        #ffef96,
        #98fb98,
        #87ceeb,
        #d8bfd8,
        #ff6b6b,
        #ff6b6b
    );
    background-size: 300% 100%;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.rainbow-hover:hover::before {
    opacity: 1;
    animation: rainbow 4s linear infinite;
    transition: opacity 0.3s ease;
}

.rainbow-hover:active::before {
    opacity: 0 !important;
    animation: none !important;
    transition: none !important;
}

.rainbow-hover:not(:hover)::before {
    opacity: 0 !important;
    animation: none !important;
    transition: none !important;
}
