/* ======================
   Job Application Page Styles
   ====================== */

/* File Upload Styles */
.file-upload-wrapper {
    position: relative;
}

.file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    border: 2px dashed #e5e7eb;
    border-radius: 0.75rem;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.file-upload-label:hover {
    border-color: #0ea5e9;
    background: #eff6ff;
}

.file-upload-label svg {
    width: 2rem;
    height: 2rem;
    color: #0ea5e9;
}

.file-upload-text {
    font-weight: 600;
    color: #374151;
    font-size: 0.938rem;
}

.file-upload-hint {
    font-size: 0.813rem;
    color: #6b7280;
}

.file-name {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #0ea5e9;
    font-weight: 500;
}

.file-input:focus + .file-upload-label {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.file-input:valid + .file-upload-label {
    border-color: #10b981;
    background: #f0fdf4;
}

.file-input.error + .file-upload-label {
    border-color: #ef4444;
    background: #fef2f2;
}

/* Success Actions */
.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Position Title Update */
#positionTitle {
    transition: all 0.3s ease;
}

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

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .file-upload-label {
        padding: 1.5rem;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .success-actions .btn {
        width: 100%;
    }
}

