/**
 * Tailwind CSS-in əvəzi - Modern və gözəl dizayn
 */

:root {
    --md-primary: #6750a4;
    --md-primary-dark: #4f378b;
    --md-primary-light: #7f67be;
    --md-on-primary: #ffffff;
    --md-secondary: #03dac6;
    --md-tertiary: #ffb59f;
    --md-surface: rgba(255, 255, 255, 0.85);
    --md-surface-high: rgba(255, 255, 255, 0.92);
    --md-surface-tint: rgba(103, 80, 164, 0.12);
    --md-background: #f4f4ff;
    --md-outline: rgba(103, 80, 164, 0.18);
    --md-outline-strong: rgba(103, 80, 164, 0.28);
    --md-shadow-color: rgba(30, 30, 70, 0.18);
    --md-shadow-color-strong: rgba(30, 30, 70, 0.28);
    --md-elevation-0: none;
    --md-elevation-1: 0 10px 30px -15px rgba(30, 30, 70, 0.35), 0 12px 22px -12px rgba(103, 80, 164, 0.16);
    --md-elevation-2: 0 18px 40px -20px rgba(30, 30, 70, 0.4), 0 16px 26px -14px rgba(103, 80, 164, 0.18);
    --md-elevation-3: 0 22px 60px -28px rgba(30, 30, 70, 0.5), 0 18px 32px -16px rgba(103, 80, 164, 0.2);
    --md-radius-lg: 24px;
    --md-radius-xl: 30px;
    --md-radius-full: 9999px;
    --md-text-primary: #1f1b2e;
    --md-text-secondary: #4a4458;
    --md-text-muted: #6f677a;
    --md-linear-1: linear-gradient(135deg, rgba(103, 80, 164, 0.12), rgba(3, 218, 198, 0.08));
    --md-linear-2: linear-gradient(135deg, rgba(98, 0, 238, 0.12), rgba(255, 179, 0, 0.08));
    --md-glass-border: rgba(255, 255, 255, 0.55);
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html,
body {
    max-width: 100vw;
    overflow-x: hidden;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--md-background);
}

body {
    color: var(--md-text-primary);
    background: radial-gradient(circle at 0% 0%, rgba(103, 80, 164, 0.08), transparent 45%),
        radial-gradient(circle at 100% 0%, rgba(3, 218, 198, 0.08), transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(255, 179, 0, 0.07), transparent 55%),
        var(--md-background);
    position: relative;
    min-height: 100vh;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    width: 420px;
    height: 420px;
    filter: blur(120px);
    z-index: -2;
    opacity: 0.55;
}

body::before {
    top: -120px;
    left: -160px;
    background: radial-gradient(circle, rgba(103, 80, 164, 0.25), transparent 70%);
}

body::after {
    bottom: -140px;
    right: -120px;
    background: radial-gradient(circle, rgba(3, 218, 198, 0.25), transparent 70%);
}

/* Utility classes */
.min-h-screen {
    min-height: 100vh;
}

.bg-gradient-to-br {
    background: linear-gradient(to bottom right, #f9fafb, #f3f4f6);
}

.from-gray-50 {
    --tw-gradient-from: #f9fafb;
}

.to-gray-100 {
    --tw-gradient-to: #f3f4f6;
}


header.bg-white {
    background: var(--md-surface-high);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--md-outline);
    box-shadow: var(--md-elevation-1);
}

.bg-white {
    background: var(--md-surface);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: var(--md-elevation-1);
}

.bg-gray-50 {
    background: rgba(248, 248, 255, 0.65);
}

.bg-gray-100 {
    background: rgba(244, 244, 255, 0.55);
}

.bg-gradient-to-br {
    background: var(--md-linear-1);
}


.shadow-sm {
    box-shadow: 0 6px 18px -14px var(--md-shadow-color), 0 1px 3px -1px var(--md-shadow-color);
}

.shadow-md {
    box-shadow: 0 14px 32px -18px var(--md-shadow-color), 0 6px 18px -12px var(--md-shadow-color);
}

