/* WTSH Portal Additional Styles */

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Step container transitions */
.step-container {
    animation: fadeIn 0.5s ease-in-out;
}

.step-container.hidden {
    display: none;
}

.step-container.active {
    display: block;
}

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

/* Form enhancements */
.form-field {
    transition: border-color 0.2s ease-in-out;
}

.form-field:focus {
    box-shadow: 0 0 0 3px rgba(0, 70, 127, 0.1);
}

/* File upload styling */
.file-upload {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.file-upload input[type=file] {
    position: absolute;
    left: -9999px;
}

.file-upload label {
    cursor: pointer;
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 2px dashed #d1d5db;
    border-radius: 0.5rem;
    text-align: center;
    transition: all 0.2s ease-in-out;
}

.file-upload label:hover {
    border-color: #00467F;
    background-color: #f8fafc;
}

.file-upload.has-file label {
    border-color: #10b981;
    background-color: #ecfdf5;
}

/* Button enhancements */
.btn {
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn.loading {
    pointer-events: none;
}

.btn.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Alert enhancements */
.alert {
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

.alert-success {
    background-color: #ecfdf5;
    color: #065f46;
    border-color: #d1fae5;
}

.alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.alert-warning {
    background-color: #fffbeb;
    color: #92400e;
    border-color: #fed7aa;
}

.alert-info {
    background-color: #eff6ff;
    color: #1e40af;
    border-color: #dbeafe;
}

/* Step indicator enhancements */
.step-indicator {
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e5e7eb;
    z-index: 1;
}

.step-indicator .step {
    position: relative;
    z-index: 2;
    background: white;
}

.step-indicator .step.completed::before {
    background: #00467F;
}

/* Responsive enhancements */
@media (max-width: 768px) {
    .step-container {
        padding: 1rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .step-indicator {
        overflow-x: auto;
    }
    
    .step-indicator .step {
        min-width: 80px;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .step-container {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }

    .step-container {
        padding: 0 !important;
    }

    button {
        display: none !important;
    }

    .bg-white {
        box-shadow: none !important;
        border: 1px solid #eee !important;
    }

    .bg-gray-50 {
        background: white !important;
        border: 1px solid #eee !important;
    }

    /* Verstecke Navigation und Footer beim Drucken */
    nav, footer, .progress-bar {
        display: none !important;
    }

    /* Optimiere Textfarben für Druck */
    .text-gray-500, .text-gray-600, .text-gray-700 {
        color: #333 !important;
    }

    /* Seitenumbrüche verhindern */
    .step-container > div {
        page-break-inside: avoid;
    }
}

/* Accessibility enhancements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus indicators */
.focus-visible:focus {
    outline: 2px solid #00467F;
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #00467F;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #003856;
}

/* Loading spinner */
.animate-spin {
    animation: spin 1s linear infinite;
}

/* Utility classes */
.text-balance {
    text-wrap: balance;
}

.text-pretty {
    text-wrap: pretty;
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
    .dark-mode-support {
        /* Add dark mode styles here if needed */
    }
} 