@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&display=swap');

:root {
    /* PALHETA DE CORES DO PROJETO */
    --primary-color: #5a3ea1;
    --secondary-color: #000;
    --third-color: #cdcdcd;
    --fourth-color: #8d47bb;
    --fifth-color: #fff;

    --box-shadow: 0px 15px 25px rgba(0, 0, 0, 0.08);
    --transition: all 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
}

body {
    scrollbar-width: none;
    -ms-overflow-style: none;
    overflow-y: scroll;
}

body::-webkit-scrollbar {
    display: none;
}

html, body {
  margin: 0;
  height: 100%;
  overflow: overlay; /* Chromium aceita overlay como fallback */
  -ms-overflow-style: none;  /* IE/Edge legado */
  scrollbar-width: none;     /* Firefox */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0px;
  height: 0px;
  background: transparent; /* opcional */
}


.gradient-bg {
    background: linear-gradient(135deg, #000000 0%, #2c2c2c 50%, #5a3ea1 100%);
}

.dropdown-menu {
    overflow: visible !important;
}

.drag-area {
    border: 3px dashed #5a3ea1;
    transition: all 0.3s ease;
}

.drag-area.dragover {
    border-color: #ffffff;
    background-color: rgba(90, 62, 161, 0.1);
    transform: scale(1.02);
}

.modal {
    backdrop-filter: blur(10px);
}

.page.active {
    display: block;
}

.btn-primary {
    background: linear-gradient(135deg, #5a3ea1, #7c3aed);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(90, 62, 161, 0.3);
}

.auth-form {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-form.slide-out-left {
    transform: translateX(-100%);
    opacity: 0;
}

.auth-form.slide-in-right {
    transform: translateX(0);
    opacity: 1;
}

.auth-form.slide-out-right {
    transform: translateX(100%);
    opacity: 0;
}

.auth-form.slide-in-left {
    transform: translateX(0);
    opacity: 1;
}

/*Auth Form Animations */
.auth-form-modern {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-label {
    pointer-events: none;
}

.peer:focus~.floating-label,
.peer:not(:placeholder-shown)~.floating-label {
    top: -1.5rem;
    left: 0;
    position: absolute;
}


/* Floating Animation for Background Elements */
@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }

    33% {
        transform: translate(30px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }

    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Accessibility: Skip link (visible on focus) */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    padding: 0.75rem 1rem;
    background: #111827;
    /* gray-900 */
    color: #fff;
    border-radius: 0.5rem;
    z-index: 9999;
}

/* Accessibility: reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .animate-blob {
        animation: none !important;
    }
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Tab Active State */
.tab-active {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Input Focus Glow */
.input-glow:focus {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

/*
* Custom Checkbox Styles 
*/

.custom-checkbox {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: relative;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    border: 2px solid #d1d5db;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.checkmark::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 6px;
    border: 2px solid white;
    border-top: none;
    border-right: none;
    transform: rotate(-45deg) scale(0);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 0;
}

.custom-checkbox input[type="checkbox"]:checked+.checkmark {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    border-color: #8b5cf6;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.custom-checkbox input[type="checkbox"]:checked+.checkmark::before {
    transform: rotate(-45deg) scale(1);
    opacity: 1;
}

.custom-checkbox:hover .checkmark {
    border-color: #8b5cf6;
    transform: scale(1.02);
}

.custom-checkbox input[type="checkbox"]:checked:hover+.checkmark {
    transform: scale(1.08);
}

/* Ripple Effect */
.checkmark::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.2);
    transform: scale(0);
    transition: transform 0.3s ease;
}

.custom-checkbox input[type="checkbox"]:checked+.checkmark::after {
    transform: scale(2);
    opacity: 0;
}

/* Label Animation */
.checkbox-label {
    margin-left: 12px;
    color: #374151;
    font-weight: 500;
    transition: color 0.3s ease;
}

.custom-checkbox input[type="checkbox"]:checked~.checkbox-label {
    color: #8b5cf6;
}

/* Different Styles */
.style-rounded .checkmark {
    border-radius: 50%;
}

.style-large .checkmark {
    width: 32px;
    height: 32px;
}

.style-large .checkmark::before {
    width: 14px;
    height: 8px;
}

.style-gradient .checkmark {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
}

.style-gradient input[type="checkbox"]:checked+.checkmark {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

/* Toggle Switch Style */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 24px;
    background: #d1d5db;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.toggle-switch::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.custom-checkbox input[type="checkbox"]:checked~.toggle-switch {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
}

.custom-checkbox input[type="checkbox"]:checked~.toggle-switch::before {
    transform: translateX(26px);
}

/* === Daltonism filters === */
.filter-protanopia {
    filter: url(#protanopia);
}

.filter-deuteranopia {
    filter: url(#deuteranopia);
}

.filter-tritanopia {
    filter: url(#tritanopia);
}

.filter-protanomaly {
    filter: url(#protanomaly);
}

.filter-deuteranomaly {
    filter: url(#deuteranomaly);
}

.filter-tritanomaly {
    filter: url(#tritanomaly);
}

.filter-achromatopsia {
    filter: grayscale(100%);
}

.filter-achromatomaly {
    filter: grayscale(50%) contrast(1.2);
}


/* Blur global quando loader estiver ativo */
body.loading #app-root,
body.loading #main-content,
body.loading nav[role="navigation"],
body.loading .blur-target {
    filter: blur(6px);
    transition: filter 200ms ease;
    pointer-events: none;
    user-select: none;
}

/* Loader indeterminado, animação fluida */
.loader {
    width: min(320px, 70vw);
    height: 16px;
    position: relative;
    border-radius: 9999px;
    overflow: hidden;
    background-color: rgba(147, 51, 234, 0.12);
    box-shadow: 0 12px 34px rgba(147, 51, 234, 0.24), 0 6px 16px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(147, 51, 234, 0.28);
}

.loader::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: #9333ea;
    transform-origin: left center;
    transform: scaleX(0);
    animation: loader-fill 1.9s ease-in-out infinite;
    border-radius: inherit;
}

@keyframes loader-fill {

    0%,
    15% {
        transform: scaleX(0);
    }

    55% {
        transform: scaleX(1);
    }

    100% {
        transform: scaleX(1);
    }
}

@media (prefers-reduced-motion: reduce) {

    .loader::before {
        animation: none;
    }

    .loader::before {
        transform: scaleX(1);
    }
}

.loader-eye {
    width: min(320px, 70vw);
    display: flex;
    justify-content: center;
}

.loader-eye svg,
.loader-eye img {
    width: min(220px, 60vw);
    height: auto;
    display: block;
}