.shadow-lg {
    box-shadow: var(--md-elevation-2);
}

.shadow-xl {
    box-shadow: var(--md-elevation-3);
}

.border-b {
    border-bottom-width: 1px;
}


.border {
    border-width: 1px;
    border-style: solid;
    border-color: var(--md-outline);
}

.border-dashed {
    border-style: dashed;
}

.border-gray-200 {
    border-color: rgba(103, 80, 164, 0.1);
}

.border-gray-300 {
    border-color: rgba(103, 80, 164, 0.18);
}

.border-blue-500 {
    border-color: var(--md-primary);
}

.border-blue-200 {
    border-color: rgba(103, 80, 164, 0.25);
}

.border-rose-100 {
    border-color: rgba(255, 173, 190, 0.55);
}

.bg-blue-600 {
    background: linear-gradient(135deg, var(--md-primary), var(--md-primary-dark));
    color: var(--md-on-primary);
    box-shadow: 0 16px 32px -16px rgba(103, 80, 164, 0.65);
}

.hover\:bg-blue-700:hover {
    background: linear-gradient(135deg, var(--md-primary-dark), var(--md-primary));
}

.bg-gray-900 {
    background: linear-gradient(135deg, #1e1b2e, #2c2545);
    color: var(--md-on-primary);
    box-shadow: 0 16px 38px -18px rgba(30, 27, 53, 0.7);
}

.animate-pulse {
    animation: pulseGlow 1.2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.55;
        transform: scale(0.95);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.hover\:bg-gray-50:hover {
    background: rgba(248, 248, 255, 0.8);
}

.text-white {
    color: #ffffff;
}

.text-gray-600 {
    color: var(--md-text-muted);
}

.text-gray-700 {
    color: var(--md-text-secondary);
}

.text-gray-900 {
    color: var(--md-text-primary);
}

.text-blue-600 {
    color: var(--md-primary);
}

.text-blue-700 {
    color: var(--md-primary-dark);
}

.text-blue-400 {
    color: rgba(103, 80, 164, 0.75);
}

.group:hover .group-hover\:text-blue-600 {
    color: var(--md-primary);
}

.group:hover .group-hover\:rotate-12 {
    transform: rotate(12deg);
}

.group:hover .group-hover\:translate-x-1 {
    transform: translateX(0.25rem);
}

.hover\:border-blue-200:hover {
    border-color: rgba(103, 80, 164, 0.3);
}

.text-green-600 {
    color: #16a34a;
}

.text-red-600 {
    color: #dc2626;
}

.text-purple-600 {
    color: #9333ea;
}

.text-orange-600 {
    color: #ea580c;
}

.text-rose-600 {
    color: #e11d48;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

.font-bold {
    font-weight: 700;
}


.rounded-lg {
    border-radius: calc(var(--md-radius-lg) - 8px);
}

.rounded-xl {
    border-radius: var(--md-radius-lg);
}

.rounded-2xl {
    border-radius: calc(var(--md-radius-lg) + 6px);
}

.rounded-3xl {
    border-radius: var(--md-radius-xl);
}

.rounded-full {
    border-radius: var(--md-radius-full);
}

.p-3 {
    padding: 0.75rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-1\.5 {
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.m-1 {
    margin: 0.25rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.max-w-7xl {
    max-width: 80rem;
}

.max-w-md {
    max-width: 28rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.w-full {
    width: 100%;
}

.w-10 {
    width: 2.5rem;
}

.h-10 {
    height: 2.5rem;
}

.w-14 {
    width: 3.5rem;
}

.h-14 {
    height: 3.5rem;
}

.w-6 {
    width: 1.5rem;
}

.h-6 {
    height: 1.5rem;
}

.w-4 {
    width: 1rem;
}

.h-4 {
    height: 1rem;
}

.w-3 {
    width: 0.75rem;
}

.h-3 {
    height: 0.75rem;
}

.h-3-5 {
    height: 0.875rem;
}

.w-3-5 {
    width: 0.875rem;
}

.h-2 {
    height: 0.5rem;
}

.min-h-\[200px\] {
    min-height: 200px;
}

.max-h-\[300px\] {
    max-height: 300px;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.flex-1 {
    flex: 1 1 0%;
}

.flex-wrap {
    flex-wrap: wrap;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.space-y-3 > * + * {
    margin-top: 0.75rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.leading-relaxed {
    line-height: 1.625;
}

.overflow-y-auto {
    overflow-y: auto;
}

.overflow-x-hidden {
    overflow-x: hidden;
}

.resize-none {
    resize: none;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-200 {
    transition-duration: 200ms;
}

button,
.bg-blue-600,
.bg-gray-900 {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

button::after,
.bg-blue-600::after,
.bg-gray-900::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.21) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0.6);
    transition: transform 220ms ease, opacity 220ms ease;
    pointer-events: none;
    z-index: -1;
}

button:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(103, 80, 164, 0.3);
    outline-offset: 4px;
}

button:hover::after,
.bg-blue-600:hover::after,
.bg-gray-900:hover::after {
    opacity: 1;
    transform: scale(1.05);
}

.cursor-pointer {
    cursor: pointer;
}

#texts-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.5rem;
    padding: 0px !important;
    margin: 0;
    align-items: stretch;
}

#texts-list .group {
    border: none;
    padding-top: 20px;
    height: 100%;
    background: none;
}

#texts-list .p-5 {
    background: var(--md-surface-high);
    border: 1px solid rgba(103, 80, 164, 0.12);
    /* box-shadow: var(--md-elevation-1); */
    padding: 1.5rem;
    border-radius: var(--md-radius-xl);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

#texts-list .group:hover .p-5,
#texts-list .group:focus-visible .p-5 {
    transform: translateY(-6px);
    box-shadow: none;
    border-color: rgba(103, 80, 164, 0.24);
    background: var(--md-linear-2);
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.transform {
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.-translate-x-1\/2 {
    --tw-translate-x: -50%;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.bottom-full {
    bottom: 100%;
}

.left-1\/2 {
    left: 50%;
}

.top-full {
    top: 100%;
}

.z-50 {
    z-index: 50;
}

.hidden {
    display: none;
}

.inline-block {
    display: inline-block;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.max-w-xs {
    max-width: 20rem;
}

.w-max {
    width: max-content;
}

.min-w-fit {
    min-width: fit-content;
}

.font-mono {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

.border-2 {
    border-width: 2px;
}

.border-4 {
    border-width: 4px;
}

.border-transparent {
    border-color: transparent;
}

.border-t-gray-900 {
    border-top-color: #111827;
}

/* Custom colors */
.bg-correct {
    background: linear-gradient(135deg, rgba(3, 218, 198, 0.18), rgba(3, 218, 198, 0.08));
    border: 1px solid rgba(3, 218, 198, 0.28);
}

.bg-added {
    background: linear-gradient(135deg, rgba(103, 80, 164, 0.18), rgba(103, 80, 164, 0.08));
    border: 1px solid rgba(103, 80, 164, 0.32);
}

.bg-error {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.18), rgba(225, 29, 72, 0.08));
    border: 1px solid rgba(225, 29, 72, 0.3);
}

.bg-omitted {
    background: linear-gradient(135deg, rgba(255, 179, 0, 0.18), rgba(255, 179, 0, 0.08));
    border: 1px solid rgba(255, 179, 0, 0.28);
}

.text-purple-800 {
    color: #6b21a8;
}

.text-red-800 {
    color: #991b1b;
}

.text-orange-800 {
    color: #9a3412;
}

.bg-purple-500 {
    background: linear-gradient(135deg, rgba(126, 87, 194, 0.95), rgba(126, 87, 194, 0.75));
    color: var(--md-on-primary);
}

.bg-orange-500 {
    background: linear-gradient(135deg, rgba(255, 179, 0, 0.95), rgba(255, 138, 0, 0.8));
    color: #482a00;
}

.bg-gray-900 {
    background: linear-gradient(135deg, #1e1b2e, #2c2545);
    color: var(--md-on-primary);
    box-shadow: 0 16px 38px -18px rgba(30, 27, 53, 0.7);
}

.text-gray-800 {
    color: var(--md-text-primary);
}

/* Mətn kartları üçün şəbəkə düzülüşü */
#texts-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.5rem;
    /* padding: 0.75rem 0.5rem 1.5rem; */
    margin: 0;
    align-items: stretch;
}

#texts-list.row {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
}

#texts-list button {
    border: none;
    /* background: transparent; */
    padding: 0;
    display: flex;
    text-align: left;
    height: 100%;
    cursor: pointer;
}

#texts-list button:focus-visible {
    outline: 3px solid rgba(103, 80, 164, 0.45);
    outline-offset: 3px;
}

#texts-list button > div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    min-height: 100%;
}

#texts-list button > div .line-clamp-3 {
    /* margin-top: 1rem; */
}

.bg-blue-50 {
    background: rgba(248, 248, 255, 0.65);
}

.bg-blue-500 {
    background: linear-gradient(135deg, rgba(103, 80, 164, 0.95), rgba(103, 80, 164, 0.75));
    color: var(--md-on-primary);
}

.hover\:border-gray-300:hover {
    border-color: rgba(103, 80, 164, 0.2);
}

.hover\:bg-gray-50:hover {
    background: rgba(248, 248, 255, 0.8);
}

.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus\:border-blue-500:focus {
    border-color: var(--md-primary);
}

/* Range input styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-track {
    background: #e5e7eb;
    height: 0.5rem;
    border-radius: 0.5rem;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: #3b82f6;
    height: 1rem;
    width: 1rem;
    border-radius: 9999px;
    margin-top: -0.25rem;
}

input[type="range"]::-moz-range-track {
    background: #e5e7eb;
    height: 0.5rem;
    border-radius: 0.5rem;
}

input[type="range"]::-moz-range-thumb {
    background: #3b82f6;
    height: 1rem;
    width: 1rem;
    border-radius: 9999px;
    border: none;
}

/* Responsive */
@media (min-width: 1024px) {
    .lg\:col-span-1 {
        grid-column: span 1 / span 1;
    }

    .lg\:col-span-2 {
        grid-column: span 2 / span 2;
    }

    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lg\:px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 768px) {
    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 640px) {
    .sm\:px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Material Design temaları üçün xüsusi bölmələr */

header .flex .text-sm {
    letter-spacing: 0.02em;
}

header svg {
    filter: drop-shadow(0 6px 12px rgba(103, 80, 164, 0.2));
}

main {
    position: relative;
}

main::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(103, 80, 164, 0.08), transparent 55%);
    pointer-events: none;
    border-radius: var(--md-radius-xl);
    z-index: -1;
}

.bg-white.rounded-xl.shadow-lg,
.bg-white.rounded-xl.shadow-sm,
.bg-white.rounded-xl.shadow-md {
    border-radius: var(--md-radius-xl);
}

#text-input-container .bg-white,
#audio-player-container .bg-white,
#text-comparison-container .bg-white,
#original-text-container .bg-white {
    background: var(--md-surface-high);
    border: 1px solid rgba(103, 80, 164, 0.12);
}

#original-text-container .bg-gray-50 {
    background: rgba(245, 245, 255, 0.65);
    border: 1px solid rgba(103, 80, 164, 0.1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

#text-comparison-container .bg-white {
    box-shadow: var(--md-elevation-2);
}

#text-comparison-container .grid .bg-white {
    box-shadow: var(--md-elevation-1);
    background: rgba(255, 255, 255, 0.96);
}

