/* Custom styles for Phisheez landing page */

/* Smooth transitions */
* {
    transition: background-color 0.2s ease-in-out, 
                color 0.2s ease-in-out, 
                border-color 0.2s ease-in-out;
}

/* Navigation shadow on scroll */
nav.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Dark mode navigation shadow */
.dark nav.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

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

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

.dark ::-webkit-scrollbar-track {
    background: #374151;
}

::-webkit-scrollbar-thumb {
    background: #6366f1;
    border-radius: 5px;
}

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

.dark ::-webkit-scrollbar-thumb {
    background: #818cf8;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #6366f1;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.dark a:focus,
.dark button:focus {
    outline-color: #818cf8;
}

/* Dark mode transition override for theme toggle */
#theme-toggle {
    transition: all 0.3s ease;
}

/* Prevent flash of unstyled content on dark mode */
.dark-mode-transition,
.dark-mode-transition *,
.dark-mode-transition *:before,
.dark-mode-transition *:after {
    transition: none !important;
}

/* Print styles */
@media print {
    nav,
    footer,
    .no-print,
    #theme-toggle {
        display: none;
    }
}

/* Additional dark mode refinements */
.dark .hover\:shadow-lg:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

/* Ensure smooth color transitions for interactive elements */
button,
a,
input,
textarea,
select {
    transition: all 0.2s ease-in-out;
}

/* Dark mode form inputs (if needed in future) */
.dark input,
.dark textarea,
.dark select {
    background-color: rgb(55 65 81);
    border-color: rgb(75 85 99);
    color: rgb(243 244 246);
}

.dark input::placeholder,
.dark textarea::placeholder {
    color: rgb(156 163 175);
}

.dark input:focus,
.dark textarea:focus,
.dark select:focus {
    border-color: #6366f1;
    outline-color: #6366f1;
}
