/* Custom styles */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
    pointer-events: none;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.gradient-border {
    position: relative;
    border-radius: 0.5rem;
}

.gradient-border::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    z-index: -1;
    border-radius: 0.6rem;
    background: linear-gradient(45deg, #ff0000, #ff7300, #fffb00, #48ff00, #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000);
    background-size: 400%;
    animation: gradient-xy 12s linear infinite;
    filter: blur(5px);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.gradient-border:hover::before {
    opacity: 1;
}

.thumbnail-container {
    transition: all 0.3s ease;
}

.thumbnail-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    border-radius: 15px;
    background: #e2e8f0;
    transition: background 0.3s;
    cursor: pointer;
}

.theme-toggle.dark {
    background: #475569;
}

.toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    transition: transform 0.3s;
}

.theme-toggle.dark .toggle-thumb {
    transform: translateX(30px);
    background: #1e293b;
}

.input-field {
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.input-field:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

/* Dark mode styles */
.dark .input-field {
    background-color: #334155;
    border-color: #475569;
    color: #f8fafc;
}

.dark .input-field:focus {
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.5);
}

.dark .gradient-border::before {
    opacity: 0.5;
}

.dark .gradient-border:hover::before {
    opacity: 0.8;
}