/* Brand color usage: Indigo from Tailwind or your custom variable */
:root {
    --brand-color: #6366F1;
    /* Indigo-500, adjust as needed */
}

/* Hover highlight for the drop area */
.drop-area-hover {
    background-color: rgba(99, 102, 241, 0.05);
    border-color: var(--brand-color) !important;
}

#customAlert {
    background-color: #fff;
    color: #1f2937;
    /* gray-800 */
    box-shadow: var(--shadow-md);
    border-left-width: 6px;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 15px;
}

#customAlert.success {
    border-color: #10b981;
    /* emerald-500 */
}

#customAlert.info {
    border-color: var(--primary);
}

#customAlert.error {
    border-color: #ef4444;
    /* red-500 */
}

#customAlert.warning {
    border-color: #f59e0b;
    /* amber-500 */
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

.animate-fade {
    animation: fadeOut 0.5s ease-out forwards;
}

/* Watermark background */
body::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-image: url('raven_knot_watermark.png');
    background-repeat: no-repeat;
    background-size: 980px;
    opacity: 0.08;
    z-index: -9999;
    width: 980px;
    height: 960px;
    pointer-events: none;
    filter: blur(1px);
    animation: slowRotate 120s linear infinite;
}

body {
    position: relative;
    z-index: -1;
}

@keyframes slowRotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@media (max-width: 768px) {
    body::before {
        background-size: 500px;
        width: 500px;
        height: 500px;
    }
}

/* Secondary background: Norse runes */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('ancient_runes_background.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.25;
    z-index: -99999;
    /* Deepest layer */
    pointer-events: none;
}