/* UUID Generator - Custom Styles */

/* Animations and Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

@keyframes bounce {
    0%,
    20%,
    53%,
    80%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    40%,
    43% {
        transform: translate3d(0, -10px, 0);
    }
    70% {
        transform: translate3d(0, -5px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}

/* Page Animation - Only for tool content, not site header */
.tool-page-content {
    animation: fadeIn 0.6s ease-out;
}

/* Tool Header Animations - Only for the tool's own header, not site header */
.tool-page-content .text-center h1 {
    animation: slideIn 0.8s ease-out 0.2s both;
}

.tool-page-content .text-center p {
    animation: slideIn 0.8s ease-out 0.4s both;
}

.tool-page-content .flex.flex-wrap {
    animation: slideIn 0.8s ease-out 0.6s both;
}

/* Tab System Enhancements */
.tab-btn {
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn.active {
    position: relative;
}

.tab-btn.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #8b5cf6, #a855f7);
    animation: slideIn 0.3s ease-out;
}

.tab-btn:hover:not(.active) {
    color: #6b7280;
    border-bottom-color: #e5e7eb;
}

/* Card Hover Effects */
.bg-white.rounded-3xl {
    transition: all 0.3s ease;
}

.bg-white.rounded-3xl:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Radio Button Custom Styling */
input[type="radio"]:checked {
    background-color: #8b5cf6;
    border-color: #8b5cf6;
}

input[type="radio"]:focus {
    ring-color: rgba(139, 92, 246, 0.5);
    border-color: #8b5cf6;
}

/* UUID Type Cards */
.cursor-pointer:hover {
    background-color: #f8fafc;
    border-color: #8b5cf6;
    transform: translateX(4px);
    transition: all 0.2s ease;
}

.cursor-pointer:active {
    transform: translateX(2px) scale(0.98);
}

/* Button Enhancements */
.bg-violet-600 {
    position: relative;
    overflow: hidden;
}

.bg-violet-600::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;
}

.bg-violet-600:hover::before {
    left: 100%;
}

.bg-violet-600:hover {
    background-color: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

.bg-violet-600:active {
    transform: translateY(0);
    box-shadow: 0 5px 10px rgba(139, 92, 246, 0.3);
}

/* Results Display Animations */
#results,
#validationResults,
#batchResults {
    animation: fadeIn 0.5s ease-out;
}

.space-y-2 > * {
    animation: slideIn 0.3s ease-out;
}

.space-y-2 > *:nth-child(1) {
    animation-delay: 0.1s;
}
.space-y-2 > *:nth-child(2) {
    animation-delay: 0.2s;
}
.space-y-2 > *:nth-child(3) {
    animation-delay: 0.3s;
}
.space-y-2 > *:nth-child(4) {
    animation-delay: 0.4s;
}
.space-y-2 > *:nth-child(5) {
    animation-delay: 0.5s;
}

/* Copy Button Hover Effects */
.text-violet-600:hover {
    color: #7c3aed;
    transform: scale(1.1);
    transition: all 0.2s ease;
}

.text-violet-600:active {
    transform: scale(0.95);
}

/* Loading States */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

button:disabled::before {
    display: none;
}

/* UUID Display Styling */
.font-mono {
    font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace;
    letter-spacing: 0.025em;
}

/* Results Container Scrollbar */
.max-h-96::-webkit-scrollbar {
    width: 8px;
}

.max-h-96::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.max-h-96::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.max-h-96::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Feature Pills Animation */
.inline-flex.items-center {
    transition: all 0.3s ease;
}

.inline-flex.items-center:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

/* Information Cards */
.grid.gap-6 > div {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.grid.gap-6 > div:hover {
    border-color: #8b5cf6;
    background-color: #fafbff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
}

/* Validation Results Styling */
.text-green-600 {
    color: #059669;
}

.text-red-600 {
    color: #dc2626;
}

.bg-green-50 {
    background-color: #ecfdf5;
}

.bg-red-50 {
    background-color: #fef2f2;
}

.border-green-200 {
    border-color: #bbf7d0;
}

.border-red-200 {
    border-color: #fecaca;
}

/* Batch Results Statistics */
.grid.grid-cols-2 > div {
    transition: all 0.3s ease;
}

.grid.grid-cols-2 > div:hover {
    transform: scale(1.05);
}

/* Toast Notification Enhancements */
#toast {
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#toast .bg-white {
    background-color: rgba(255, 255, 255, 0.95);
}

/* Progress Indicator (if added later) */
.progress-bar {
    background: linear-gradient(90deg, #8b5cf6, #a855f7);
    height: 4px;
    border-radius: 2px;
    animation: shimmer 2s infinite;
    background-size: 200px 100%;
}

/* Form Input Enhancements */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    ring: 2px solid rgba(139, 92, 246, 0.5);
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    transition: all 0.2s ease;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #a855f7;
    transition: all 0.2s ease;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .tool-page-content h1 {
        font-size: 2.5rem;
    }

    .grid.grid-cols-1.lg\\:grid-cols-2 {
        gap: 1rem;
    }

    .px-8 {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .font-mono {
        font-size: 0.75rem;
        word-break: break-all;
    }

    .flex.items-center.justify-between {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .tab-btn {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
}

/* Dark mode compatibility (even though we don't use dark mode) */
@media (prefers-color-scheme: dark) {
    /* Ensure light theme is maintained */
    .bg-white {
        background-color: white !important;
    }

    .text-gray-900 {
        color: #111827 !important;
    }

    .text-gray-600 {
        color: #4b5563 !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .border-gray-200 {
        border-color: #374151;
        border-width: 2px;
    }

    .text-gray-600 {
        color: #1f2937;
    }

    .bg-violet-600:hover {
        background-color: #6d28d9;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .tool-page-content .text-center h1,
    .tool-page-content .text-center p,
    .tool-page-content .flex.flex-wrap {
        animation: none;
    }
}