#text-comparison-container .grid .bg-white:hover {
    box-shadow: var(--md-elevation-2);
}

#text-comparison-container .bg-gray-50 {
    background: rgba(246, 246, 255, 0.75);
}

#text-input-container #session-start-btn,
#text-input-container button.inline-flex {
    border-radius: var(--md-radius-lg);
    padding-inline: 1.75rem;
    padding-block: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

#text-input-container #session-start-btn svg {
    filter: drop-shadow(0 6px 12px rgba(255, 255, 255, 0.25));
}

#text-input-container .text-xs {
    color: var(--md-text-muted);
}

#text-input-container .bg-blue-50 {
    background: rgba(103, 80, 164, 0.12);
    color: var(--md-primary-dark);
}

textarea#user-text-input {
    background: rgba(248, 248, 255, 0.75);
    border: 1px solid rgba(103, 80, 164, 0.18);
    box-shadow: inset 0 2px 12px -10px rgba(30, 30, 70, 0.6);
    border-radius: var(--md-radius-lg);
    transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

textarea#user-text-input:focus {
    border-color: var(--md-primary);
    box-shadow: 0 16px 30px -28px rgba(103, 80, 164, 0.6), inset 0 0 0 1px rgba(103, 80, 164, 0.2);
    transform: translateY(-1px);
}

