/* Support Page Enhanced Styles */

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Enhanced form styling */
.form-group {
    animation: slideInUp 0.6s ease-out;
}

.form-group:nth-child(odd) {
    animation-delay: 0.1s;
}

.form-group:nth-child(even) {
    animation-delay: 0.2s;
}

/* Upload area enhancements */
.upload-area {
    position: relative;
    overflow: hidden;
}

.upload-area::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(16, 185, 129, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.upload-area:hover::before {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Button enhancements */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::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;
}

.btn-primary:hover::before {
    left: 100%;
}

/* File preview styling */
.file-preview {
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.file-preview:hover {
    border-color: #10b981;
    background: #f0fdf4;
}

/* Priority radio buttons */
.priority-radio {
    transition: all 0.3s ease;
    cursor: pointer;
}

.priority-radio:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.priority-radio input[type="radio"]:checked + .priority-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Success modal enhancements */
.success-modal {
    backdrop-filter: blur(5px);
}

/* Loading spinner */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #10b981;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tooltip enhancements */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 8px);
}

/* Form validation */
.field-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.field-success {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Progress indicator */
.progress-dot {
    transition: all 0.3s ease;
}

.progress-dot.active {
    animation: pulse 2s infinite;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .fade-in {
        animation-duration: 0.4s;
    }
    
    .upload-area {
        padding: 24px 16px;
    }
    
    .btn-primary {
        padding: 16px 24px;
        font-size: 16px;
    }
    
    .header-mobile {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        text-align: center;
    }
    
    .logo-section {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .support-section {
        margin-top: 1rem;
    }
}

/* Enhanced focus states */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    border-color: #10b981;
}

/* Priority selection animation */
.priority-option {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.priority-option:hover {
    transform: scale(1.02);
}

.priority-option input[type="radio"]:checked ~ .priority-indicator {
    transform: scale(1.2);
    animation: float 2s ease-in-out infinite;
}

/* Category selection styling */
.category-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 48px;
    appearance: none;
}

/* Enhanced stats cards */
.stats-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stats-card .icon {
    transition: all 0.3s ease;
}

.stats-card:hover .icon {
    animation: float 1s ease-in-out infinite;
}