/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #22c55e;
    border-radius: 5px;
    border: 2px solid #000;
}

::-webkit-scrollbar-thumb:hover {
    background: #4ade80;
}

/* Selection color */
::selection {
    background: rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

/* Autofill styling for dark theme */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: #4ade80;
    -webkit-box-shadow: 0 0 0px 1000px #000 inset;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: #4ade80;
}

/* Custom animations */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(34, 197, 94, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(34, 197, 94, 0.4);
    }
}

.glow-effect {
    animation: glow 3s ease-in-out infinite;
}

/* Input focus animation */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1), 0 0 20px rgba(34, 197, 94, 0.2);
}

/* Smooth transitions for all interactive elements */
button, input, textarea {
    transition: all 0.3s ease;
}

/* Background grid pattern */
.bg-grid {
    background-image: linear-gradient(rgba(34, 197, 94, 0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(34, 197, 94, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}