textarea#user-text-input:disabled {
    background: rgba(240, 240, 255, 0.6);
    border-color: rgba(103, 80, 164, 0.12);
}

#audio-player-container .bg-white {
    display: grid;
    gap: 1.25rem;
}

#audio-player-container #audio-play-btn {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--md-primary), var(--md-secondary));
    box-shadow: 0 18px 36px -18px rgba(103, 80, 164, 0.7);
}

#audio-player-container input[type="range"]::-webkit-slider-thumb {
    background: linear-gradient(135deg, var(--md-primary), var(--md-secondary));
}

#audio-player-container input[type="range"]::-moz-range-thumb {
    background: linear-gradient(135deg, var(--md-primary), var(--md-secondary));
}

#texts-loading,
#texts-empty {
    background: rgba(255, 255, 255, 0.5);
    border: 1px dashed rgba(103, 80, 164, 0.2);
    border-radius: var(--md-radius-lg);
    letter-spacing: 0.02em;
}

.bg-rose-50 {
    background: rgba(255, 240, 245, 0.9);
    border: 1px solid rgba(255, 173, 190, 0.45);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.bg-rose-50.border {
    border-style: dashed;
}

/* Modal Styles */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    overflow-y: auto;
}

.modal-overlay.hidden {
    display: none !important;
    opacity: 0;
}

