/* PDF Parser - Custom Styles */

/* Base styles */
* {
    box-sizing: border-box;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom animations */
@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% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

@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);
    }
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

.slide-in {
    animation: slideIn 0.5s ease-out forwards;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Drag and drop states */
.drop-zone-active {
    border-color: #3b82f6 !important;
    background-color: #f0f9ff !important;
}

.drop-zone-active svg {
    color: #3b82f6 !important;
}

/* File preview styles */
.file-item {
    transition: all 0.3s ease;
}

.file-item:hover {
    transform: translateX(4px);
    background-color: #f9fafb;
}

.file-item-success {
    border-left: 4px solid #10b981;
    background-color: #f0fdf4;
}

.file-item-error {
    border-left: 4px solid #ef4444;
    background-color: #fef2f2;
}

/* Progress bar animation */
.progress-bar-animate {
    transition: width 0.3s ease-in-out;
}

/* Button loading state */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error animations */
.success-bounce {
    animation: bounce 0.8s ease-in-out;
}

.error-shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Scrollbar styles */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Stats grid */
.stats-item {
    transition: all 0.2s ease;
}

.stats-item:hover {
    background-color: #f8fafc;
}

/* Tour guide custom styles */
.shepherd-modal-overlay-container {
    z-index: 9998;
}

.shepherd-element {
    z-index: 9999;
    background: white;
    border-radius: 8px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shepherd-content {
    padding: 20px;
}

.shepherd-header {
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 12px;
    padding-bottom: 12px;
}

.shepherd-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.shepherd-text {
    color: #6b7280;
    line-height: 1.5;
}

.shepherd-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.shepherd-button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.shepherd-button:hover {
    background: #2563eb;
}

.shepherd-button-secondary {
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.shepherd-button-secondary:hover {
    background: #f9fafb;
    color: #374151;
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
    .hero-section h2 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .process-section {
        padding: 1rem;
    }
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, transparent 37%, transparent 63%, #f0f0f0 75%);
    background-size: 400% 100%;
    animation: skeleton-loading 1.4s ease infinite;
}

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

/* Utility classes */
.glass-effect {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.text-gradient {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .border-gray-200 {
        border-color: #000;
    }
    
    .text-gray-600 {
        color: #000;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}