﻿/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom right, #eff6ff, #e0e7ff);
    padding: 0.5rem;
}

@media (min-width: 640px) {
    body {
        padding: 1rem;
    }
}

@media (min-width: 768px) {
    body {
        padding: 1.5rem;
    }
}

/* Container Widths */
.w-full {
    width: 100%;
}

.max-w-xs {
    max-width: 20rem;
}

@media (min-width: 640px) {
    .sm\:max-w-sm {
        max-width: 24rem;
    }
}

@media (min-width: 768px) {
    .md\:max-w-md {
        max-width: 28rem;
    }
}

@media (min-width: 1024px) {
    .lg\:max-w-lg {
        max-width: 32rem;
    }
}

@media (min-width: 1280px) {
    .xl\:max-w-xl {
        max-width: 36rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.block {
    display: block;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.hidden {
    display: none;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.justify-center {
    justify-content: center;
}

.gap-1\.5 {
    gap: 0.375rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.space-y-3 > * + * {
    margin-top: 0.75rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

@media (min-width: 640px) {
    .sm\:gap-2 {
        gap: 0.5rem;
    }

    .sm\:gap-3 {
        gap: 0.75rem;
    }

    .sm\:space-y-4 > * + * {
        margin-top: 1rem;
    }
}

/* Padding & Margin */
.p-2 {
    padding: 0.5rem;
}

.p-4 {
    padding: 1rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-2\.5 {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.ml-1 {
    margin-left: 0.25rem;
}

.ml-3 {
    margin-left: 0.75rem;
}

.mr-1 {
    margin-right: 0.25rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.my-3 {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.my-4 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .sm\:p-6 {
        padding: 1.5rem;
    }

    .sm\:px-3 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .sm\:px-4 {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .sm\:py-2\.5 {
        padding-top: 0.625rem;
        padding-bottom: 0.625rem;
    }

    .sm\:py-3 {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .sm\:mb-2 {
        margin-bottom: 0.5rem;
    }

    .sm\:mb-4 {
        margin-bottom: 1rem;
    }

    .sm\:mb-6 {
        margin-bottom: 1.5rem;
    }

    .sm\:my-4 {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
}

/* Background Colors */
.bg-white {
    background-color: #ffffff;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-gray-200 {
    background-color: #e5e7eb;
}

.bg-blue-600 {
    background-color: #2563eb;
}

.bg-green-50 {
    background-color: #f0fdf4;
}

.bg-yellow-50 {
    background-color: #fefce8;
}

.bg-red-50 {
    background-color: #fef2f2;
}

.bg-red-100 {
    background-color: #fee2e2;
}

.bg-green-100 {
    background-color: #dcfce7;
}

/* Text Colors */
.text-gray-500 {
    color: #6b7280;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-800 {
    color: #1f2937;
}

.text-blue-600 {
    color: #2563eb;
}

.text-blue-800 {
    color: #1e40af;
}

.text-green-600 {
    color: #16a34a;
}

.text-green-700 {
    color: #15803d;
}

.text-green-800 {
    color: #166534;
}

.text-yellow-800 {
    color: #854d0e;
}

.text-red-500 {
    color: #ef4444;
}

.text-red-600 {
    color: #dc2626;
}

.text-white {
    color: #ffffff;
}

/* Font Sizes */
.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-base {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

@media (min-width: 640px) {
    .sm\:text-xs {
        font-size: 0.75rem;
    }

    .sm\:text-sm {
        font-size: 0.875rem;
    }

    .sm\:text-base {
        font-size: 1rem;
    }

    .sm\:text-xl {
        font-size: 1.25rem;
    }

    .sm\:text-2xl {
        font-size: 1.5rem;
    }
}

/* Font Weights */
.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

/* Borders */
.border {
    border-width: 1px;
}

.border-2 {
    border-width: 2px;
}

.border-4 {
    border-width: 4px;
}

.border-l-4 {
    border-left-width: 4px;
}

.border-gray-200 {
    border-color: #e5e7eb;
}

.border-red-200 {
    border-color: #fecaca;
}

.border-green-500 {
    border-color: #22c55e;
}

.border-yellow-500 {
    border-color: #eab308;
}

/* Rounded Corners */
.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-full {
    border-radius: 9999px;
}

@media (min-width: 640px) {
    .sm\:rounded-xl {
        border-radius: 0.75rem;
    }

    .sm\:rounded-2xl {
        border-radius: 1rem;
    }
}

/* Shadows */
.shadow-sm {
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

@media (min-width: 640px) {
    .sm\:shadow-2xl {
        box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    }
}

/* Positioning */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.top-1\/2 {
    top: 50%;
}

.left-3 {
    left: 0.75rem;
}

.right-3 {
    right: 0.75rem;
}

.-translate-y-1\/2 {
    transform: translateY(-50%);
}

/* Z-index */
.z-50 {
    z-index: 50;
}

/* Opacity */
.bg-opacity-50 {
    opacity: 0.5;
}

/* Transitions */
.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;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.duration-200 {
    transition-duration: 200ms;
}

.duration-300 {
    transition-duration: 300ms;
}

/* Hover States */
.hover\:border-green-500:hover {
    border-color: #22c55e;
}

.hover\:bg-green-50:hover {
    background-color: #f0fdf4;
}

.hover\:bg-gray-300:hover {
    background-color: #d1d5db;
}

.hover\:bg-blue-700:hover {
    background-color: #1d4ed8;
}

.hover\:text-blue-800:hover {
    color: #1e40af;
}

.hover\:text-green-700:hover {
    color: #15803d;
}

.hover\:-translate-y-0\.5:hover {
    transform: translateY(-0.125rem);
}

.hover\:shadow-xl:hover {
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

/* Focus States */
.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus\:border-green-500:focus {
    border-color: #22c55e;
}

.focus\:ring-2:focus {
    box-shadow: 0 0 0 2px rgb(34 197 94 / 0.3);
}

/* Gradients */
.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-blue-50 {
    --tw-gradient-from: #eff6ff;
    --tw-gradient-to: rgb(239 246 255 / 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-gray-800 {
    --tw-gradient-from: #1f2937;
    --tw-gradient-to: rgb(31 41 55 / 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-green-500 {
    --tw-gradient-from: #22c55e;
    --tw-gradient-to: rgb(34 197 94 / 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-gray-600 {
    --tw-gradient-to: #4b5563;
}

.to-indigo-100 {
    --tw-gradient-to: #e0e7ff;
}

.to-green-600 {
    --tw-gradient-to: #16a34a;
}

.hover\:from-green-600:hover {
    --tw-gradient-from: #16a34a;
    --tw-gradient-to: rgb(22 163 74 / 0);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.hover\:to-green-700:hover {
    --tw-gradient-to: #15803d;
}

/* Grid */
.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Flex */
.flex-1 {
    flex: 1 1 0%;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.flex-col {
    flex-direction: column;
}

@media (min-width: 640px) {
    .sm\:flex-row {
        flex-direction: row;
    }
}

/* Misc */
.h-px {
    height: 1px;
}

.h-1\.5 {
    height: 0.375rem;
}

.h-14 {
    height: 3.5rem;
}

.w-14 {
    width: 3.5rem;
}

.w-3\.5 {
    width: 0.875rem;
}

.h-3\.5 {
    height: 0.875rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.pointer-events-none {
    pointer-events: none;
}

.list-none {
    list-style-type: none;
}

.overflow-hidden {
    overflow: hidden;
}

@media (min-width: 640px) {
    .sm\:w-4 {
        width: 1rem;
    }

    .sm\:h-4 {
        height: 1rem;
    }

    .sm\:h-16 {
        height: 4rem;
    }

    .sm\:w-16 {
        width: 4rem;
    }
}

/* Animation */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.3s ease-out;
}

/* Custom Gradient Text */
.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

.text-transparent {
    color: transparent;
}

/* Scale Transform */
.scale-75 {
    transform: scale(0.75);
}

@media (min-width: 640px) {
    .sm\:scale-90 {
        transform: scale(0.9);
    }
}

@media (min-width: 768px) {
    .md\:scale-95 {
        transform: scale(0.95);
    }
}

@media (min-width: 1024px) {
    .lg\:scale-100 {
        transform: scale(1);
    }
}

/* Group Hover Effects */
.group:hover .group-hover\:text-green-700 {
    color: #15803d;
}

.group:hover .group-hover\:translate-x-1 {
    transform: translateX(0.25rem);
}

/* Placeholder */
.placeholder-transparent::placeholder {
    color: transparent;
}

/* Floating Label Animation - Enhanced */
.floating-label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.875rem;
    color: #9ca3af;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    background-color: white;
    padding: 0 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 500;
    z-index: 1;
}

@media (min-width: 640px) {
    .floating-label {
        left: 1.125rem;
        font-size: 0.9375rem;
        gap: 0.5rem;
        padding: 0 0.5rem;
    }
}

/* Active/Focused/Filled State - Label moves to border */
.floating-label.active,
.floating-input:focus + .floating-label,
.floating-input:not(:placeholder-shown) + .floating-label {
    top: -1px;
    left: 0.875rem;
    font-size: 0.75rem;
    color: #10b981;
    transform: translateY(-50%);
    font-weight: 600;
}

@media (min-width: 640px) {
    .floating-label.active,
    .floating-input:focus + .floating-label,
    .floating-input:not(:placeholder-shown) + .floating-label {
        left: 1rem;
        font-size: 0.8125rem;
    }
}

/* Error State for Label */
.floating-label.error {
    color: #ef4444 !important;
}

/* Success State for Label */
.floating-label.success {
    color: #10b981 !important;
}

/* Input Field States */
.floating-input {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Default Focus State - Green */
.floating-input:focus {
    border-color: #22c55e !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

/* Success State - Green Border */
.floating-input.success {
    border-color: #10b981 !important;
}

/* Error State - Red Border */
.floating-input.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Error State on Focus */
.floating-input.error:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

/* Icon colors for floating labels */
.floating-label i {
    font-size: 0.75rem;
    color: #DC143C;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 640px) {
    .floating-label i {
        font-size: 0.875rem;
    }
}

/* Icon - Active/Focus State (Green) */
.floating-label.active i,
.floating-input:focus + .floating-label i,
.floating-label.success i {
    color: #10b981;
}

/* Icon - Error State (Red) */
.floating-label.error i {
    color: #ef4444;
}

/* ===== ENHANCED MODAL STYLES ===== */

/* Modal Overlay */
.modal-overlay-enhanced {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay-enhanced.show {
    display: flex;
    opacity: 1;
}

.modal-overlay-enhanced.hide {
    opacity: 0;
}

/* Modal Content Container */
.modal-content-enhanced {
    background: white;
    border-radius: 1.25rem;
    padding: 1.75rem 1.5rem;
    max-width: 90%;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    text-align: center;
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.modal-overlay-enhanced.show .modal-content-enhanced {
    transform: scale(1) translateY(0);
    opacity: 1;
}

@media (min-width: 640px) {
    .modal-content-enhanced {
        padding: 2rem 1.75rem;
        max-width: 440px;
        border-radius: 1.5rem;
    }
}

/* Modal Icon Wrapper */
.modal-icon-wrapper {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.25rem;
    position: relative;
}

@media (min-width: 640px) {
    .modal-icon-wrapper {
        width: 4.5rem;
        height: 4.5rem;
        margin-bottom: 1.5rem;
    }
}

/* Success Modal Animations */
.success-checkmark {
    width: 100%;
    height: 100%;
    position: relative;
}

.check-icon {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.icon-circle {
    position: absolute;
    top: -3px;
    left: -3px;
    width: calc(100% + 6px);
    height: calc(100% + 6px);
    border-radius: 50%;
    border: 3px solid #10b981;
    animation: circlePulse 0.5s ease-out;
}

.icon-line {
    height: 3px;
    background-color: white;
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}

.line-tip {
    top: 50%;
    left: 28%;
    width: 35%;
    transform: rotate(45deg);
    animation: checkTip 0.4s 0.2s ease-in forwards;
    opacity: 0;
}

.line-long {
    top: 56%;
    right: 20%;
    width: 50%;
    transform: rotate(-45deg);
    animation: checkLong 0.6s 0.4s ease-in forwards;
    opacity: 0;
}

.icon-fix {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 60%;
    background-color: white;
    transform: translate(-50%, -50%) rotate(-45deg);
    z-index: 1;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes circlePulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes checkTip {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: 35%;
        opacity: 1;
    }
}

@keyframes checkLong {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: 50%;
        opacity: 1;
    }
}

/* Error Modal Animations */
.error-x-mark {
    width: 100%;
    height: 100%;
    position: relative;
}

.error-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.error-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    animation: errorLineGrow 0.5s 0.2s ease-out forwards;
    opacity: 0;
}

.error-line-left {
    transform: translate(-50%, -50%) rotate(45deg);
}

.error-line-right {
    transform: translate(-50%, -50%) rotate(-45deg);
}

@keyframes errorLineGrow {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: 50%;
        opacity: 1;
    }
}

/* Warning Modal Animations */
.warning-icon-animated {
    width: 100%;
    height: 100%;
    position: relative;
}

.warning-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.warning-exclamation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 2rem;
    font-weight: bold;
    z-index: 10;
    animation: exclamationBounce 0.6s 0.2s ease-out forwards;
    opacity: 0;
}

@media (min-width: 640px) {
    .warning-exclamation {
        font-size: 2.25rem;
    }
}

@keyframes exclamationBounce {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Info Modal Animations */
.info-icon-animated {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.info-icon-animated i {
    position: relative;
    z-index: 10;
    color: white;
    font-size: 2rem;
    animation: exclamationBounce 0.6s 0.2s ease-out forwards;
    opacity: 0;
}

@media (min-width: 640px) {
    .info-icon-animated i {
        font-size: 2.25rem;
    }
}

/* Modal Text Elements */
.modal-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

@media (min-width: 640px) {
    .modal-title {
        font-size: 1.25rem;
    }
}

.modal-message {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

@media (min-width: 640px) {
    .modal-message {
        font-size: 0.9375rem;
        margin-bottom: 1.25rem;
    }
}

.modal-subtitle {
    font-size: 0.875rem;
    color: #374151;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-align: left;
}

/* Modal List */
.modal-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem 0;
    text-align: left;
}

.modal-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.625rem;
    font-size: 0.8125rem;
    color: #4b5563;
    line-height: 1.5;
}

.modal-list-item i {
    flex-shrink: 0;
    margin-top: 0.125rem;
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .modal-list-item {
        font-size: 0.875rem;
        gap: 0.625rem;
    }
}

/* Modal Content Scrollable */
.modal-content-scrollable {
    max-height: 50vh;
    overflow-y: auto;
    margin-bottom: 1.25rem;
    padding-right: 0.25rem;
}

.modal-content-scrollable::-webkit-scrollbar {
    width: 6px;
}

.modal-content-scrollable::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 3px;
}

.modal-content-scrollable::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.modal-content-scrollable::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Modal Actions */
.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-top: 1.25rem;
}

@media (min-width: 640px) {
    .modal-actions {
        flex-direction: row;
        gap: 0.75rem;
    }
}

/* Modal Buttons */
.modal-button {
    flex: 1;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.625rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

@media (min-width: 640px) {
    .modal-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }
}

.modal-button-primary {
    background: linear-gradient(135deg, #DC143C 0%, #b01030 100%);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(220, 20, 60, 0.3);
}

.modal-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px -2px rgba(220, 20, 60, 0.4);
}

.modal-button-primary:active {
    transform: translateY(0);
}

.modal-button-secondary {
    background: #f3f4f6;
    color: #374151;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.modal-button-secondary:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15);
}

.modal-button-secondary:active {
    transform: translateY(0);
}

.modal-button-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.3);
}

.modal-button-error:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px -2px rgba(239, 68, 68, 0.4);
}

.modal-button-error:active {
    transform: translateY(0);
}

.modal-button-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
}

.modal-button-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px -2px rgba(16, 185, 129, 0.4);
}

.modal-button-success:active {
    transform: translateY(0);
}

/* Progress Container */
.progress-container {
    width: 100%;
    height: 0.375rem;
    background: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
    margin-top: 1rem;
}

@media (min-width: 640px) {
    .progress-container {
        height: 0.5rem;
    }
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border-radius: 9999px;
    width: 0;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Toast Animation */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes shrinkProgress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

.session-timeout-toast {
    transition: opacity 0.5s ease-in-out;
}

.crimson-500 {
    color: #DC143C;
}

.crimson-600 {
    color: #b01030;
}

.bg-crimson-500 {
    background-color: #DC143C;
}

.bg-crimson-600 {
    background-color: #b01030;
}

/* Custom gradient for text */
.text-crimson-600 {
    color: #DC143C;
}

.hover\:text-crimson-700:hover {
    color: #b01030;
}


/* Password toggle button styles */
#togglePassword {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    #togglePassword:hover {
        color: #4b5563;
    }

/* Google Credential Conflict Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

    .modal-overlay.show {
        opacity: 1;
    }

    .modal-overlay.hide {
        opacity: 0;
    }

.modal-content-custom {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.modal-overlay.show .modal-content-custom {
    opacity: 1;
    transform: translateY(0);
}

.modal-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

    .modal-icon.error {
        background: rgba(231, 76, 60, 0.1);
        color: #e74c3c;
    }

    .modal-icon.warning {
        background: rgba(255, 193, 7, 0.1);
        color: #ffc107;
    }

.crimson-500 {
    color: #DC143C;
}

.crimson-600 {
    color: #b01030;
}

.bg-crimson-500 {
    background-color: #DC143C;
}

.bg-crimson-600 {
    background-color: #b01030;
}

/* Custom gradient for text */
.text-crimson-600 {
    color: #DC143C;
}

.hover\:text-crimson-700:hover {
    color: #b01030;
}

/* Password toggle button styles */
#togglePassword {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    #togglePassword:hover {
        color: #4b5563;
    }

/* Google Credential Conflict Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

    .modal-overlay.show {
        opacity: 1;
    }

    .modal-overlay.hide {
        opacity: 0;
    }

.modal-content-custom {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.modal-overlay.show .modal-content-custom {
    opacity: 1;
    transform: translateY(0);
}

.modal-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

    .modal-icon.error {
        background: rgba(231, 76, 60, 0.1);
        color: #e74c3c;
    }

    .modal-icon.warning {
        background: rgba(255, 193, 7, 0.1);
        color: #ffc107;
    }