.modal-overlay:not(.hidden) {
    display: flex !important;
    opacity: 1;
    animation: fadeIn 0.3s ease-out;
}

.modal-overlay.opacity-100 {
    opacity: 1 !important;
}

.modal-content {
    position: relative !important;
    z-index: 10000 !important;
    margin: auto;
    animation: slideUp 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-content.scale-100 {
    transform: scale(1);
}

.modal-content.scale-95 {
    transform: scale(0.95);
}

.modal-content.opacity-100 {
    opacity: 1;
}

.modal-content.opacity-0 {
    opacity: 0;
}

/* Material Design Button Enhancements */
button[type="button"].inline-flex,
button[type="submit"].inline-flex {
    position: relative;
    overflow: hidden;
}

button[type="button"].inline-flex::before,
button[type="submit"].inline-flex::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button[type="button"].inline-flex:hover::before,
button[type="submit"].inline-flex:hover::before {
    width: 300px;
    height: 300px;
}

button[type="button"].inline-flex:active,
button[type="submit"].inline-flex:active {
    transform: scale(0.98);
}

/* File Input Styling */
input[type="file"] {
    cursor: pointer;
}

input[type="file"]::-webkit-file-upload-button {
    padding: 0.5rem 1rem;
    margin-right: 1rem;
    border-radius: 0.5rem;
    border: none;
    background-color: #dbeafe;
    color: #1e40af;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

input[type="file"]::-webkit-file-upload-button:hover {
    background-color: #bfdbfe;
}

/* Nəticələri göstər düyməsi üçün xüsusi stillər */
.py-2-5 {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
}

.gap-2-5 {
    gap: 0.625rem;
}

.show-results-btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.show-results-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.show-results-btn:hover::before {
    left: 100%;
}

.show-results-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.show-results-btn:hover::after {
    opacity: 1;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.show-results-btn:hover {
    background-position: 100% 50%;
}

.show-results-btn:active {
    transform: scale(0.98);
}

